LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate a delay time and use the advanced counters functions?

Hi,

I'm a labview beginner and I use a DAQ 6713.
I use a program to generate a ramp signal using a counter. I want to calculate a delay time between the beginning of the ramp generation and an external signal ( for example from the PFI pin)
- How can I modifie the example called "Two edge separation measure_adv (Ni.TIO).vi to do that? ( how does it works to start the delay counter on the counter which allows to start the ramp generation?)
- Where can I find some inforamtion on specific VI like " set attribute" " Get attribute" "mode config" etc...

Any help will be greatly appreciated
Thank you
0 Kudos
Message 1 of 2
(2,430 Views)
Renaud,
Your board is a DAQ-STC board, not a NI-TIO based board, you may want to check the examples for your board type instead.
It can be extensive to explain by email possible solutions for what you want to measure, I really recommend that you call NI Support Engineers ( Info: http://sine.ni.com/apps/we/niae_asc.main ) and we can work with you in this.
As first thoughts you can start a counter at the same time you are starting the generation of the ramp, and stop the counter as soon as you detect that there is a signal being acquired in your PFI line (are you talking about an analog or a TTL based signal), then with the counts and the timebase used in the counter you can calculate the period. With your suggestion we are going to try to develop an example program which wil
l behave similar to what you want to do.
Information on specific VI's can be found in your LV context help and also in the technical support page of NI ( http://search.ni.com/?col=alldocs&layout=TechResources&ql=a )just perform a search and you'll get multiple articles.

Good luck!

Nestor Sanchez
Applications Engineering
National Instruments
Nestor
0 Kudos
Message 2 of 2
(2,430 Views)