04-14-2009 12:06 AM
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
04-14-2009 12:55 PM
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.
If you have any questions, please let me know.
Kevin S.
Applications Engineer
National Instruments
04-14-2009 01:11 PM
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
04-14-2009 01:26 PM - edited 04-14-2009 01:27 PM
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
04-14-2009 08:56 PM
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
04-15-2009 12:19 PM
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
04-15-2009 12:43 PM
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
04-16-2009 04:59 PM
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
04-22-2009 04:55 PM
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
04-22-2009 05:45 PM
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