LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating frequency and saving digital data with time-information simulatenously

Hello everyone,

I am a newbie in Labview and need help. I am using a optical sensor combined with Compact DAQ system with a NI9402 digital input module to measure the rotational frequency of a combustion engine. The sensor sends one impulse each revolution when the crankshaft is at the top dead point.

Furthermore i need to know when the piston was at the top dead point, so at which time the signal was sent.

 

The last point ist my problem. Until now i only have visualized the rotational speed with my VI. I dont know how to use the signal for both applications simultaneously and how to save the data in one file.

I hope my problem is understandable, otherwise do not hesitate to ask me.

 

Thanks ahead.

 

 

0 Kudos
Message 1 of 2
(2,116 Views)

You can create a case statement for when your piston is at the top dead point, and then use a timestamp.

 

For the file writing, take a look at some examples under C:\Program Files (x86)\National Instruments\LabVIEW <versions>\examples\File IO\

 

0 Kudos
Message 2 of 2
(2,011 Views)