01-24-2008 04:25 PM
01-24-2008 08:05 PM
Hello,
I've used the example "Gen Dig Pulse Train-Continuous" from the example library and it looks like it is working but the one thing that I'm unable to figure out at this time is how to have the VI running and be able to dynamically change the frequency value.
Does anyone have an idea on how to do this. I currently just use two boolean operators to stop the while loop, which then allows the parameters to update the next time the RUN buttton is pressed. Perhaps there is a better method of generating the continuous pulse train with this on the fly parameter changing ability.
any ideas would be appreciated.
thanks
SS
01-25-2008 02:36 PM - edited 01-25-2008 02:38 PM
Hi SS
Thank you for using our discussion forms.
You were on the right track. Have a look at the VI that is attached. It is the finite pulse train example that you have been using. I just added a DAQmx Write (Counter Output) VI in the loop. This allows you to update the task as it is running.
I have also added a Wait VI that uses the updated frequency as an input. You must ensure that the pulse period (in seconds) < loop wait (in seconds) otherwise you will run into errors. For more information please see the following link.
Have a great day
Chris_K
01-25-2008 03:18 PM
Hi Chris,
Could you post a JPG of the VI. I'm running 8.0 and it doesn't seem to want to open.
Thanks for the help in advance.
best
SS
01-28-2008 10:48 AM - edited 01-28-2008 10:49 AM
Sorry about that, I meant to post an Image anyway.
Here you go.
Chris_K
01-28-2008 10:55 AM
Chris,
Just what I was looking to do. thanks again.
best,
SS