02-19-2016 10:10 AM
I am new to labview and an working on a project that I want to log data over several hours. In our manufacturing plant we want ot see shen a machine is making parts by using the NI 9422 digital input module that will send a pulse to labview. I can see pulses in labview using the daq assistant but can't seem to figure out how to chart the data. I want to be able to know the % of on and off time in a selected area of the plot. The on and off time of the pulses are in seconds.
02-19-2016 10:33 AM
There are plenty of methods to log your data. Just look in the File IO palette. Just to keep it simple, I would probably just go with the binary file.
As far as the analysis, take a look in the Signal Processing palette for some ideas.
For pulse rate, I would just use a counter to give you a frequency. For Duty Cycle, you will have to go through your data points and count the number of samples that are consecutively low and high. Of course, this also assumes you are not using the single sample mode, but continuous acquisition so that you have a steady sample rate.