02-13-2009 09:08 AM
02-16-2009 06:05 PM - edited 02-16-2009 06:06 PM
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
02-17-2009 08:39 AM
This is not quite what I'm looking for - its not counting how many times the NI 9263 goes on/off.
See attached vi.
02-18-2009 11:55 AM - edited 02-18-2009 11:58 AM
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
02-19-2009 10:13 AM
Still not having any success.
I added a numeric control to the loop count (N) to fix the broken arrow, loop doesn't count.
02-20-2009 03:51 PM
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?
02-21-2009 03:17 AM
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
02-23-2009 12:26 PM
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