Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

visa resource name as avariable

Solved!
Go to solution

Dear All

 

I have a program with different VIs. I want to configure the VISA Serial port only one time and use this configuration where ever I want. How do I do this.

Now i have to configure the VISA parameters (such as: Bouad rate, VISA resource name, Parity, ...) every time i want to read or wirte a variable on serial port.

is there somthing like a global variable which i can save the configuration on that and use it when ever i want in different Sub VIs?

 

Thanks in Advance

0 Kudos
Message 1 of 4
(4,408 Views)
Solution
Accepted by V.S

out of the configure coes a visa resource. You can connect that to another vi where it is an input.

So yes that name is a resource variable. You don't have to reopen, in fact you should only open once and use it whenever you need it.

 

If in doubt, send the vi with the question.

greetings from the Netherlands
Message 2 of 4
(4,407 Views)

Dear 

That was exactly what I wanted.

 

Tancks alot

0 Kudos
Message 3 of 4
(4,404 Views)

Dear 

That was exactly what I wanted.

 

Tancks alot

0 Kudos
Message 4 of 4
(4,404 Views)