LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get an analog input synchronized with a continuous and varying analog output

Dear LabViewers,

I'd like to get a hand from a LabView pro.

I found very helpful VIs on the Community, still I don't succed to exactly fit my needs.

The process involving my VI is simple:

1) Firstly I want to generate an analog output waveform with varying parameters (freq, ampl and so on), that this why I use "do not allow regeneration" and that I put the waveform generation function in a loop.

2) Secondly I want to use this varying signal as a trigger for getting continuously an analog input waveform.

So far the idea was working, but as soon as I put the whole in a loop for getting updated with the contiuous varying parameters of my ouput waveform, nothing's getting as an input.

Here is attached the corresponding VI.

Many thanks for helping me out.

Best,

Jérémie

 

0 Kudos
Message 1 of 2
(2,115 Views)

Hi jérémie,

 

The first problem you will encountered is that each time the while loop run, you start a task.

You only have to start tasks once.

 

To do it you can take a look at this exemple which demonstrates how to continuously generate an voltage output by providing new data to the output buffer as the task is running.

 

PS: You will find the First Call ? function in Data Communication >> Synchronisation >> First Call ?

 

Valentin

 

 

Valentin
Certified LabVIEW Architect
Certified TestStand Architect
Certified LabWindowsCVI Developer
National Instruments France

0 Kudos
Message 2 of 2
(2,094 Views)