03-12-2024 09:43 AM
Hey there I have a doubt about daq I/O state , because when I close the labview app by X button the state of I/O keep the same so I would like to reset I/Os to 0 because it may keep an atuador or motor running .
03-12-2024 10:09 AM
Hi Chris,
@Chris9823Alb wrote:
when I close the labview app by X button the state of I/O keep the same so I would like to reset I/Os to 0 because it may keep an atuador or motor running .
When you want to output a certain value on your DAQ output when you end your program then you need to output that value before your program stops! Simple as it is...
In general there should be some kind of "cleanup" state/stage before the program finishes, and output final DAQ values is one item on the cleanup list!
03-12-2024 06:31 PM
How Can I Reset to Zero My Analog Output Value After I Stopped My Application?
03-13-2024 12:17 PM
I would like on labview code if the program get an error the program close and outputs set be 0
03-13-2024 12:22 PM
A truncated image is not useful to us. What kind of errors are you expecting?
03-13-2024 12:33 PM
Your DAQmx Write will not work inside of the Error case because it will skip if it has an error coming in. Disconnect the error input of the DAQmx Write. You will want to use a Merge Errors after the DAQmx Write so that you don't lose the error that caused this case.
03-13-2024 12:49 PM
thanks it worked , does have an option to zero the outputs when click abort execution?
03-13-2024 12:53 PM
@Chris9823Alb wrote:
thanks it worked , does have an option to zero the outputs when click abort execution?
No. You need to prevent the user from aborting the VI and there are many ways to do that.
03-13-2024 01:33 PM
which ways ?
03-13-2024 01:38 PM
Mix&Match:
Hide the toolbar, hide the windows bar, use panel close filtering event, etc. etc.