09-24-2012 01:57 PM
Hello
I have made a dll with the following function call :
int __declspec(dllexport) __stdcall FSCOM_ModbusQuery (int nComport, unsigned char ucAddress, unsigned char ucFunctionCode, unsigned char ucTxData[], int nTxDataLength, unsigned char ucRxData[], int nRxDataLength)
I want to access this function call in Teststand 2010 SP1. I have made 2 array's in Teststand and gave the adresses to the function call (as you can see in "Capture.png" and "Capture1.png" ).
When i try to run the sequence I get an error on the ucTxData and ucRxData with message "Expected number, found array of numbers".
How can i solve this problem
Thanks in advance
Tonnie
Solved! Go to Solution.
09-25-2012 09:21 AM - edited 09-25-2012 09:26 AM
What are you specifying as the data type for the array parameters? You probably do not have them specified as arrays.
-Doug
09-25-2012 10:09 AM
Hello
I have made 2 number array's in teststand. Is it not possible to make 2 unsigned char array's ?
Tonnie
09-26-2012 09:30 AM
I think you misunderstood what I meant. In the Module specification tab of the panel you can change the data type that the function expects. You likely have it set to the wrong thing. It should be set to an array of numbers where the elements are 8-bit unsigned integers.
-Doug