03-08-2019 04:38 AM
Hi,
I want to know if it's possible to run a VI deployed to cRIO though teststand? How would you do it? I've been looking for an anserw for the last couple of days, but can't really find anything.. any advice will be very beneficial.
03-12-2019 05:15 AM
Hey HealthyChicken,
It's possible but not necessarily straightforward. I don't know what your project requires, but I'm aware of 2 options
1) TestStand remote execution
When configuring the Module settings for the step in teststand you can find the "advanced settings" on the right side. There you can configure to "Run VI on Remote Computer".
Before being able to run it you will need to a) in a LV project, right click on the cRIO -> properties -> VI Server and enable TCP/IP as a protocol; b) right click on the VI you would like to run and click "deploy". As long as the LV project is open, you should be able to execute the step on the cRIO.
I was trying to automatize the last two steps, but so far not really successful.
2) Run a start-up VI on the cRIO and call a Host VI from TS
The easier way is to have a normal start-up VI on the cRIO, reading all the data etc (maybe with a state machine with a state for each test you would like to perform?). Then write a Host VI (or a set of host VIs) interacting with the cRIO which is called by TestStand to access the data on the cRIO.
Both options should work. Personally I would probably go for the last option, but without knowing your project requirement it's difficult to judge what's working for you.
Please let me know if you have any questions about my ideas.
03-12-2019 08:04 AM
Definetly go for option 2. Always....