LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I write values from array to analog channel?

Solved!
Go to solution

Hi all,

 

If I have an array of values, is it possible to write those values out as an analog voltage and then stop writing when it gets to the end of the array? If so, how should I go about doing this?

 

I've attached my code which generates an array of frequency swept sine voltages and I write that out to my analog channel, when I view my output however, I get the same repeating sine wave outputing over and over again. I'm expecting for example:

 

writing out 1 Hz wave, 2Hz, 3Hz etc....

 

however I'm getting the 1Hz wave over and over again, I've selected finite samples in the sample clock and pretty much done lots of trial and error and still no luck :(. Any help would be much appreciated!

 

Daniel

0 Kudos
Message 1 of 3
(2,336 Views)
Solution
Accepted by topic author dantheman16

Hi Daniel !

 

Take a look at this example (you can search it among LabVIEW examples ) :

Cont Gen Voltage Wfm-Int Clk-Non Regeneration.vi

 

Here is another VI which I have done (see attached). It is slightly different than LV example and it should help you.

 

Hope it helps...

 

Julien

Message 2 of 3
(2,301 Views)

Hey Julien,

 

Thanks for the suggestion, I've modified my code a bit after looking at that example and I think it works 🙂

 

Dan

0 Kudos
Message 3 of 3
(2,269 Views)