LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

compiling to blackfin

hello, can someone explain to me how to compile my code and upload it onto the blackfin?  the 'build specification' tab seems to go nowhere...thank you for your help!

 

noah

0 Kudos
Message 1 of 13
(8,011 Views)

Hi Noah,

 

You need to do the following items in order to run code with the LabVIEW for Blackfin module.  I've included some links below to the Blackfin Help manual.

1) Write your VI.

2) Put your VI into a Project (which you might've done from the beginning).

3) Configure your Blackfin target.

4) Configure your Blackfin Build Specifications.

5) Deploy and Run your code.

 

If you have any questions, please let me know.

 

Kevin S.

Applications Engineer

National Instruments

0 Kudos
Message 2 of 13
(8,004 Views)

Hi Kevin,

 

None of those links seemed to work...but upon trying to rebuild my VI, I got a 'linker error occured' message, that said it could not find or use Sound Output Write.doj, Sound Output Clear.doj, Sound Output Configure.dog, Sound Output Start.doj, and Sound Output Wait.doj...  What do I do about this?  My VI is already in a Blackfin-targeted project, and the Blackfin VIs that I use (for inputs/outputs, and the sound ADC and DAC ports) are read by LabView.  I have Visual DSP+++....what do you suggest I do?

 

Thank you SO much!

 

Noah

0 Kudos
Message 3 of 13
(7,999 Views)

Hi Noah,

 

Be sure you configure your Blackfin target correctly to start with.  Here are the three links I attached previously:

 

Configuring the Blackfin Target
http://zone-dev.ni.com/reference/en-XX/help/371653D-01/TOC12.htm

 

Configuring Blackfin Build Specifications (Blackfin)
http://zone-dev.ni.com/reference/en-XX/help/371653D-01/lvblackfinhelp/bf_buildoptions/

 

Deploying and Running Blackfin Applications
http://zone-dev.ni.com/reference/en-XX/help/371653D-01/TOC14.htm

 

Kevin S.

Applications Engineer

National Instruments

Message Edited by Kevin_S on 04-14-2009 01:27 PM
0 Kudos
Message 4 of 13
(7,994 Views)

thanks, Kevin, I went through all that stuff (I think I had all those settings already done), and then compiled, and get the same error:   Why doesn't it recognize those Blackfin files?  What can I do? 

 

Thanks again for your time,

 

Noah

0 Kudos
Message 5 of 13
(7,983 Views)

Hi Noah,

 

1) How big is your code?  (general number of VIs, subVIs)

2) Have you activated LabVIEW for Blackfin, or are you using the evaluation version?

3) Are you using any unsupported VIs?  (If you open a new project and new VI without adding a Blackfin target to the project, you can see that there are potentially more palettes available.  Some of these palettes have been removed as far as being able to be downloaded to a Blackfin target.)

4) Is your VI small enough to be posted to this forum?

 

Kevin S.
Applications Engineer
National Instruments

0 Kudos
Message 6 of 13
(7,968 Views)

Hey Kevin,

 

I've included the VI.  It's not that big in size, I don't think I have any unsupportable VIs, and I am using the evaluation version of the embedded blackfin....but I really appreciate your help.

 

Noah

Download All
0 Kudos
Message 7 of 13
(7,964 Views)

Hi Noah,

 

I couldn't get your code to compile until I took out the Play Waveform Express VI in Case #3 of your Case Structure.  If you open up the Express VI, you can see that the VI is trying to use your Windows sound driver.  Needless to say, it's not available on your Blackfin processor.  If you take out this Express VI, your code compiles and links fine.

 

Kevin S.

Applications Engineer

National Instruments

Message 8 of 13
(7,945 Views)

Thanks so much, Kevin, I don't remember if I replied to say thank you.  Just before you sent that to me I found that VI, which shouldn't have been there in the first place.  I was wondering if you could take a look at the code in general for me, which is to go in an 'effects' pedal.  The first while loop is for a footswitch that either reads high or low.  It controls the mode of the pedal.  the first mode is the default, where no signal manipulation occurs, and what comes in the audio input just comes out; the second mode stores data (fundamental frequency, average FFT amplitude from 3 kHz to 5 kHz) from the E string of a guitar, which is plucked after that mode is actuated; the third mode does the same for the A string; and the final mode takes in a note on the E or string, recognizes it as either on the E or A string, and adjusts the frequency content to be in tune based the data stored in modes 2 and 3.  then the new magnitude vector is put through an inverse FFT and output through the DAC and sounded. 

 

What I'm curious to know is, are there any blatant errors I've made?  Will the signal coming out of the inverse FFT be sounded through the DAC? does it need to be changed from a double to an I32?  I am trying to debug, but right now I'm having problems getting the correct output voltages on the Blackfin (the SPORT 0 pinout doesn't seem to match what is on the board....).

 

I appreciate any input, and I've uploaded an updated version of the code.

 

Thanks Kevin!!

 

Noah

0 Kudos
Message 9 of 13
(7,910 Views)

oh, also, Kevin, I was wondering if I will lose any phase information on the signal that I get out compared to the signal I put in.  Will it be detectable?  Or would it all sound the same?

 

Again, thanks SO much,

 

Noah 

0 Kudos
Message 10 of 13
(7,907 Views)