LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can anyone help me with a HP4145B status byte?

I am running a VI that takes a measurement, and polls the HP4145 status byte to see when the measurement has finished before the VI continues. The VI has been working fine for the last month, but now I am getting a (-1) when I do a GPIB serial poll of the device. I am also getting Error 15, which means that the status byte queue is overflowing. This causes the VI to continue before the measurement has completed.
0 Kudos
Message 1 of 3
(2,751 Views)
You haven't included the HP4145 VIs in your attachment but even without them, I noticed that you have a case statement surrounding the GPIB Serial Poll and a False constant wired to the case selector. In your example, the GPIB Serial Poll is never being executed.

p.s. To make your code more readable, I would suggest getting rid of all of the sequence structures and just use the error in/error out clusters to enforce dataflow.
0 Kudos
Message 2 of 3
(2,751 Views)
Yes, I sent you the wrong version of the file. The case statement was put in later so as to "comment out" the serial poll and replace the frame with a "Wait" function. I apologize. But even without the case statement, it still doesn't work. I don't think this is a coding problem. And the HP4145 VIs are available from NI's website.
0 Kudos
Message 3 of 3
(2,751 Views)