LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to stop until generate a whole cycle waveform when click stop button

Solved!
Go to solution

Hello dgql!

 

I apologize for the delay, I'm still looking into the best way to write zero at the end of your code - I will let you know as soon as I have more information. Are you still having issue with your code?

Will Hilzinger | Switch Product Support Engineer | National Instruments
0 Kudos
Message 11 of 16
(590 Views)

Yes, I still can not return to the original place when I stop. I am looking forward to your suggestion 🙂

0 Kudos
Message 12 of 16
(585 Views)

Thanks for the update - I will let you know as soon as I have more information, hopefully early next week.

Will Hilzinger | Switch Product Support Engineer | National Instruments
0 Kudos
Message 13 of 16
(580 Views)

Hello, dgql!

 

I was able to get my hands on some hardware and try it out myself. I modified the example "Cont Gen Voltage Wfm-Int Clk.vi" (found in LabVIEW under Help>>Find Examples>>Analog Generation>>Voltage). An image of the modified code is attached.

 

Basically, the modifcation creates a new task, which finishes by writing a zero to the device. This will ensure that your device is not outputting a high voltage when restarting your task.

 

You can compare to the original example to see the changes made - please let me know if you have any questions!

 

 

Will Hilzinger | Switch Product Support Engineer | National Instruments
0 Kudos
Message 14 of 16
(571 Views)

Thank you so much!!!

0 Kudos
Message 15 of 16
(562 Views)

No problem!

Will Hilzinger | Switch Product Support Engineer | National Instruments
0 Kudos
Message 16 of 16
(551 Views)