From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-13-2019 11:43 AM
02-13-2019 01:40 PM
Try "Waveform peak detection" in the "Waveform --> Analog Wfm --> Measurements --> Wfm monitoring" palette.
Set the "Threshold" to a reasonable value, then see the size of the output array to get a count.
02-13-2019 02:21 PM
In addition, use "Extract Single Tone Information" in Signal Processing palette for frequency and period measurements.
02-14-2019 05:31 AM
Or, additionally to the good suggestions by Kyle and aputman, depending on the actual hardware you have you could do the counting in hardware.
Is your motor's encoder really outputting an analog waveform? I only know of encoders that do square waveforms. If you read it with an NI cDAQ module that has a counter module, you don't have to do it in software.
02-15-2019 10:05 AM
LabVIEW is a development environment, you will need some hardware to give data to your program.
Do you have any board, or do you need a board? WIth NI it would be simpler, third party just for this task will be cheaper.
What are the pulses shape, width, amplitude, maximum rate? Just in case, what is the noise level?
01-14-2021 08:15 AM - edited 01-14-2021 08:15 AM
I have tried "Waveform peak detection" in the "Waveform --> Analog Wfm --> Measurements --> Wfm monitoring" palette, but it does not do much.
With the code below it detects pulses only if the width is equal to 8. Why exactly eight- I do not know, the help doc did not give much reason.
With a real waveform from a DAQ it is much worse.