I2C Request From error | 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
I2C Request From error
October 12, 2015
2:21 am
Avatar
Jim.UF
Member
Members
Forum Posts: 17
Member Since:
September 24, 2015
sp_UserOfflineSmall Offline

In working toward the Master/Slave loop-back code, I’m getting an compile error from slave code (attached) to service a simple request for a fixed message (code attached). What am I missing here?

Jim

October 12, 2015
3:08 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

I didn't look at your code (I dont have LV2015 setup yet on a VM), but from the error Im guessing you have an input (control) wired to the connector pane of the Callback where it shouldn't.  Take a look at the context help.  It says the callback VI should not take in any parameters (unlike Attach Receive Interrupt).  This is in line with the Arduino function call here.

Attach-Request-Int.pngImage Enlarger

sp_PlupAttachments Attachments
October 12, 2015
4:43 pm
Avatar
Jim.UF
Member
Members
Forum Posts: 17
Member Since:
September 24, 2015
sp_UserOfflineSmall Offline

I followed the context help for the I2C Attach Request Interrupt VI: nothing attached to the connector pane (no controls or indicators in the callback code to attach). 

The code was saved for 2014; reattaching those 2014 versions just in case.
Jim

October 13, 2015
4:17 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Thanks Jim.

I looked into this one and it appears there is an issue in how the Attach Request Interrupt is interpreted.  I created Issue #126 for this.  It may be a few weeks before another release.  There may be a workaround through the use of a user library in the meantime to implement the callback handling properly.  If I have some time in the next few days I will see if I can try it out and can send it to you if it works.

October 13, 2015
4:13 pm
Avatar
Jim.UF
Member
Members
Forum Posts: 17
Member Since:
September 24, 2015
sp_UserOfflineSmall Offline

I’d say don’t worry about it Steffan … the loop-back work was to get ready for reading the BME280. The master code seems to be working as it runs and reads (trash, since the slave is not running). I’ll modify it to address the registers and try reading from the ‘real’ board.

Unless you find something you want me to try, I’m happy waiting for the fix in the next release.
Jim

October 13, 2015
4:50 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Ah ok. Sorry for the inconvenience. Go ahead and give the real board a try. The master side should work as we have many working projects based off master I2C comm. Well have the slave interrupts fixed in the next release. Thanks for bringing this to our attention.

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