VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Veristand User Channels from a Custom Configuration File

Hello, 

 

I would like to have several testers use the same test software and am using Veristand 2014 SP1. I would like to be able to have a configuration file that Veristand file can draw from. I.e.  How can I grab data from a config file (i.e. JSON) and pull it into a user channel? 

 

Thank you! 

0 Kudos
Message 1 of 2
(4,578 Views)

Hi Julianne, 

 

Depending on when you need to set the channels to a value there are a few different options. 

 

If you can set the channels before deploying the sysdef, you can use the sysdef API in a language of your choice to set the channels to a default value, and then programatically deploy the sysdef. More information on the sysdef API can be found at this community example:

https://forums.ni.com/t5/NI-VeriStand-Add-Ons-Documents/VeriStand-Simple-System-Definition-API/ta-p/...

 

If you need to change the values while the system is deployed and running, you will have to create a custom device to read in data from a file and set a series of channels. The attached white paper outlines how to build a custom device for this purpose. 

https://www.ni.com/docs/en-US/bundle/veristand/page/custom-device-build.html

 

A third option would be to have a series of procedures set to workspace objects to set multiple channels to a value, however this does not give you the flexibility of a file to read from. 

 

Let me know if you have any other questions!

 

N

National Instruments
Staff Certification Engineer
0 Kudos
Message 2 of 2
(4,550 Views)