LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visa read

Solved!
Go to solution

Hi all,

 

I am having a visa read issue now and wondering anyone can help.

 

I wrote my own Agilent driver and now looks like anything is fine and I can get the right value which is around 1.7 from the instrument itself. Now I wanna the right value been read from the visa. It always give back to me 9.91E+37 and I am not quite sure why

 

Thanks

 

Download All
0 Kudos
Message 1 of 13
(5,335 Views)

9.91E+37

is "Agilient -Speak" for Overrange.


"Should be" isn't "Is" -Jay
Message 2 of 13
(5,331 Views)
What is the instrument? What is the exact string you get from the VISA Read?
0 Kudos
Message 3 of 13
(5,326 Views)

Thanks

 

But I was wondering why the instrument itself can read the right value but the visa can not?

 

The instrument read 1.7 which is in the range from the Agilent range table, do you know what is the overrange for?

 

0 Kudos
Message 4 of 13
(5,324 Views)

Agilent B2901A is the instrument I am using

 

The exact string I get from the VISA READ is (see the png file)

 

Thanks

0 Kudos
Message 5 of 13
(5,322 Views)
We don't know what VISA can or cannot read since you did not provide that information. Since you did not provide the model number either, no one can tell whether you have used the correct commands.
0 Kudos
Message 6 of 13
(5,320 Views)
So, the B2901A has a real driver from NI. What do you get with that?
0 Kudos
Message 7 of 13
(5,317 Views)

Maybe it's something to do with auto-ranging?  Like maybe you have to wait until it's done auto-ranging before reading the value?  Maybe you have to make the autoranging command into a *OPC? query so that the VI won't try to read until it's done autoranging?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 8 of 13
(5,316 Views)
Solution
Accepted by huskerli
I would also hope that you are doing the majority of your debug in MAX. I would also recommend you do an ERR? query to see if the instrument will tell you anything.
0 Kudos
Message 9 of 13
(5,313 Views)

It seems like as longas I have a "INIT" in the SCPI code, I can not get the right value from the VISA read. If I get rid of the "INIT", it will be read the right value.

 

I do need the "INIT" because I wanna it performance like a pulse. I think the reason why I can not read the right values becasue I am currently using "MEAS;VOLT?" command which is suppose read one value only. But with "INIT", I am going to read five values because I am set up count 5 times.

 

I think if I change the command to "MEASure:ARRay:VOLTage"it may work.

 

I just wondering is there anyway I can read a array from the VISA read?

- i tried "string to byte array" but did not get it

 

Thanks 

0 Kudos
Message 10 of 13
(5,227 Views)