09-13-2013 04:58 PM
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
Solved! Go to Solution.
09-13-2013 05:03 PM
9.91E+37
is "Agilient -Speak" for Overrange.
09-13-2013 05:15 PM
09-13-2013 05:30 PM
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?
09-13-2013 05:33 PM
Agilent B2901A is the instrument I am using
The exact string I get from the VISA READ is (see the png file)
Thanks
09-13-2013 05:36 PM
09-13-2013 05:42 PM
09-13-2013 05:42 PM
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?
09-13-2013 05:47 PM
09-16-2013 06:14 PM
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