06-13-2012 04:25 PM
Hi,
I am new to Labview and I have been trying to make this program work. The block diagram is attached. I am using an NI-DAQ USB 6211 with DAQmx base on a linux machine. When the program runs normaly, it does not output anything, but in highlight mode, it works as expected. I am using a digital oscilloscope to test the output.
Thank You very much
Solved! Go to Solution.
06-13-2012 04:31 PM
It may turn on ever so briefly, but it will close very quickly. I was wondering why you put the task open and stop inside the loop? try putting the create task and stop task outside the loop. In highlight mode the program runs much slower and it slowly steps thru the program it will create and run the task and then stop and close the task. Without highlight on, it runs so fast it closes quickly after it runs.
06-13-2012 04:39 PM
Get into the example finder and go to:
Hardware Input and Output >> Daqmx >>Analog Generation>>Voltage
and look for Gen Mult Volt Updates-sw timed.vi
It is an example of what you are trying to do and should clear some things up for you.
06-13-2012 04:56 PM
Thank You for the quick reply.
I made the modifications you sugested. Here is an updated block diagram. However the problem stays.
If your suggestion is correct and the problem is that the output turns off before having written anything, would you have a suggestion on how to fix it?
06-13-2012 05:00 PM
Thank You Brian, I will look at this example
06-13-2012 05:12 PM
No, no, no. You must take the timing, stop, and clear task out of the loop. It's not turning off before haven written. You just aren't seeing the brief time it is on. Do the basic math. With a sample rate of 50000 Samples/sec and 850 samples, the output is only on for 17 msec.
06-13-2012 05:29 PM
My scope can trigger on an 17 ms signal