06-09-2008 02:30 AM
06-09-2008 05:17 PM
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
06-10-2008 04:56 AM
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
06-11-2008 11:45 AM
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
06-12-2008 01:59 AM
06-13-2008 11:13 AM
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