Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control MS9710B with LabView via GPIB

Hi,

I am communicate Anritsu  MS9710B (optical spectrum analyzer) with LabView via GPIB. When I run the MS9710 Getting Started.vi file, it is writing "Local" on the device screen left bottom but give me error: "Visa: Unable to start operation because setup invalid.". I am using LabView 8.2i Visa 4.4.

What must I do?  

Best Regards.

Murat

Download All
0 Kudos
Message 1 of 10
(6,948 Views)
You need to attach the subVIs.
0 Kudos
Message 2 of 10
(6,938 Views)

I new user LabView. I am attaching SubVIs.

 

Best Regards.

 

0 Kudos
Message 3 of 10
(6,933 Views)
Try the new version I have attached. I replaced the "old VISA Open" in the initialize function and created a VISA resource control in the getting started VI.
0 Kudos
Message 4 of 10
(6,929 Views)

I tried your attached file but give me error at the attachment.

What musy I do?

Thank you...

0 Kudos
Message 5 of 10
(6,925 Views)
You need to provide a valid VISA Resource Name. The name is what identifies the instrument. For a GPIB instrument, the format is GPIB0::15::INSTR where the '15' is the GPIB address. Assuming that you have NI-VISA installed and did a find instruments in MAX, when you click on then little arrow on the right side, you will get a list of all VISA resources. This will include com port, printer ports, and the GPIB instrument. You just have to select the right one.
0 Kudos
Message 6 of 10
(6,904 Views)

 

Hi,

My MAX screen is at the attachment. GPIB address is nonexistent. I used Contec GPIB card and I find to my devices diognasis program this card software.

What can I do?

Thank you.

0 Kudos
Message 7 of 10
(6,893 Views)
My device GPIB address is 8. GPIB card is PCI...
0 Kudos
Message 8 of 10
(6,890 Views)

Are you sure that you can communicate in LabVIEW with this GPIB card?

Contec is not NI and I don't know that it speaks VISA.

But maybe I'm wrong

greetings from the Netherlands
0 Kudos
Message 9 of 10
(6,886 Views)

They do have a GPIB driver for LabVIEW but I get the impression they don't support the VISA standard so you would have to rewrite any instrument driver that uses VISA. Since VISA has been the standard for many years (for most companies and not just NI), you'll have a lot of rewriting to do if you intend to use this card with more instruments.

0 Kudos
Message 10 of 10
(6,868 Views)