LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop SCB-68 Clock

Hi,
I have SCB-68 E series device. I need to create clock signal which stops if program error occurs, program is shut down or computer is shut down. My problem is that if program is shut down but not the whole labview, signal keeps going as earlier. So, is there way to make sure that if program stops counters clock output stop also?
Signal is taken from GPCTR1_OUT -pin and frequency of pulse is 1,66667Hz with duty cycle 0.5.
 
That clock signals function is to inform other aplications (in other computers) that program is running properly, so it is important that clock signal stops no matter why and how program stops.
 
Who wants to save my day? 🙂
- Santtu
0 Kudos
Message 1 of 2
(2,532 Views)
Hello Santtu,
 
Are you using LabVIEW for this application?  Are you using Traditional NI-DAQ or NI-DAQmx?
 
I assume that you are creating a continuous counter output task.  The only way to guarantee that this task will stop is to call a DAQmx Stop Task, or DAQmx Clear Task.  If your program is shut down before those calls can be made, then there is now way to programmatically stop the task.  You need to design your application so that it does not shutdown without making the appropriate task clearing calls. 
 
Let me know if you have any further questions.
 
Regards,
Sean C..
0 Kudos
Message 2 of 2
(2,515 Views)