LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB-USB HP3562a...

Thanks for your code. It writes succesfully to the tool but I don't get any reading output still. Sometimes it gives me a timeout error for some reason as well 1073807339.

0 Kudos
Message 11 of 31
(2,167 Views)
I predict that if you continue to make code easier to read, then you will simplify yourself out of a job!  Smiley Wink

Just kidding, excellent clean up.  I'm going to miss the negated and anded boolean input though, *sniff.*


"Remember kids, always over comment the code, you never know who the next joe shmo will be who has to work on it.... it might even be YOU!"
0 Kudos
Message 12 of 31
(2,164 Views)
The data can be dumped in 3 states from 2 different sources.  Do you want ASCII Data Format, ANSI Floating Point Format, or HP3562A Internal Binary Format?  Do you want the raw data or what is on the display.   The display is generated from the raw data. 

When you get the data, the raw or the cooked, there is a header file that describes the contents of the "data."

Which format and data set are you desiring?


Message Edited by Drewski on 05-29-2008 11:48 AM
0 Kudos
Message 13 of 31
(2,162 Views)
I just looked in the code here and there is a vi that "erases" this error -1073807339, which is the same error you are getting.  Ignore it and continue. Enclosed is a vi that will eat the error.
0 Kudos
Message 14 of 31
(2,154 Views)
Based on what I read in the HP coders manual I need to get  the data in the  ASCII format.  Basically  I need to show the power spectrum plot   on my GUI and plus I have to record the reading from the Marker (power at one frequency). I am still fuzzy about how exactly it has to be done  since it is my first ever data aquasition  attempt.
Thanks.

0 Kudos
Message 15 of 31
(2,152 Views)
I can't open this file since my LV is 8.0. I still can't figure out why reading never returns anything while the writing sequence works fine.
0 Kudos
Message 16 of 31
(2,150 Views)
One oddity that I notice is that in the command string in the top level, the 'ddas' has the ';' command separator. You then appended another one of these in the query subVI.  I'm not sure you need the one in the subVI. You can copy the command string and run this in MAX. See if you get data there.
0 Kudos
Message 17 of 31
(2,142 Views)
The command you want to send is A;DCAS;  Which is Channel A, Dump Coordinate Transform Block (the screen) in ASCII
Then you need to decode the header.

There is a way to get the marker value, I'm looking through the code to see how.
0 Kudos
Message 18 of 31
(2,141 Views)
To read the marker it's RDMK; and it returns two comma seperated values.  Value 1 is the X-Axis and Value 2 is the Y-Axis.

Maybe you could practice reading that first, before the data?
0 Kudos
Message 19 of 31
(2,134 Views)
Good point. I will try to read the  maker now. I''ll let you know shortly how it will go.

0 Kudos
Message 20 of 31
(2,131 Views)