LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatic Control of Pulses from Ctr0

Using LV8.0 with Win_XP.

To control a loading solenoid at  a user programmed time interval ( On / Off ) I am using Ctr0 to generate the pulses and counting the number of pulses  by Ctr1 using a hardware link from Ctr0 output to Ctr1 input.

My requirement is to be able to start and stop the Pulse generation based on certain  conditions in a State Machine. And when I stop and restart the pulse generation, the Numeric count of pulses must not be reset. Typically each schedule on the machine will run for about 2 million cycles and hence retaining the elapsed count is very important.

More than my description the enclosed VI will explain the requirement more clearly.

Thanks for any suggestions.

Raghunathan
Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 1 of 2
(2,472 Views)
Hi Raghunathan,

I liked your application and couldn't help but try and code this up myself.  I have attached the modified version with the logic used to stop/restart the counter output.  Let me know if this is what you were trying to do.

Regards,
Andrew W
National Instruments
0 Kudos
Message 2 of 2
(2,456 Views)