LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

No Output

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 7
(2,733 Views)

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.

0 Kudos
Message 2 of 7
(2,726 Views)
Solution
Accepted by topic author Bobino

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.

0 Kudos
Message 3 of 7
(2,719 Views)

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?

 

0 Kudos
Message 4 of 7
(2,711 Views)

Thank You Brian, I will look at this example

0 Kudos
Message 5 of 7
(2,707 Views)

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.

0 Kudos
Message 6 of 7
(2,698 Views)

My scope can trigger on an 17 ms signal

0 Kudos
Message 7 of 7
(2,683 Views)