From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-11-2018 05:12 PM
Hi All,
I'm trying to pass a "Data Value Reference" to TestStand, so later on I can pass it into a VI on a different step and read/update the original value.
Passing the terminal to TestStand works OK, but the data type is not a reference, it is the data type of the variable the Data Value Reference is pointing to.
When I pass this "DVR" back in to another VI, no errors are thrown, but I simply get "0" back as the value, which is incorrect.
Is it possible to use DVRs in TestStand? - This post: https://forums.ni.com/t5/NI-TestStand/how-to-pass-large-amount-of-data-between-steps/td-p/2568551 is marked as solved using DVRs but I am not experiencing the same.
Here's the code I am using to create the DVR:
The "data ref" indicator is being stored in a FileGlobal with the data type "number".
In another step, the following VI is being used:
The data returned in "Data" array after running for 10s is 73,103 elements all with the value of 0.
Is there something I'm missing, or can you not take this approach at all?
Solved! Go to Solution.
07-11-2018 05:48 PM
DVR should be stored as a number in TestStand.
07-11-2018 05:56 PM
I'm storing it as a number, any idea why it wouldn't work? Or any examples I can look over? I've searched for things like "Data Value Reference TestStand" and haven't really returned anything useful
07-11-2018 06:45 PM
First of all I would expect that all values in your array are exactly the same. Your DVR is a scalar and only stores a single value. You are just reading that single value N times and building an array with it. I assumed you were storing the iteration in the first image because you wanted to see how many times the loop executed before meeting the condition.
I've thrown together something really quickly. See what you think.
07-11-2018 06:56 PM
Just realized you probably got multithreading going on. Here is a better example for what you want.
07-12-2018 01:16 AM
Thanks Jigga for taking the time to build an example.
I can see the principles behind this and how its supposed to work, but I still just get the value of 0, even when I move the slider. Now i'm wondering if it's some sort of configuration issue
07-12-2018 01:20 AM
Just remembered, you have to have "Reserve VIs For Execution" checked in the adapter settings if you want to use DVRs. It was briefly mentioned in the Actor Framework training course!
Works perfectly now that's turned on.
Thanks again!