01-05-2006 08:52 AM
unsigned long DIValue = 0; // returned DI value
err = DI_ReadPort(cardID, DIPort, (U32 *) &DIValue);
if
(err!=NoError) { //Error occurs !! //ToDo : Handle error here}
[/CODE]
Works fine.
Now if i want to use the IO Card dll in teststand instead, i get a problem. I connect fine to the card and can output to it, but how do i get the value from this function, which makes use of reference/cast, which gets placed in DIValue.
Ive tried using the reference/pointer options there is under c/c++ adapter when assigning parameters, but surely thats not enough.
01-06-2006 09:11 AM
If the type U32 is a 32-bit integer, then what you are doing sounds right. See the attached screenshot of the specify module dialog.
-Erik
01-07-2006 04:31 AM