Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to change Visa on Labview and can't find where

Hi,

The code isn't mine and I have a slight different device (scope) to connect to the computer (with different Visa number)
Don't know how to find the Visa in the block diagram.
Would appreciate if you could advice with some instructional photos.


Thanks

0 Kudos
Message 1 of 4
(3,306 Views)

In the 0th frame of the stacked sequence structure is a constant "USB0::010893::6000::MY544.." that is wired to the "VISA Resource name of the scope".  See photo attached.

visa_beam_usb.jpg

 

 

You can do 2 things:

 

1) Change the value of the constant of the constant in the code using the drop down menu as pictured.

 

2) Change that constant to an indicator.  The indicator will appear on the front panel and you can change the address there without needed to look through the block diagram.

 

Good luck.

 

 

0 Kudos
Message 2 of 4
(3,248 Views)

@cstorey wrote:

2) Change that constant to an indicator.  The indicator will appear on the front panel and you can change the address there without needed to look through the block diagram.


There is already an indicator.  So just use that.  Also be sure to "Set Current Value As Default" after changing the value.

 

I will throw out a third option: Have code to read the resource name from a configuration file.  Then you just have to change a simple text file next tie you change computers instead of rebuilding the executable each time.



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 4
(3,235 Views)

Right, I meant change to a control!  

 

I think config files are a little ways down the road at this stage 😉

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