09-12-2008 09:27 AM
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
09-15-2008 11:43 AM
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,
09-18-2008 05:18 AM
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!
09-25-2008 06:54 AM
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.