LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Convert Analog Waveform to Digital Waveform

When I convert an analog waveform to a digital waveform through Analog to Digital.VI, the output result is not what I expected (the data I expected is 11010101010101010101010101010101 as described at the top of the front panel in the attached Analog to Digital - 2019.vi ). I have tried switching the input parameters of Analog to Digital.VI, but it still doesn't achieve the desired effect. But if I convert the standard sine wave to a digital waveform with Analog to Digital.VI (Sine to Digital - 2019.vi), it works perfectly. Can any expert teach me how to convert the waveform in the accessory Analog to Digital - 2019.vi to the result I want, I really, really appreciate it!

Download All
0 Kudos
Message 1 of 4
(920 Views)

Hi,

you could use the VI below .

Best Regards.

 

0 Kudos
Message 2 of 4
(883 Views)

Hi Chihl,

 


@Chihl wrote:

Can any expert teach me how to convert the waveform in the accessory Analog to Digital - 2019.vi to the result I want, I really, really appreciate it!


Suggestion:

 


@Chihl wrote:

the output result is not what I expected (the data I expected is 11010101010101010101010101010101 as described at the top of the front panel in the attached Analog to Digital - 2019.vi ).


Right now you convert your analog waveform into a 2-bit digital waveform. How do you want those 2 bits represent your "1101..." bitstream?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(878 Views)

Thank you very much for replying to me, in fact I don't know exactly what the resolution means, so I tried changing the resolution from 1-32, but the results were not what I hoped. The goal I want is simply to get 11010101...

0 Kudos
Message 4 of 4
(864 Views)