NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems in using Labview DLL with TestStand!

Hi,

I tried to put the VI's to create a TCP/IP Connection, read/write Data to it and close it inside a LabVIEW DLL and use these functions with TestStand.
The problem is to get access to the ConnectionID generated as TCP Network Refnum in LabVIEW.
I don't know how to specify the prototype entry for this Refnum in LabVIEW and how to read it with TestStand.
Another try to pass an ActiveXReference of SequenceContext and use the SetValIDispatch method to set a local variable (Type: ActiveXReference) to the returned ConnectionID of the TCPOpen.VI wasn't successful too.
It seems to me that the connectionID isn't a normal ActiveXReference.

Regards,
Sunny
0 Kudos
Message 1 of 3
(3,163 Views)
Hi Sunny -

You should treat this parameter as a pointer to an int when calling the DLL from TestStand (or any language like C or C++). Note that you can't do anything with the value outside of LabVIEW since it only has meaning inside of LabVIEW. You can only pass it around for use in other VIs you call from TestStand.

Hope this helps....

Kyle G.
National Instruments
Kyle Gupton
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 3
(3,163 Views)
Hi Kyle,

I was the wright idea to do a typecast with that LabVIEW internal Reference. For TestStand i had to generate a string of these U32 value because numbers in TestStand are represented as 64 bit double.
I use this string to identify the connection to use for my sequence execution.

Kind regards,
Sunny
0 Kudos
Message 3 of 3
(3,163 Views)