06-01-2020 10:31 AM
Hi,
I want to know whether we can count square wave pulses in daq 6341. Please help me with any procedure. I dont have any external hardware components to count the pulses. I tried several counter circuits and when run them they automatically without any input control and when I connect the counter to the square wave simulated signal, I am unable to connect them. please provide me a solution for this....
06-01-2020 02:06 PM
06-01-2020 03:09 PM
In the past I have had a request to show the actual analog waveform, as well as process data about it. In those cases you can try to take samples in the AI instead of the counter input, and then post process them. Here is an example where a single PWM pulse drop out was being detected.
https://forums.ni.com/t5/LabVIEW/Detect-PWM-Drop-Out/td-p/2610921
Which worked okay but was later improved with a two level threshold code made by CrossRulz.
https://forums.ni.com/t5/LabVIEW/Two-Threshold-Analog-to-Digital/m-p/2738970#M809660
These might help if you end up going with the AI route.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-02-2020 01:15 AM
Sir, We are doing a project to detect the speed of a machine using daq. But here we had a problem that we can only use software part to do this project and cannot use the hardware as now we are not allowed to lab. So, please provide me a solution without any counter inputs. Can we use the simulate signal component to generate a square wave signal and refer it as speed pulses and give it to counter?? will the counter count those pulses ??please provide me any program file, it will be very helpful....
thank you sir
06-02-2020 07:20 AM
Well, you can't use a DAQ counter if you don't have access to DAQ hw, right?
So sure, you can simulate a pulse train signal (see the palette Signal Generation->Square Wave). But you're going to need to post-process that data in your software.
I'd display it on a graph for reference, and then put together the simple algorithm for detecting and counting relevant edges.
-Kevin P