07-06-2009 11:09 AM
Hello guys , i am a novice programmer in labview....and i am really in trouble....please help if possible...
Ive made a code in labview so i can control one oven with a PID. The output of the PID is a DC signal with 0-2v.
All is working fine, i can obtain my DC voltage at the output channel a01 of my NI-US-6221, but when i click on Abort (on labview execution) my
a01 output does not comes to zero....I really dont now how to solve this problem.
Other tip : If i force the data of the DAQmx_Write.vi to zero and them start the execution again , the ai0 output comes to 0v but this is the only way i can
force it to come zero.
07-06-2009 01:23 PM
Never use the Abort button to stop your VI - see this.
The abort button shouldn't even be available for the user to click on. Just have a front panel stop Boolean and when your acquisition loop terminates, do a final write of 0 with the DAQmx Write.
07-07-2009 05:01 AM
THANK YOU!! I DONT EVEN KNOW HOW TO SAY THANKS!!!
YOU HELPED A LOT!!!!!!!!
MANY MANY MANY THANKS
07-07-2009 05:04 AM
By the way, is there any way of remove the Abort switch from the front panel ?
thanks again
07-07-2009 07:10 AM
Hi,
You can customize your front panel:
Files->VI Properties->Window Appearance->Customize-> then uncheck Show Abort
Regards
Yann C.
France
07-07-2009 11:15 AM
Thanks Yann, helped a lot again!!
JOSE PINTO