09-12-2019 09:21 AM
Hi everybody,
I have created a vi that connects among another thing a spectrum analyzer with gpib address 20,
and a path to the computer folder to store the pictures.
When I terminat the vi and then open again,
the gpib address and the path to the computer does not exist anymore.
Anyone knows why and helps me to store them,
because I want to skip writting them everytime I opened the vi.
Thanks in advance.
/mctnnn
Solved! Go to Solution.
09-12-2019 09:31 AM
Hi mctn³,
When I terminat the vi and then open again, the gpib address and the path to the computer does not exist anymore.
So the problem is your VI, but not the VISA control…
Anyone knows why and helps me to store them, because I want to skip writting them everytime I opened the vi.
When you want to use some default values you need to set those value as "default value" in the controls…
09-12-2019 10:33 AM
To set just a single control's default value: right-click->Data Operations->Make Current Value Default
To set all of the controls' default values: Edit->Make Current Values Default
09-12-2019 01:49 PM
If those are things that you may change from time to time, but you want your program to remember what the last settings were, then you need to save the settings out to a file when they change or your program closes. You can use the Config File functions to create an .ini to store your settings, and read from the file and set the values of the controls when your program first starts.
09-13-2019 01:26 AM
Thank you.
It works.
09-13-2019 01:32 AM
Thanks.
I will find out how to do it.
09-13-2019 01:49 AM
Thank you all of you guys.
I am quite new and still learning how to create VI application with Labview.