Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace old VISA open with new VISA open icon

Is there a way to directly replace "Old VISA open" icon with "new VISA icon?"
I don't know what to do with GPIB address connection. (connected to "resouce name" line in old VISA open)
 
using LV v7.1 on WinXP pro.
 
Thanx!
0 Kudos
Message 1 of 11
(4,873 Views)
Just right click on "Old VISA Open", select replace, and browse to VISA Open on the instrument I/O>VISA>VISA Advanced palette. You have to delete the string that was wired to the resource name input of the old function. On the connector pane, wire the VISA session control to where the string was (most likely the top left).
0 Kudos
Message 2 of 11
(4,863 Views)

I did try your recommendation and please see the attached VI. I am not sure whether I am doing this correctly.

Thanks!

0 Kudos
Message 3 of 11
(4,858 Views)
Not exactly. This function had the front panel VISA Session hidden. So, go to the diagram, right click on the VISA Session control and select Show Control. Then, go to the front panel and delete the Instr Descriptor string control. Right click on the VI's icon and select Show connector. Wire the top left terminal to the VISA Session. In any VI that calls the Initialize function, you could also replace any string Instr Descriptor control or constant with a VISA Resource Name control from the I/O palette. This isn't strictly necessary as the VISA Session control on the Initialize function will accept a string as an input. Using an actual VISA Resource Name does make things a little easier since to choose an instrument, all you have to do is click on the arrow on the right side of the control to get a list of instruments. With a string control, you have to type in the correct VISA resource name and make sure you have no typing errors.
0 Kudos
Message 4 of 11
(4,855 Views)

Thanks alot for your help! I did modify the initialize.vi, but now I have a problem with this VI using initialize.vi as a subVI. I am trying to control multiple 8133As with just one front panel control parameters. I really appreciate your help!

 

0 Kudos
Message 5 of 11
(4,851 Views)

here is the modified initialize.vi

thanks again!

0 Kudos
Message 6 of 11
(4,852 Views)
As I said "Right click on the VI's icon and select Show connector. Wire the top left terminal to the VISA Session." You didn't do this.  And, you cannot send a string with multiple resource names to the init function or any other function. GPIB doesn't work that way. You have to address a single instrument at a time. You could create an array of VISA Resource Names and put each function in a for loop.
0 Kudos
Message 7 of 11
(4,847 Views)

I can do the select show connector(in front panel), but I could not do the later (wire the top left terminal to the VISA session). VISA session (for class) is already connected in the block diagram. Perhaps, I am missing something here.

 

0 Kudos
Message 8 of 11
(4,845 Views)
The example you posted does not have VISA session (for class) wire to the connector pane. Are you confusing the VISA session indicator with the VISA control? The one you need to wire to the upper left is the control that is in the lower left. The block diagram has nothing to do with wiring controls and indicators on the front panel to the connector pane. Look up the topic "Assigning Terminals to Controls and Indicators" in the LabVIEW on-line help.
0 Kudos
Message 9 of 11
(4,841 Views)

I tried your recommendation, but I am not sure whether this is done correctly. please see the attached vi. I could not find the topic that you had metioned in online help.

Thank you!

0 Kudos
Message 10 of 11
(4,820 Views)