LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

define quantization levels-pcm simulation

ok, hi everyone ...!!! i just acquired a voice signal using the microphone of my computer, using labview i converted it into a wav file.
The thing is that i would like to simulate the quantization process that is commonly used in pcm modulation, i want to set quantization levels and assign a code for each sample in its respective quantization level.
By now i have the samples of the voice signal (about 5seg) that  labview acquired .....My problem is that ,by now, i don't know how to associate each sample with a specific quantization level(i think i have to compare the value of the sample with sth), and of corse, assign a code for each quantization level...............
Once i have the samples associated with a code (0101, for example) i must be able to reconstruct the original signal  from these "coded -samples" (that means decoding). Keep in mind that i will try to simulate a pcm modulation with a Tx and a Rx
 
ANY ideas!!!!!!!!!!!
thanx!!!!
0 Kudos
Message 1 of 3
(3,444 Views)

Hi

I send to you an example I found that after generating a signal takes the array of doubles that contains the signal data and corces each value of that array to a Byte Integer (8 bit signed number; numbers form -127 to 127 ). The result would be a PAM signal which can already be coded.

I also send you the forum from where I got the information.

http://forums.ni.com/ni/board/message?board.id=170&message.id=170265&query.id=659309#M170265

0 Kudos
Message 2 of 3
(3,433 Views)

Hi again

Sorry, forgot to load the attachment.

 

0 Kudos
Message 3 of 3
(3,432 Views)