LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time delay between acquiring analog voltage signals and outputting digital pulse for trigger

Hello!

I am currently using the PCI-6034E DAQ, interfacing with a BNC-2110 block. We
have two piezoelectric patches fluttering and generating AC voltages, which
are subsequently read by a user-written program in Labview through two analog
inputs in the BNC-2110 block. When activated through the program, the raw
voltages are written to a measurement file.

Along with the voltages, we are sending a trigger pulse using the “CTR-0 Out”
to two high-speed cameras synced in time. The trigger is sent to the master camera

as a hardware trigger. The voltages and cameras capture data 

at congruent sample rates (e.g. 1000Hz). We want to be able to link the image
data directly with the voltage data in time, and so in the Labview program
within the "while loop" for obtaining continuous samples of voltage, another DAQ
Assistant is created to send out the trigger pulse (with zero initial delay) at
the same time that the voltage data is written. Ideally, this should mean that,
if the voltage and image sample rates are the same, the data syncs in time. 


My question is this: is there any internal delay (in time) between acquiring
data through the analog inputs (AI-0 and AI-1), and sending out the trigger
pulse through “CTR-0 Out”? If so and this delay is significant enough, it could
mean that the camera images and voltages do not sync in time, which leads to

error.

Please advise! Thank you very much 🙂

0 Kudos
Message 1 of 7
(3,339 Views)

@JMark111 wrote:

Hello!

I am currently using the PCI-6034E DAQ, interfacing with a BNC-2110 block. We
have two piezoelectric patches fluttering and generating AC voltages, which
are subsequently read by a user-written program in Labview through two analog
inputs in the BNC-2110 block. When activated through the program, the raw
voltages are written to a measurement file.

Along with the voltages, we are sending a trigger pulse using the “CTR-0 Out”
to two high-speed cameras synced in time. The trigger is sent to the master camera

as a hardware trigger. The voltages and cameras capture data 

at congruent sample rates (e.g. 1000Hz). We want to be able to link the image
data directly with the voltage data in time, and so in the Labview program
within the "while loop" for obtaining continuous samples of voltage, another DAQ
Assistant is created to send out the trigger pulse (with zero initial delay) at
the same time that the voltage data is written. Ideally, this should mean that,
if the voltage and image sample rates are the same, the data syncs in time. 


My question is this: is there any internal delay (in time) between acquiring
data through the analog inputs (AI-0 and AI-1), and sending out the trigger
pulse through “CTR-0 Out”? If so and this delay is significant enough, it could
mean that the camera images and voltages do not sync in time, which leads to

error.

Please advise! Thank you very much 🙂




 

IMHO, you're going to have more chances for delays in your software than in your hardware. First thing, I would get rid of the

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 2 of 7
(3,317 Views)

Greetings JMark111

 

Here is some information on synchronization:

http://www.ni.com/white-paper/11369/en/

 

http://www.ni.com/white-paper/2989/en/

 

http://www.ni.com/white-paper/4322/en/

 

Regarding your specific question, the delay between the analog input and counter output should be negligible for your application, since the signal is internally routed. 

 

Warm Regards,

 

Luis J.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 7
(3,303 Views)

Hi Cameron,

 

Thanks heaps for your reply! I am quite new to Labview so any help with the software wiring diagrams is very much appreciated. You were about to say that I should get rid of...?

 

Would you like me to upload the current wiring diagram?

 

Thanks again!

0 Kudos
Message 4 of 7
(3,294 Views)

@Tortu wrote:

Greetings JMark111

 

Here is some information on synchronization:

http://www.ni.com/white-paper/11369/en/

 

http://www.ni.com/white-paper/2989/en/

 

http://www.ni.com/white-paper/4322/en/

 

Regarding your specific question, the delay between the analog input and counter output should be negligible for your application, since the signal is internally routed. 

 

Warm Regards,

 


Thanks heaps Luis!

 

Do you have an estimate of the delay (in time units) that could be occurring?

0 Kudos
Message 5 of 7
(3,291 Views)

@JMark111 wrote:

Hi Cameron,

 

Thanks heaps for your reply! I am quite new to Labview so any help with the software wiring diagrams is very much appreciated. You were about to say that I should get rid of...?

 

Would you like me to upload the current wiring diagram?

 

Thanks again!


Don't know what happened to my reply, but I meant to say that you should get rid of the Express VI and wire up one with the attributes you need from the normal palettes. The Express VIs are easy to wire up because you just have to fill in a few blanks, but they are much less efficient than one you wire up yourself because they have to include all the options. Plus, if you want to get better at LabVIEW, you'll have to go "hard-core" sometine anyway, so it's better sooner than later.

 

My signature lists a couple of the more popular online tutorials, so, IMHO, the best thing you could do for help with the "software wiring diagrams" (aka code) now would be to take some time to work through them.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 6 of 7
(3,286 Views)

Greetings JMark111.

 

I haven't found an article that backs me up on this estimate, however, if you look at the Device-to-Device skew of the PXI signals, you can get an idea of what this time delay will be. Since the delay they talk about in table 2 of this white paper is actually between devices, we can expect internally routed signals to be delayed by even smaller amounts of time (so we probably are looking at the hundreds of pico seconds range). However, your real problem comes from the fact that the exported signal from the PFI has to travel through a cable all the way to the camera. That is where the vast majority of the delay will be. 

 

Please let us know if you have any other questions.

 

Warm Regards, 

Luis J.
Applications Engineer
National Instruments
0 Kudos
Message 7 of 7
(3,267 Views)