LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write a fast pulse and read width of the echo pulse

Hello,

 

I am using SC-2075 board , NI PCIe-6259 card and LabView 8.5 to test and use a SRF05 Ultrasonic Ranger sensor.

So the sensor need a short 10uS pulse start the ranging and after I need to measure width echo pulse which are between 100uS and 25mS. The sensor mustbe triggered every 50 ms.

I have seen that we can synchronise multi function in  Example->DAQ.mx but I don't understand how I can modfied the counter or the read chain to

write a fast pulse each 50 ms. And after to measure two Edge separation I think that I need too another counter for this task.

Sorry for all this auestions but I just need to practice with LabView and I try to realiser this program for two weeks without resultat...

0 Kudos
Message 1 of 3
(2,744 Views)

Two channels.  Channel 1 is a continious pulse train - 10us on and 49.9ms off.  This will send out pulses every 50ms with a width of 10us.  Channel 2 should be a phuls width measure task that is retriggable and the trigger is the falling edge of channel 1 (you can specify the source as the pfi# so this is internally routed.

 

 

 

 

___| |____________________________________ |-|____________   channel 1 continious pulse train out

  

         x....|----------------------------------|_                   x.....|-----------|__  Channel 2 'x' is retrigger measure pulse widths

 

 

I cant remember offhand which tasks require 2 counters vs 1.

 

 

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 3
(2,732 Views)

Yhamks for the answer.

But I don't know how to make this. (yes, I'm really a novice)

Because in Labview example, for the edge mesurement, they use board counter.

And to create the channel 1 , I need to use DAQmx Trigger or DAQmx Write is enough? 

 

i found in a post a program which can be usefull.Can you correct it?

 

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