Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to reset my NI-DAQmx when i click on the abort execution on labview?

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. 

0 Kudos
Message 1 of 6
(3,479 Views)

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.

0 Kudos
Message 2 of 6
(3,472 Views)

THANK YOU!! I DONT EVEN KNOW HOW TO SAY THANKS!!!

YOU HELPED A LOT!!!!!!!!

 

MANY MANY MANY THANKS

0 Kudos
Message 3 of 6
(3,462 Views)

By the way, is there any way of remove the Abort switch from the front panel ?

thanks again

 

 

0 Kudos
Message 4 of 6
(3,461 Views)

Hi,

You can customize your front panel:

Files->VI Properties->Window Appearance->Customize->      then uncheck Show Abort

Regards

Yann C.

France

0 Kudos
Message 5 of 6
(3,453 Views)

Thanks Yann, helped a lot again!!

 

JOSE PINTO

0 Kudos
Message 6 of 6
(3,443 Views)