LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting speech to bit stream using DSK6713

Dear Sir
I am using Labview dsp module and Dsk6713 for my 16 QAM project, I want to put voice in it then modulating it by 16 QAM, the graph I get from The "analog input tool" is in the form of samples. Sir I want to get the bit stream that is in the form of 0'z and 1'z. So that I can modulate that bit stream.
Thanx alot
I hope to listen from you soon
Regards
Wajahat Hassan
wajahat Hassan
0 Kudos
Message 1 of 6
(4,152 Views)

Hi Wajahat,  
 
If you are specifically looking to change the data from a number to binary, you can use the "numeric to boolean" function available in the boolean palette.  From there, you can choose to keep the array as a compilation of boolean indicators, or change it to an array of zeros and ones.

Can you clarify what VI or node you are using to get your data?  What is the data type of the data? If you turn on Context Help (Ctrl+H) and mouse over that wire what does it say in the popup window? 
 
Regards,

Lauren

Applications Engineering
National Instruments
0 Kudos
Message 2 of 6
(4,129 Views)

sir i have used "analog input" tool in labview DSP module,to acquire voice through MIC.the "analog input" tool gives the 62bit 1D data .the dsp i am using is TI dsk6713.which has on board codec on it.when i observe the "analog input"'s output on graph it shows me samples of voice signal thats going in through mic.

kindly tell me how can i convert the voice samples in to bit streams in labview dsp module

wajahat Hassan
0 Kudos
Message 3 of 6
(4,118 Views)

Hi Wajahat,

It sounds like you are successfully able to obtain the data, and that you now want to change the format into a binary value.  What format are the voice signals in when being entered onto the graph?  You mention that it is 62 bit 1D data.  I am guessing that you meant that it is 64-bit data.  Is this data an integer, an unsigned integer, a float, or a complex number?  When you activate context help and hover over the wire, it should clarify the specific type.

I have attached a screen shot of a basic example that takes an array of 8-bit unsigned integers, and converts them into a 2-D array of zeros and ones that represent the numbers in binary.  Each row of the array output represents that number in the array input, going from least significant bit to most significant bit.  If desired, the order of the bits can be rearranged using array manipulation.

What version of the DSP module are you using?

Regards,

Lauren

Applications Engineering
National Instruments
0 Kudos
Message 4 of 6
(4,099 Views)
when displayed on graph it shows contineous signal but it might be samples that are very close to each other and looks like a contineous wave.but when observed by "indicator" it shows interger values.
and when the wire is obseved it says that it is 1d array of 64bits.so it gave me a hint to think that the indicator is showing integer values of samples.and each integer value is composed of 64 bits.so for each upcoming sample it will show some integer which will be parallel 64 bits.i want those bit to be converterted to serially coming bit
also i want to know, is my thinking correct?
i also want to convert the bit stream in to symbols containing 4 bits each,shortly i want bit to symbol mapping in DSP module
the version am using is dsp module 2.0
wajahat Hassan
0 Kudos
Message 5 of 6
(4,082 Views)

Hi,

Yes, your thinking is correct.  The graph is simply an indicator that displays integers, specifically an array of 64-bit integers. 

Could you clarify what you mean when you say "I want those bits to be converted to serially coming bit"?  I have gotten the impression from previous posts that you want to convert the numbers into binary values.  I have attached screen shots of code that accomplishes this.  Does it not meet you needs?  If not, I need you to clarify exactly what you are trying to do, or address exactly where your objective differs from what is accomplished using the "convert to boolean array" function.

Regards,

Lauren

Applications Engineering
National Instruments
0 Kudos
Message 6 of 6
(4,063 Views)