Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I creat a cycle counting output of NI 9263 on and off using a timing circuit?

I currently have a circuit that cycles on and off.  I need to be able to count the amount of times it does a full cycle ( on then off). I also need to be able to set the amount of cycles I need the circuit to do. Please help - Thank you....
0 Kudos
Message 1 of 8
(3,670 Views)

Hi HelpMe9211,

 

The cycle counting can be accomplished with the iteration component of the while code.  This component, by itself, will keep track of the cycle counts.  You can also compare this value to a numeric control you create to specify how many cycles you want to run to determine when the vi should stop cycling.

 

 

 

David Nosbusch

Applications Engineer

National Instruments

Message Edited by DavidMN on 02-16-2009 06:06 PM
David
Applications Engineer
National Instruments


Digital Multimeters
0 Kudos
Message 2 of 8
(3,640 Views)

This is not quite what I'm looking for - its not counting how many times the NI 9263 goes on/off.

See attached vi.

 

0 Kudos
Message 3 of 8
(3,617 Views)

If you are using the 5V output and 0V output to specify the on/off cycle you could count the number of times the 0V output occurs (signaling the end of the cycle).

 

 

David

Applications Engineer

National Instruments

Message Edited by DavidMN on 02-18-2009 11:57 AM
Message Edited by DavidMN on 02-18-2009 11:57 AM
Message Edited by DavidMN on 02-18-2009 11:58 AM
David
Applications Engineer
National Instruments


Digital Multimeters
0 Kudos
Message 4 of 8
(3,603 Views)

Still not having any success.

I added a numeric control to the loop count (N) to fix the broken arrow, loop doesn't count.

0 Kudos
Message 5 of 8
(3,587 Views)

Hello,

On your front panel, you have a "Set Counts" control. What are you setting this value to be? I have run your vi and entered 15 for the Set Counts control and read 15 counts in the count indicator. What are you expecting this vi to do?

Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters
0 Kudos
Message 6 of 8
(3,567 Views)

I would like the vi to count the number of times the NI 9263 goes to through a cycle (5V on then 0V off), then stop after achieving the the set number of cycles. The test that is running is a life cycle test (10,000 cycles). 

When I run this vi it shows the set count number and continues to run without stopping. 

Thank you. 

 

Al Connolly

Test Technician

CWFC-Target Rock Division

0 Kudos
Message 7 of 8
(3,562 Views)

Hi Al,

 

When you say the vi shows the set count number, do you mean that the counts indicator stops at the user specified set counts value, or that it continues to increase beyond that value?  When you say the vi continues to run without stopping, do you mean it continues to cycle or that it just continues to run?  A more detailed description of the operation you are experiencing would be helpful.  Don't forget that you also need to set a condition to stop the while loop, as I instructed in my first post.

 

David

Applications Engineer

National Instruments

David
Applications Engineer
National Instruments


Digital Multimeters
0 Kudos
Message 8 of 8
(3,527 Views)