07-08-2014 04:54 AM
When I use dll to generate the VI. Some VIs including complex structure can not be created. As the picture below shows
This VI including cluster, so I create a custom control, and access to the control when caling dll,
then the VI generated but can not be executed,
it shows that the data type is different from cluster, then I change the data type
Now the VI has no error,
But when I run the VI, it shows that when it input the data from cluster, there will be an error number,
But when I delete the cluster and change to the numeric data, It reads only the first 3 input value and recognize as NodeId, SlotId and Inputstate, the digital input IO number can not be read.
So I want to know what problem it has? Because I can not understand this case.
07-08-2014 12:34 PM
The last option (using 4 parameters instead of 3) appears to be the correct configuration, because the DLL expects that you will pass a struct by value. Try making the enums 16-bit values, instead of 32-bit. If that doesn't work, you could also try configuring the call for 3 parameters, and pass a single 32-bit value that is the result of joining the two 16-bit enums.