LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

making a parameter file

I am using the modbus example.vi to read parameters over modbus.  I want to modify this file to read multiple parameters from, for example a spreadsheet.  Is there any tutorials/examples i can use to do this? or can anyone give me advice?

 

0 Kudos
Message 1 of 12
(4,215 Views)

My absolute favorite method for reading parameters is to use a windows configuration (.ini) file.  There are lots of examples of this as well as Excel.  Go to Help-->Find Examples

 

-Matt

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 2 of 12
(4,192 Views)
Thanks Matt for the reply. was cosidring using a .csv or ini file but i am really confused on how to implement this with my modbus example.  I am really new to labview and struggle. I want to make a table that contains parameter address, address type, etc and feed these values into the bundle in my vi.  Is this possible and if so how do I do it? I can attach part of the parameter list if it would be of help?
0 Kudos
Message 3 of 12
(4,164 Views)

 There's a bunch of vi's for configuration files -- all ready made for you.  They really do make your life easier.

 

If you need help understanding them, look through the examples.  Start by going to help and typing configuration file or ini file.  If that doesn't work, let me know.

 

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 4 of 12
(4,139 Views)

Tutorial

http://zone.ni.com/devzone/cda/tut/p/id/3478

 

Hope this helps.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 5 of 12
(4,120 Views)

thank you for the link.  It seems to be of use however i cannot open the .vi files as I am using labview 8.0 and the files are created in labview 8.2. Is it possible to get these fgiles in my version?

 

0 Kudos
Message 6 of 12
(4,112 Views)
If you follow the link to: http://zone.ni.com/devzone/cda/epd/p/id/4776 you will see a zip file that is compatable with LabVIEW 7.1. You can open that with LabVIEW 8.0 and compile for version 8.0 using Tools>>Mass Compile.
Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 7 of 12
(4,108 Views)

also it seems i do not have the 'configuration tool pallette used in this link.  Is there a download for it?

 

0 Kudos
Message 8 of 12
(4,104 Views)

forget last comment posted it before reading previous one sorry

 

0 Kudos
Message 9 of 12
(4,101 Views)

I got those files to work.  I attached this to the modbus example vi and i can use it to read one parameter.  How can i modify it to read multiple parameters? I want to be able to further down the line add additional parameters to the config file and not have to modify the labview code.  any suggestions? 

 

thanks again for the links!!!

0 Kudos
Message 10 of 12
(4,077 Views)