LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

agilent 53220A total continualize clear count

Hi i have an agilent 53220A frequency counter and i am trying to clear to count to recount again after but i keep getting some type of error if i try resetting becasue i have to reinitialize.

Thanks in advance

0 Kudos
Message 1 of 11
(3,945 Views)

What kind of error do you get?

 

Can you include a picture or error number?

-Jim B
Applications Engineer, National Instruments
CLD, CTD
0 Kudos
Message 2 of 11
(3,909 Views)

depending on where i put the reset it acts differently. If its put after the read visa the counter doesnt count at all. If its placed after the loop but before close in the main loop it only counts once then not at all.

0 Kudos
Message 3 of 11
(3,881 Views)

Just real quick looking at your code, you probably shouldn't open and close the VISA reference inside the loop.  Try moving the VISA Configure Serial Port and the VISA close outside of the while loop.

-Jim B
Applications Engineer, National Instruments
CLD, CTD
0 Kudos
Message 4 of 11
(3,870 Views)

for the frequency counter the open and close are outside of the loop.. the other ones have to be where they are in order for them to work and have the variabel control i need.

0 Kudos
Message 5 of 11
(3,850 Views)

Have you gotten this function to work at all on this device?  I would start with trying to get it to work without anything else going on.

 

Without further information it's really hard to diagnose exactly what is going on, but it sounds like the either the instrument or LabVIEW does not like reconfiguring the DMM so often.  (Maybe it's still configuring when LabVIEW tries to configure it again, or something like that)  Try putting a delay in your inner loops to see if that helps.

 

Also, have you tried to use the "Device Clear.vi" VI for that instrument.  It's description sounds promising.

 

-Jim B
Applications Engineer, National Instruments
CLD, CTD
0 Kudos
Message 6 of 11
(3,825 Views)

where is the device clear vi for the instrument i have not seen it?

0 Kudos
Message 7 of 11
(3,797 Views)

It's under the Agilent 34401 driver -> Utility -> Device Clear

-Jim B
Applications Engineer, National Instruments
CLD, CTD
0 Kudos
Message 8 of 11
(3,779 Views)

the 34410 driver?

im using an agilent 53220A

0 Kudos
Message 9 of 11
(3,749 Views)

Try sending the ABORT command followed by INIT:IMM in the loop after you read the totalizer data or use a shift register and substract the previous count value (beware that the count doesn't exceed the double max value)

0 Kudos
Message 10 of 11
(3,737 Views)