Arduino Due Timer Interrupt | 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
Arduino Due Timer Interrupt
December 22, 2015
1:03 pm
Avatar
oguz
New Member
Members
Forum Posts: 2
Member Since:
December 22, 2015
sp_UserOfflineSmall Offline

Hello,
I've tried to implement timer interrupt to Arduino Due by using the examples provided.
As Due uses different Timer library than other non-ARM arduinos (for Due, I used to use DueTimer.h library),
the compilation process failed;

1.0.0.16, Arduino Due (Programming Port)
WARNING: library TimerOne claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [sam] architecture(s).

temp.ino: In function 'void setup()':
temp.ino:14:12: error: 'class TimerOne' has no member named 'initialize'
temp.ino:15:12: error: 'class TimerOne' has no member named 'attachInterrupt'
Error compiling.

 

I know that it is possible to solve this by importing arduino libraries as you showed in the tutorial PDF, but do you plan to add a solution
from the Interrupts Pallettes, specificaly for Arduino DUE, or is this an already solved case? 

Regards

December 22, 2015
7:39 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

That is correct, the current implementation of the Timer Interrupt only works with AVR architectures.  This is documented in the LabVIEW help documentation.  At the time this functionality was integrated, there had not been enough investigation into the DueTimer library you mentioned so it had not been integrated natively.  Now that the Compiler includes the ability to create your own LabVIEW wrappers for Arduino libraries, you can very well create one for the Due Timer Interrupt library.  There should be sufficient documentation and examples for you to do this.  We will add this request on our list for future features although we don't have any immediate plans to integrate it at this time.  Thanks for the feedback.

December 23, 2015
9:24 am
Avatar
oguz
New Member
Members
Forum Posts: 2
Member Since:
December 22, 2015
sp_UserOfflineSmall Offline

I am currently using the product in Evaluation Mode.
I don't have the folder \addons and the example files about porting in path:

C:\Program Files (x86)\National Instruments\LabVIEW 2014\vi.lib\Aledyne-TSXperts\Arduino Compatible Compiler for LabVIEW

Is this because this is a premium feature?

December 25, 2015
1:58 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

It looks like from above you are using version 1.0.0.16 and the user library feature was implemented after that.  You need to update to the latest version.

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
2
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