Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI 6229 Analog output analog input signal with a variable time delay

Hi Guys,
 
I am trying to use a signal generator to generate a sine wave (200 Hz) to input the Labview. I do not want to do any, but output this sine wave with a variable time delay (for example 0.1 ms).
 
Does any one have a idea of how to do it?
 
Many Thanks
 
Dan
0 Kudos
Message 1 of 9
(4,407 Views)
I am using PCI 6229. The block diagram is shown in the following.
 
 
0 Kudos
Message 2 of 9
(4,389 Views)

Hi Dan

One way to add a variable delay is to output an array of noisy (or null) data before the while loop in your code, and also start to write this data before the while loop. Then send the input sinewave straight to the DAQmx write data vi inside the while loop. The amout of noisy data would correspond to the time delay you require on the output signal.

Would you be able to attach your actual vi rather than a picture of it so that I can edit it to show you exactly what I mean.

Regards

Beejal

Beejal S
NI UK & Ireland
0 Kudos
Message 3 of 9
(4,370 Views)
Dear Beejal,
 
Thank you for you reply.
 
Please see the attachment for the VI.
 
Many Thanks
 
Dan
 
 
0 Kudos
Message 4 of 9
(4,363 Views)
Dear Beejal,
 
If the acquired data without being processed are directly output though Analog output channel, how much time delay I can have for PCI 6229 and Sampling rate 10000 samples/second.
 
one more question is that I acquire the data 10000samples/second, and I need to process each acquired sample by doing 100 points integration, for example If the acquired data is No. 201, the I need to do the integration from No.101 to No. 201, then acquiring data No. 202 and do integration from No. 102 to No. 202. keep repeating this. Every acquiring 200 samples, I need to output the acquired data . All I am trying to say is that I need to acquire the data, and process it to do analysis (for example to know the mean value of integraton) and output the acquired data.
 
Could you please help me with those two questions?
 
Many Thanks
 
dan
0 Kudos
Message 5 of 9
(4,362 Views)

Hi Dan

I have attached an example vi to add a time delay between the input and output signals.

As to your other questions, I understand that you have been in contact with one of the application engineers regarding a noise cancellation issue. Do these questions relate to that issue?

Regards

Beejal

Beejal S
NI UK & Ireland
0 Kudos
Message 6 of 9
(4,347 Views)

Thank you for your reply.

 

Please transfer your VI to LabVIEW 8.0 Version. I can't open it with my LabVIEW 8.0.

Many Thanks

 

dan

0 Kudos
Message 7 of 9
(4,343 Views)

Hi Dan

I have attached the example vi created in labview 8.0.

With regards to the question about the delay between the analog input and output. There is always a delay but the length of the delay is software dependent and will change depending on the code that you are using.

Regards

Beejal

 

Beejal S
NI UK & Ireland
0 Kudos
Message 8 of 9
(4,325 Views)
I really appreciate your help.
 
Cheers
 
Dan
0 Kudos
Message 9 of 9
(4,319 Views)