LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog output

Solved!
Go to solution
As a beginner I have trouble writing simple LV function that would generate 5v at first second and turns off at 4rt second. This continuously outputs to Daq ao0 and reads the ai0 on the same graph, with ao0 tied to ai0.  Each time I attempt to write a VI, I come up with more complex solutions. Can someone come up with a solution?
0 Kudos
Message 1 of 12
(3,992 Views)
Solution
Accepted by topic author interedo
If you are having problems, you should post a copy the VI you've created so far.  Then we can best help you to correct it.
0 Kudos
Message 2 of 12
(3,968 Views)

Hello!

 

Thank you for posting on the NI Forums! I thinka great starting place for this application would be to take a look at the DAQ Assistant. Here you could configure a finite output with a rate and samples to write that would give you a 3 second output.  The DAQ Assistant is an Express VI meaning that it is configuration based and should be a nice intro to LabVIEW for you. Also, please check out ourGetting Started with DAQmx page for some more resources.

 

Hope this helps!

 

 

Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters
0 Kudos
Message 3 of 12
(3,945 Views)

Here is the VI that I created, but the output is not what I expected. I also attached the signal that I intend to generate.

 

 

0 Kudos
Message 4 of 12
(3,933 Views)
No VI attached.
0 Kudos
Message 5 of 12
(3,928 Views)
I have attached my VI and the signal I try to generate.
Download All
0 Kudos
Message 6 of 12
(3,926 Views)

This is what the chart shows after 15 seconds. How is that any different than your image?

 

Message Edited by Dennis Knutson on 01-20-2010 01:21 PM
0 Kudos
Message 7 of 12
(3,911 Views)

I want both voltages show in single garaph only for a periode of five seconds. Within this five second I should be recording ao0 voltage (output) and ai0 voltage in 2nd second rise and 3rd second fall. As I attached.

 

 

Graph.GIF

0 Kudos
Message 8 of 12
(3,858 Views)
As I already said, post the vi for whatever you have done so far!
0 Kudos
Message 9 of 12
(3,853 Views)

And I will ask you again - how is your gif any different than the actual graph? That is an actual plot of the output and if I had connected the output to an input, it would be the same thing. And if you only want 5 seconds, why would you place the code inside a loop?

 

To me, there is no problem to be solved.

0 Kudos
Message 10 of 12
(3,848 Views)