Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem With HP 34401A

I have HP 34401A use to measure voltage and current in every 10 second interval.
But it had problem [ -410 Interrupt]  at the measure in 2nd take-reading.
0 Kudos
Message 1 of 5
(4,039 Views)
Can you post your VI to see why this should happen?

greetings from the Netherlands
0 Kudos
Message 2 of 5
(4,034 Views)

RobertLaw 已寫: I have HP 34401A use to measure voltage and current in every 10 second interval. But it had problem [ -410 Interrupt]  at the measure in 2nd take-reading.

Here is the problem VI. Thank you!
0 Kudos
Message 3 of 5
(4,027 Views)
Download All
0 Kudos
Message 4 of 5
(4,026 Views)

For your immediate problem, I would recomend that you delete the Abort function.

A few additional comments:

You said you have a VI that measures voltage and current but what you posted was two VIs that are the same and only take a voltage  measurement. You don't want to do a reset and initialize with each loop. Put the initialize outside the while loop and remove the reset. The initialize is already doing it.  If you do just want to take a voltage reading every 10 seconds, then put the config outside the loop as well. It's a really bad idea to hide the VISA Resource Name control behind the graph. How do you expect anyone to select the correct resource name? If you want to use a fixed resource name, make it a block diagram constant. It would be better to pass the error cluster through a shift register. The whole section of code where you get the address from the VISA Resource Name and then use a GPIB Write and Read is just totally unnecessary. You can easily modify the initialize function to return the result of the IDN? query if you feel you need to see the result. Actually, if the IDN? query returns a value that does not match what is expected the initialize function will return an error. In any case, it's just plain silly to parse the resource name and then use a GPIB function instead of a VISA function.

p.s. And please don't try to get too fancy with fonts in the message body. Just leave them at the defaults.

Message Edited by Dennis Knutson on 07-06-2007 09:01 PM

Message Edited by Dennis Knutson on 07-06-2007 09:05 PM

0 Kudos
Message 5 of 5
(4,024 Views)