LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read parameters from a file

Hello,

I am developing an automated test system. Therefore I need to store some parameteres form my system in a file and read this file in with LabView.
For example I want to store parameters like:
sampling_rate_MHz = 100
active_relays = 1,2,3
These parameters shall be read in and then used in LabView.
I also want to use the same file with Matlab!

What is the best way to store the parameters? A simple text-file or something else?
Thanks for your support.

Regards,

Gerald
0 Kudos
Message 1 of 2
(2,574 Views)

The file palette has a subpalette with configuration file VIs which allow you to do this. The resulting is a simple text file which will work with simple data types (boolean, numeric, string, etc.). For arrays you would have to do some more complicated stuff.

You would then need to write some Matlab code which will read it.

If you go to the OpenG site and download their variant configuration VIs package, you will be able to save clusters and arrays as well.

 


To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,570 Views)