LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem passing TCP Id and .NET References between labview and teststand

Hi,
I want to save in teststand a TCP ID and a .NET reference that was opened in labview to to use it in other LabVIEW steps. I was able to do it by passing out the references as indicators and when specifying the module I was able to store  the TCP id in a number variable and the .NET in an object , I was also able to use them in other steps by passing them in to controls that are inputs in the Vi's connector pane.
 
I have been trying to do the same thing but without having to deal with controls and indicators. I would like to use the TestStand - Get Property Value.vi and Set property Value.vi to pass in and grab the references, the problem is that these Vis does not accepts the TCP id data type or the .NET data type.
 
I have tried converting these references to numbers and strings , store them in teststand and grab them back and convert them back again to the original type but in every case, when I get them back I get an empty value as if it gets lost somehow in the teststand process.
 
Is there a way to do this? Has somebody done it before?
 
Thanks!
Eren
0 Kudos
Message 1 of 3
(2,751 Views)

Hi Eren,

To reproduce your problem I using two TCP examples from LabVIEW: Simple Data Server and Simple Data Client. I broke the Simple Data Client into 4 VI’s, to use them as steps in TestStand.  Using controls and indicators to pass and receive the TCP Connection ID.  TestStand assigns a numeric data type, U32. To use the Get and Set Property VI’s, the only accepts native TestStand data types, so the conversion must be done in LabVIEW. I’m using the Type Cast.vi for this conversion and the TCP Connection ID must be converted to U32, which is the data type that TestStand handles. And it worked for me, I’m using localhost as the address.

Please let me know if this is the problem and if it helps you. I’m currently working on the .NET object.

Tania Lozoya | National Instruments

0 Kudos
Message 2 of 3
(2,716 Views)

Hi Eren,

I converted the .net reference to a String type with the same Type Cast.vi . Please let me if this helps you.

Tania Lozoya | National Instruments

0 Kudos
Message 3 of 3
(2,708 Views)