05-20-2013 02:16 PM
As the title suggests, I would like to be able to create a custom display template that allows me to store the value of a control every time someone changes the value. This would provide the operator of the stand the option of not having to enter the system explorer every time they want to change some parameter.
I know this would be possible for a custom device, as the default value property is accessible. I was trying to avoid writing an entire custom device if at all possible for this though. So basically:
Is there a VI that allows me to access the "Initial Value" property of a normal VeriStand channel?
Thanks
Paul List
05-21-2013 12:54 PM
Hi Paul,
You mentioned channels and parameters, depending on which one you're working with, you could choose one of two built in options.
The model parameter manager will allow you to load in a file to set multiple values at a time. Simply using a text file editor would allow them to make those changes without having to modify the system definition. Instructions on this method can be found here: http://zone.ni.com/reference/en-XX/help/372846F-01/veristand/model_param_import/
If you're using stimulus profiles to automate, or log the tests you run, you can use .CSV playback to step through the same sequence that just executed. More information about that process can be found at the bottom of this tutorial. http://www.ni.com/white-paper/13604/en#toc7
Another option may be to use a start up procedure to set the value of the channel. Jarrod describes this method in this other forum: http://forums.ni.com/t5/NI-VeriStand/How-do-I-create-a-startup-procedure-in-Veristand/m-p/1219694?re...
As for pragmatically changing the value, I don't think there is a direct VI for what you're looking for. It looks like you'll need to use the .NET calls themselves to set the initial values of the channels you're looking for.
Do any of those options sound like they would work for your application?