LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa resource name doesnt store my gpib address

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 7
(2,921 Views)
Solution
Accepted by topic author mctnnn

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…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,909 Views)
Solution
Accepted by topic author mctnnn

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


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 7
(2,875 Views)
Solution
Accepted by topic author mctnnn

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.

0 Kudos
Message 4 of 7
(2,835 Views)

Thank you.

It works.

0 Kudos
Message 5 of 7
(2,791 Views)

Thanks.

I will find out how to do it.

0 Kudos
Message 6 of 7
(2,787 Views)

Thank you all of you guys.

I am quite new and still learning how to create VI application with Labview.

0 Kudos
Message 7 of 7
(2,778 Views)