LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Display audio data on front panel using BF533

Hi,

 

I am using the BF533 board evaluation and AD1836 codec to process audio signal. I want to capture audio from  the PC using the line in and i want to display the data captured in a graph in the front panel.

 

I did the test with an example available in Labview  but it didn't work. Is there some options to set to refresh the front panel in order to display the waveform of the audio captured? I already set the refresh data in the configuration of the target (100 ms).

 

The application i have to design is aimed to process a dynamic compression of the sound.

 

Regards

0 Kudos
Message 1 of 9
(7,605 Views)

Chuck13,

 

Please keep in mind you must enable debugging in order to display data on your front panel.  Are you using the USB JTAG connector for debugging?  Debugging in this way will slow down your application considerably.  Its possible you will have luck using the serial or Ethernet port on your Blackfin board since these provide more bandwidth.  

 

Cheers,

Mark 

Mark
NI App Software R&D
0 Kudos
Message 2 of 9
(7,597 Views)

Thanks Mark for your answer,

 

Indeed the problem came from the debug the USB/Jtag wich is very slow and the audio connection of the board. Also the time period of the update of the front panel was too high. Now i have the waveform displayed in the graphs.

 

But i still have a problem with the UART. I wanted to use the UART of the board in order to display in the Hyperterminal of the PC a message when the push buttons are pressed. Each push buttons coresponds, in my application, to a diferent regulation of the gain in the equalizer.

 

So in order to test the UART i took an example of Labview using the board to display a the key pressed in the keyboard but it doesn't work. The program is running in the board but nothing happen when a key is pressed.

 

Regards.

0 Kudos
Message 3 of 9
(7,586 Views)

Hi Chuck,

 

Here is an example that I just created and tested for the serial port on  the board.

 

Here are some things to try:

1. Make sure you arent facing this: http://digital.ni.com/public.nsf/allkb/8162F1E35844B9B18625755A00004491

2. Make sure that you have a Null modem/crossover cable from your board to your computer.

3. Add my example VI to your project and deploy it to your baord.

4. Test it with something like Hyper Terminal on your development PC.

5. Make sure your serial settings are correct (refer to my examples fornt panel for the settings)

 

Hope this helps.

 

Thanks, 

Jaidev 

Message Edited by Jaidev on 02-23-2009 12:18 PM
Senior Product Manager
National Instruments
0 Kudos
Message 4 of 9
(7,559 Views)

Chuck,

 

I have also created an example I would like you to test.  This example uses the UART VIs included in the Blackfin Module.  Unfortunately I do not have a BF-533 board available, so I wrote and tested this code with a BF-537.  This being said you should be able to get this code up and running with minimal (if any) changes.

 

Please let me know if you have any questions or concerns about this code.

 

Blackfin: Send UART COM data with button press

 

 

 

Mark
NI App Software R&D
0 Kudos
Message 5 of 9
(7,556 Views)

Thanks Jaidev and Mark,

 

To Jaidev:

 

I wanted to test your vi by loading it in my board but some "Serial cluster.ctl" is not in the archive and labview can't run it without it.

 

To Mark:

 

Your application run in my board, when i press the push button number 4 i have the message "send to buffer" in the window of the processor status but i have nothing in my hyperterminal. Is it working in your board bf537? Because it seems that on the bf533 the UART isn't working . I tried other solution but it doesn't work.

 

 

Regards,

 

0 Kudos
Message 6 of 9
(7,541 Views)
here's the serial control.
Senior Product Manager
National Instruments
0 Kudos
Message 7 of 9
(7,537 Views)

Chuck13 wrote:

 

To Mark:

 

Your application run in my board, when i press the push button number 4 i have the message "send to buffer" in the window of the processor status but i have nothing in my hyperterminal. Is it working in your board bf537? Because it seems that on the bf533 the UART isn't working . I tried other solution but it doesn't work.

 

 

Regards,

 


 

Yes I able to get the "send to buffer" message in hyperterminal on my Windows Machine.  Please be sure all of the communication settings in hyperterminal match the values we are setting with the _BF UART Control2 VI.  I also noticed it taking a couple of seconds after pressing the button before the string would appear in hyperterminal.  Let me know if you are already accounting for these.

 

-Mark 

Mark
NI App Software R&D
0 Kudos
Message 8 of 9
(7,534 Views)

Hi sorry for this late response i was working in an other project,

 

To mark:

I used your program and i checked the parameters of the UART in my board but it doesn't work. I don't know why but it seems that the UART doesn't work with the VI in the blackfin module.

 

To Jaidev:

I modified your program and when i press the push buttons in the board i have a message in the hyperterminal but it's seems that the baud rate is differents for the reception and the transmission. I checked that but it seems normal.

I have another question. The sub vi used in that program are in the basic version of labview not in the blackfin module. So i don't know if the board can execute such function?

 

In order to know where the problem came from i tried to execute a UART project made under VisualDSP++ in assably language which are provided by Analog Device with the software. And so in the exexution i had also a problem when the program wanted to detect automatically the baud rate. I had to type the character '@' and a string will appear in the hyperterminal. But nothing happens the program remains in the loop which had to detect the character.

 

Regards.

Download All
0 Kudos
Message 9 of 9
(7,462 Views)