06-08-2015 04:16 PM
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!
06-09-2015
12:46 PM
- last edited on
01-07-2025
12:25 PM
by
Content Cleaner
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:
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