LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cycling analog output on and off

Solved!
Go to solution

Hi Hillman,

 

I didn't realize that altering the current code in real time would be problematic. I like your idea about stopping the task (i.e. terminating the while loop). So do you mean that when I stop the while loop (and thus the VI) when the AO is at the HOLD value (1 V), I would then flick a switch to change the task, then run the VI again to ramp down the SO signal? Or do you mean I could setup another separate VI do ramp the signal down?

 

Cheers

0 Kudos
Message 21 of 24
(819 Views)

Hi Choc,

 

Thanks for your reply.

 

I meant  you would end your first task, and then start a new one to do the ramp off - in the same vi. 

 

But, with labview, always so many ways to do things. Im sure there is a way to alter the waveform your outputting... but Im not sure of it.

 

Regards,

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 22 of 24
(805 Views)
Solution
Accepted by topic author choc

Hi Hillman,

      OK, I think I have the VI I need. Within the same VI, I can produce the ramp-hold-ramp AO pattern I want, and if I need to stop the AO, it also ramps down the AP to zero. Also, I have a waveform graph that show the AO in real-time (through an AI channel of course). If you could let me know what you think of the VI, I would greatly appreciate it. Thanks again!

0 Kudos
Message 23 of 24
(780 Views)

Hi Choc,

 

Thanks for the reply, sorry about the delay.

 

The vi you've posted would be my solution to the problem. Looks fine to me, however I cant run it as I dont have any hardware at the moment.

 

Happy LabVIEW-ing!

 

Kind Regards,

James.

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 24 of 24
(745 Views)