10-30-2013 05:17 PM
Hello,
I am using Analogtodigital.Vi for converting the pulse sequences into digital.signals.I am able to get the digital waveform representaion of the pulses.
But how to count the number of 1's present in the converted digital waveform.I want to count the number of 1's present in the converted digital waveform.
Thanks in Advance.
Solved! Go to Solution.
10-30-2013 06:10 PM
Did you try opening the block diagram of Analog to Digital.vi?
It creates an uncompressed 2D array of 1s and 0s which represents the 16-bit binary A/D conversion of each element in the Y array of the input waveform. You can use the DWDT Digital to Boolean Array.vi to convert to a 2D array of booleans. Then convert the booleans to 1,0 and sum the array of integers. The sum should be the count of 1s in the digital waveform.
Lynn
Note: The attached VI is saved back to version 8.6. When I saved it for Previous Version a warning was generated about possible differences in versions. Let me know if it does not work, and what version of LV you are using.
11-01-2013 05:07 PM
Thankyou,Its working for me.