04-28-2010 12:15 PM
My VI is intended to generate two seperate square waves to drive a pair of solenoids. Everything works well except that the timing appears to be running at about 2/3 the pace expected. What am i doing wrong?
04-28-2010 12:55 PM
Are you talking about the period or the On Time? I ran your VI, and on my computer, the period (set at 15) was fine. When you zoom in and look at the (very fast) On Time pulse, it will appear off due to the time it takes to reach full amplitude (about 1mS). So the peak of the pulse looks too short, and the valley looks too long.
04-28-2010 01:04 PM
When I run the VI a period of 15 s takes more like 26s in real time. So everything appears to be ok except the that time scale in general is taking almost twice as long as it claims.
I'll try another machine and see if i have the same result.
04-28-2010 01:28 PM
04-28-2010 01:28 PM
04-28-2010 03:16 PM
Your DAQmx code does not make much sense to me. I don't know why you are using a Sample Clock with an Output task, I don't know why you are Starting the task repeatedly in the loop, etc. This code should throw multiple errors.
What does your graph look like when you run code that works?
04-28-2010 03:32 PM