From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-02-2015 08:44 AM
Hi,
I want to load some parameters from ini file on application startup = click on exe file and load setting on FormCreate event in classic RAD software.
How can I do this in Labview?
Thank you.
Solved! Go to Solution.
07-02-2015 09:28 AM
You should look in to LabVIEW's configuration VIs. These load/save/update ini files.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-02-2015 09:28 AM - edited 07-02-2015 09:29 AM
Beat me to it.
07-02-2015 09:35 AM - edited 07-02-2015 09:36 AM
My question is not about how to read from ini file, but equal event for Labview to OnCreateForm event in normal Rapid Application Development software (Lazarus, Delphi, Qt Creator, Visual Studio)
07-02-2015 09:44 AM
I guess there's no "automatic" way like that. You have to just read in the file first thing.
07-02-2015 09:46 AM - edited 07-02-2015 09:49 AM
When the executable is first run, you just read in the ini file. No event needed.
Edit: To clarify, LabVIEW code runs like a flowchart, so at the beginning of your application's "flowchart" you put your ReadFromConfig code.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-02-2015 09:55 AM
Thanks. I understand.