Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA read function in LAb View can not read string from Agilent 33220A

Hi, everyone, I need a help!

Now I write a new program, showed as below:

QQ截图20160929124226.png

I can successfully run the program and 33220A also doesn't report any errors.

But the problem is that I can not receive any string and the numeric indicator also shows 0.

I also try to write reset commad, I find 33220A can reset.

Above all, now my situation is that 33220A can reaceive command and do the corresponding reaction, but can not send information back or VISA read function read nothing...............

 

Note:

 I do not understand that why there is a coercion dot in VISA read function.

 

Many thanks!

0 Kudos
Message 1 of 14
(4,177 Views)

Maybe you should look at the official instrumentdriver for the instrument.

I guess that you have a read end character problem.

 

About the coercion dots: A string is not the best input for a visa resource name.

You better take a Resource name constant.

And the constants are probably not I32 but something else. I did not check that...but you can choose from a lot of types and only one correct type doesnot give a coercion dot.

Th easiest way to get a correct type is to select the connection and with mouse right click create constant at that connection.

 

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

Maybe you should look at the official instrumentdriver for the instrument.

I guess that you have a read end character problem.

 

About the coercion dots: A string is not the best input for a visa resource name.

You better take a Resource name constant.

And the constants are probably not I32 but something else. I did not check that...but you can choose from a lot of types and only one correct type doesnot give a coercion dot.

Th easiest way to get a correct type is to select the connection and with mouse right click create constant at that connection.

greetings from the Netherlands
0 Kudos
Message 3 of 14
(4,158 Views)

Hi,

 

Check you resource string name.

 

Is it really GPIB19::10::INSTR?  That means gpib card 19 with device address 10.

Should it be GPIB0::19::INSTR?

 

Curt

0 Kudos
Message 4 of 14
(4,142 Views)

It is GPIB19::10::INSTR.

Because when I use GPIB0::10::INSTR, Lab view program even can not run successfully.

So, I change the VISA address. Because I both have Agilent IO control and MAX, May be there will has conflit in using the address. 

0 Kudos
Message 5 of 14
(4,141 Views)

What's the resource name of your gpib card in ni max?

0 Kudos
Message 6 of 14
(4,138 Views)

GPIB 19 both in MAX and Agilent IO control.

I also not sure.

And  I can not use VISA resource name to find GPIB19:: 10:: INSTR.

0 Kudos
Message 7 of 14
(4,137 Views)

when you scan for instruments in ni max does the device show up in the list?

0 Kudos
Message 8 of 14
(4,135 Views)

Resource can be showed both In MAX and Agilent IO control,

QQ截图20160930101343.png

QQ截图20160930101420.png

I do not know why in MAX, GPIB19::10::INSTR is showed both under "Devices and Interfaces" and "Miscellaneous VISA Resources"  

 

0 Kudos
Message 9 of 14
(4,134 Views)

There's somthing wrong with your ni gpib install or there's a confict with the agilent software. The gpib card should show up as a separate device with the connected instruments listed below it in the tree.

 

Curt

 

nimax.png

Message 10 of 14
(4,132 Views)