NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with data transition between TestStand and LabWindows

Hello Members,

 

I am quite new with both TestStand and LabWindows and I have a problem like this. I have a string type variable in TestStand and I want to manipulate this data with LabWindows/CVI dll then create new variables on TestStand via this dll file automatically. I think there is no problem to insert this string into my function, inside dll file,with input parameter of function on TestStand. However, I can not solve problem about creating new variables on TestStand with LabWindows dll automatically. I searched lots of topics on this forums but I am not able to solve this issue. Is there anyone to help about this problem?

 

Thanks.

 

 

0 Kudos
Message 1 of 5
(1,987 Views)

Have you tried creating a "Placeholder" variable in TestStand and then return a value into that "placeholder" variable?

Message 2 of 5
(1,958 Views)

As mentioned, the recommended way to work with interfaces is to provide all data (variables) as parameters.

However, in the rare incidence that you require to create a new TS variable, you can use the TS API inside the CVI module to do so. Please note that this is a more advanced topic and is part of the TestStand 2 training. Note: This is not recommended and shall, as mentioned before, be an exception, not the rule!

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 3 of 5
(1,953 Views)

Thank you so much, I will try these options. For now I decided to use structres and pass them to TestStand.

0 Kudos
Message 4 of 5
(1,945 Views)

You can pass data between CVI and TS as structs if you create a custom data type in TS for the struct and enable struct passing for that type. Then create a variable using that type and pass it as parameter to the module.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 5
(1,940 Views)