LabVIEW 2009 compatibility? | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
LabVIEW 2009 compatibility?
April 6, 2015
7:29 pm
Avatar
heinrich
Member
Members
Forum Posts: 6
Member Since:
April 6, 2015
sp_UserOfflineSmall Offline

Is there a way to make the compiler work in LV 2009? (don't want to spend $ 2500 for the upgrade)

April 6, 2015
8:57 pm
Avatar
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Hello Heinrich;

The Arduino Compatible Compiler for LabVIEW requires LabVIEW version 2014 and above. If you are not going to use the Compiler on a commercial project, one option for you would be to use the LabVIEW 2014 Home edition (a new release by National Instruments that allows one to purchase a copy of LabVIEW for non-commercial use at a significant discount. I believe it costs $49/license). You can download it from here.

If you are intending to use the Compiler on a professional/commercial project, I am afraid you will have to upgrade your version of LabVIEW.

Filipe

Cheers
Filipe

April 7, 2015
3:35 pm
Avatar
heinrich
Member
Members
Forum Posts: 6
Member Since:
April 6, 2015
sp_UserOfflineSmall Offline

Thanks for the info.

Compiling and downloading takes 45 seconds on my Win7 64 bit system.  A lot of waiting after every little change.

Is this normal??

April 7, 2015
3:44 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

What is your target?  If it's the Due that seems normal since that has a lot more flash. An Uno should take less time. But you should see the same compile times in the Arduino IDE since the compilation is called programmatically through the Arduino IDE. I would verify if you are getting similar results when compiling an Arduino example. 

April 8, 2015
3:14 pm
Avatar
LuI
Member
Members
Forum Posts: 4
Member Since:
April 2, 2015
sp_UserOfflineSmall Offline

Steffan said
... since the compilation is called programmatically through the Arduino IDE ... 

Steffan,

I did some testing these days with the test version of the home/maker license. I am very impressed about what was made possible. And I consider buying the pro version for my job.

I have a Q about the difference between the home and the pro version: Is there any way to automate the download of the compiled code or to access the binary code to be downloaded, store it and download it to multiple targets or a dedicated code version back to a given target?
I have some ideas for tools for my job, but I have to be able to rebuild any given version of the binaries at allmost any time, so simple version control would not work whenever you or the Arduino maker provide a new version.

TIA!
--
LuI

April 8, 2015
3:41 pm
Avatar
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Hi Lui;

We are glad you found the compiler useful. Quick question in regards to your question. Smile

Do you need more automation than what the Compiler API VI can accomplish? We have a Compiler API VI available as part of the Arduino palette. With it, you can basically set all the parameters for compilation such as the type of target, the port, the architecture used, etc, and point to a VI to be compiled. You can use it to create a VI running on the host that would perform custom automation if needed. Is that what you meant or did I misunderstand your question?

Filipe

Cheers
Filipe

April 8, 2015
4:03 pm
Avatar
LuI
Member
Members
Forum Posts: 4
Member Since:
April 2, 2015
sp_UserOfflineSmall Offline

filipealtoe said
Hi Lui;

We are glad you found the compiler useful. Quick question in regards to your question. Smile

Do you need more automation than what the Compiler API VI can accomplish? We have a Compiler API VI available as part of the Arduino palette. With it, you can basically set all the parameters for compilation such as the type of target, the port, the architecture used, etc, and point to a VI to be compiled. You can use it to create a VI running on the host that would perform custom automation if needed. Is that what you meant or did I misunderstand your question?

Filipe

Hi Filipe,

thx for the fast response.

In or company we have the policy to keep the nearest_to_binary code in order to be able to recreate any approved version of functional code. So what I would _love_ to have is a way to store the downloaded binary code and to download it afterwards. So I could re-program an arduino with code I was using say one year ago.

Imagine a new LV version and/or a new version of your ACCL was installed inbetween. Than I could open the very same vi, but could not proove to have the same binaries on the target. So we had to re-test and re-approve.

With your Compiler API VI I think this can be narrowed when versioning the complete compiler tool chain as well.

Greetings from Germany!

--

LuI

April 8, 2015
5:09 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

LuI,

Currently, there is no way to export the output object code, elf, or hex files.  This is a good suggestion though and we will take it into consideration for future updates.  We can probably allow for the ability to export the final hex file used for programming to a directory of choice.  Then you would have to use something like AVR Studio to program the microcontroller with that output hex file.  Would that work for you?

April 8, 2015
6:06 pm
Avatar
heinrich
Member
Members
Forum Posts: 6
Member Since:
April 6, 2015
sp_UserOfflineSmall Offline

My target is the Arduino UNO.

 

Hmmm... did someone hijack my topic??  ... find ich ja doof...

April 8, 2015
6:19 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

I think soFrown As far as your problem, do you still see long compile times and, did you try in the Arduino IDE?  The Uno should be fast, on the order of 10-20 seconds.

April 9, 2015
4:49 pm
Avatar
heinrich
Member
Members
Forum Posts: 6
Member Since:
April 6, 2015
sp_UserOfflineSmall Offline

Just did some tests.  The UNO compiles and uploads in 5 seconds.

April 9, 2015
10:08 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Is that with the Arduino IDE or the ACC4LV?

April 11, 2015
1:00 am
Avatar
heinrich
Member
Members
Forum Posts: 6
Member Since:
April 6, 2015
sp_UserOfflineSmall Offline

That's with the Arduino IDE.

Tested again: 40 to 50 seconds for the ACC4LV.

 

I also get errors:

"cpu:Invalid option for board "uno"".  (have "atmega328" selected)

and ".... doesn't define a 'build board' preference"

 

P.S.: can't upload the image, does not let me browse file directory

April 11, 2015
2:17 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Thanks for the info and letting us know about the lack of image browse button.  Seems to be an issue with the forum so well get that resolved.  I think you can try using the "Upload Attachments" button at the bottom instead.

As far as the issue goes, I think the problem is that the wrong board type is selected.  You will definitely see long and incomplete builds when the wrong architecture is selected.  But you should be selecting Uno in the Tools>Board menu of ACC4LV and there should be no processor selection for the Uno (how are you selecting atmega328?).

What version of the Arduino IDE are you using and can you attach a screenshot of the Board selection you have?  It should look like the following.

board.pngImage Enlarger

sp_PlupAttachments Attachments
April 13, 2015
2:10 am
Avatar
heinrich
Member
Members
Forum Posts: 6
Member Since:
April 6, 2015
sp_UserOfflineSmall Offline

>> "how are you selecting atmega328?"

in the Serial - Monitoring GUI - Host PC.vi:

Board
"uno"

CPU
"atmega328"

 

In the ACC4LV I had the "UNO" selected

I can't attach a screenshot because unfortunately the compiler (ACC4LV) has expired.

 

>> "...version of the Arduino IDE"

Do you mean the regular Arduino IDE?  It is version 1.6.  Or that of the ACC4LV?

 

P.S.: Where do you see the "Upload Attachments" button?

April 13, 2015
3:26 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Ok, so the first problem is that you should not be entering anything for CPU for the Uno when using the programmatic compilation (which is what the Serial - Monitoring GUI - Host PC.vi is using).  The CPU field should be left blank for boards that don't have any variations as is shown by default when you open Serial - Monitoring GUI - Host PC.vi.  Refer to the help guide as shown here that this field is used when more that one CPU is available.

cpu.pngImage Enlarger

In the GUI, you will notice that the Uno does not have any CPU options.  So when you select that in the GUI the compile times are very quick for the Uno.  We have tested and it takes a considerable amount of time when using Compile.vi and specifying a CPU type when it is not expected.  These are parameters passed to the Arduino IDE, so for some reason it hangs when you specify a CPU type for a board that doesn't have any other options.  You should be fine if you leave CPU blank for the Uno.

I meant the Arduino IDE, thanks for the info.

For "Upload Attachments", when you "add reply" there is a button above the Smileys (bottom left) to add attachments.  That is how the above image was inlined.

sp_PlupAttachments Attachments
Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
27
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356