LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Audio to binary signal

I am trying to convert audio signal to binary signal of 1-D array using the attached block combination. 

0 Kudos
Message 1 of 9
(2,687 Views)

Cifer,

 

I am trying to convert audio signal to binary signal of 1-D array using the attached block combination. 

And what is the problem?

 

I simplified your VI like this:

check.png

Which kind of "binary signal" do you expect?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(2,680 Views)
0 Kudos
Message 3 of 9
(2,656 Views)

I am getting a dimensional array of 66147 rows and 16 columns. But I want to reduce it to 1 Dimensional array of single row and 1058352 columns.

0 Kudos
Message 4 of 9
(2,647 Views)

That's because your sound is 16bits. You can reshape it to a 1D array with a length corresponding to the product of dimensions, but I still don't see the logic behind all that.

0 Kudos
Message 5 of 9
(2,634 Views)

I want to convert it to 1D array so that the individual bits can be compared with a threshold of 0.5v to generate a BPSK signal.  

0 Kudos
Message 6 of 9
(2,632 Views)

You could help us out by Googling audio bpsk and give us a few links that describe what you are trying to do.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 9
(2,622 Views)

Hi Cifer,

 

please talk with your classmate - (s)he should have already solved that problem

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 9
(2,615 Views)

@CIFER_92 wrote:

I want to convert it to 1D array so that the individual bits can be compared with a threshold of 0.5v to generate a BPSK signal.  


A "bit" only has two states: on or off. There is no "threshold" for a single bit. It really does not make a lot of sense.

0 Kudos
Message 9 of 9
(2,611 Views)