LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to calculate the time between triggering the signal and receiving back

i want the time elapsed between triggering the signal and receiving it back through a ultrasonic sensor in compactrio labview fpga.

0 Kudos
Message 1 of 7
(2,614 Views)

Hi sachinkadde,

 

Calculation should be simple like this:

time_elapsed = time(signal received) - time(signal triggered)

 

 

Where's your problem?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,612 Views)

thanks for your reply sir, but i dont find any pallete which shows the receiving time of the signal.

 

thank you

 

0 Kudos
Message 3 of 7
(2,587 Views)

Take a look at this link:

Using the Tick Count (ms) VI to Measure Elapsed Time Over a Long Interval

 

And take a look at the snapshot (that's the palette you will have to use)

 

Tick Count.png

 

Best Regards

Mondoni
0 Kudos
Message 4 of 7
(2,572 Views)

thank you sir for your reply, but im working on fpga target cRIO-9082 chassis it wont support those palletes , yah if i dont work on fpga target then i can use those palletes ....in attaching the vi for generating a digital pulse and acquiring it back but yrt dint got any idea hot to determine the time...if the vi is wrong please make the neccessary changes. i used this vi to determine the total time between trigger and receving signal of ultrasonic sensor.

 

Thank you 

0 Kudos
Message 5 of 7
(2,559 Views)

Hi sachinkadde,

 

there are also TickCount functions for the FPGA available!

 

And there is this KB entry explaining how to use a 64bit tick count!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(2,552 Views)

THANK YOU SIR WIL TRY IT .Smiley Happy

0 Kudos
Message 7 of 7
(2,535 Views)