02-03-2008 10:06 AM
02-04-2008 12:46 PM - edited 02-04-2008 12:46 PM
Hello Ron,
If I understand correctly, you have continuous pulse generation. During this generation, you need to occasionally stop the counter output and restart it later. Please let me know if I have assumed incorrectly.
Using the DAQmx VIs, it is possible to stop a task without clearing it, and then restart the task later on. The error you are seeing makes it necessary to use the DAQmx Channel Property Node to set the frequency and duty cycle of the counter output when the task is stopped. I have included a screenshot on how to use this property node to change the frequency of the output before restarting the task.
02-05-2008 02:05 AM
Thank you for your clear and helpful response BrowningG.
Your suggestion does answer my problem and I am attaching a screen shot of how I decided to applicate it to suit my needs (maybe it will help somebody encountering the same problem).
But, I have another question, Is it possible to create a task for two counters once and then to switch them on and off (the same way you explained) separately?
Thank you again,
Ron
02-05-2008 06:39 PM - edited 02-05-2008 06:40 PM
Hello Ron,
I am glad you found a solution!
One way to switch back and forth between two tasks is to use the DAQmx Control Task VI. This VI is located in the DAQmx Advanced Task Options palette. This VI allows you more control over the task operations than just the Start and Stop VIs. More information about this VI can be found in the LabVIEW help by selecting the Index tab and searching for “daqmx control task.” This section details how each of the 5 settings works. I have included another crude screenshot of how this is possible.
11-25-2024 02:37 AM
Hi
I got this error in my LabVIEW program.
How can I solve it? Thanks! I have uploaded my VIs.