Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Passing variables between LabVIEW and TestStand

$
0
0

Hello,

 

I am just learning how to use TestStand and while there is a wealth of resources available, I am still finding myself at a loss on how to pass variables between TS and LV, leaving me to think that there's a small fundamental thing that I am missing which is likely since I have about a weeks worth of experience with LabVIEW and about a days worth of experience with TestStand.

 

I took a look at the "Passing Clusters to Code Modules" example in the TestStand examples (I'm using TS 2016 if that matters) since I figured that would be fairly ideal for what I'm hoping to. In this case, I'm hoping to be able to pass a string (a file path) to LabVIEW and have the VI be able to take that string and use it as part of a command for System Exec.VI.  I'd then like to be able to pass back strings to TestStand to show to the user if an error is encountered, but I figured I should get the first part working.

 

I guess my question is what should I expect to be seeing in the Passing Clusters to Code Modules example? The watch window shows all the local variables set to what ContainerOut has in the Variables pane, but I don't see any sort update on the assoicated LabVIEW front panels (VI1.vi and VI2.vi). Should I be? 

 

I looked at some other forum threads here and here, as well as the KnowledgeBase document here, but was unable to recreate their solutions. It seems the connector pane would be a viable way to go, but I am uncertain about how one actually creates and utilizes it. According to this document it makes it seem like it should be fairly straightforward to makes those terminals, but I'm still missing a key step. I was able to follow all the steps on the KnowledgeBase document, and execute the sequence, but then did not have any idea if it worked or not; I have the report show me the values of the variables that I set, but I have no idea if it actually did anything with the LabVIEW VI or not or how I could see that.

 

Please let me know if you need any other information or clarifaction about what I am asking.

 

Thank you for your time,
JColvin

Digilent, a National Instruments Company


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>