07-06-2007 10:08 AM
07-06-2007 10:11 AM
07-06-2007 07:55 PM
Here is the problem VI. Thank you!
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.
07-06-2007 07:56 PM
07-06-2007 09:59 PM - edited 07-06-2007 09:59 PM
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