10-13-2007 06:29 AM
10-14-2007 01:12 AM
Hi Steven,
Can you post the DLL function's prototype, or even some of the code?
Cheers.
10-14-2007 05:24 AM
Hello, Thanks for your reply.
The definition of one function(get the QTY of the loading box currently using and its ID)
Int binResLists (char *ids[ID_LENGTH + 1], int maxNum)
output: char *ids[ID_LENGTH + 1] // a array used for store the ID read back.
Input: int maxNum // specify the maxmum loading box.
how many loading box using will be returned after calling this function
Explaination about this function in the DLL spec as below:
" char ids[256] [ID_LENGTH + 1] or char ids[256] [9] // Declaration.
int resNum = binResLists ( ids, 256); // Allowed maxmum loading box is 256,resNum is the number of loading box."
I don't know how to allocate the memory for the 2d array in LabVEIW. the DLL in attachment but no any code cos i have not get started till now.
Thank you again.
Steven
.
10-14-2007 09:24 PM
Hi Steven,
The attached VI shows how to pre-allocate the table-memory in LabVIEW. Unless you know the "Calling convention" you'll have to experiment. Also, maxLoadingBox (int) INPUT might be 16bits instead of 32bits.
Don't feel bad if you crash a few times before solving the details. ![]()
Cheers!