Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

External clock for Labview

I have to make Labview to work on external clock which comes from a board with some FPGA on it. The clock rate is slow (100Hz). I need some loop at the Labview program to execute one iteration upon each rising edge of this clock. The question is not how to read the clock into Labview but rather how to make Labview to look at tit as a timing signal upon which things have to be done (assun\ming I read the signal via DAQ-MX into the Labview environment)
0 Kudos
Message 1 of 4
(3,972 Views)
Yanick,
 
This is done using the DAQmx Create Timing Source VI in DAQmx. You can use a counter or digital input line to read in your external clock signal.
 
The following two examples installed with DAQmx show you how to set up this type of process.
 
\examples\DAQmx\Control\Event Response.llb\Event Response.vi
 
\examples\DAQmx\Control\Control.llb\Dig Output-Digital Edge w Ctr.vi
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 2 of 4
(3,961 Views)

Hi,

Could you by any chance upload those two example files you have mentioned. I don't seem to have the controls example folder for some reason in my DAQmx examples.

TIA

0 Kudos
Message 3 of 4
(2,402 Views)

Hi,

 

Since the original post was made in 2007, some of our examples have changed. I would suggest you look at the counter output examples for creating an external clock.


These can be located in LabVIEW by the following path: Help > Find Examples... > Hardware Input Output > DAQmx > Counter Output.

 

I hope this helps!

 

Megan T.

Technical Support Engineer

National Instruments

 

 

0 Kudos
Message 4 of 4
(2,390 Views)