04-07-2019 05:05 AM
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.
04-08-2019 11:25 AM
Have you tried creating a "Placeholder" variable in TestStand and then return a value into that "placeholder" variable?
04-09-2019 03:57 AM
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!
04-10-2019 02:06 AM - edited 04-10-2019 02:07 AM
Thank you so much, I will try these options. For now I decided to use structres and pass them to TestStand.
04-10-2019 02:49 AM
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.