Search Comments and Ratings

go

   
Date File Comment by Comment Rating
20 Jun 2014 Asynchronous block for Arduino Files to part 2 in Makerzone articles about Arduino and the Sharp IR sensor. Author: Roger Aarenstrup

Roger Aarenstrup

phil

phil

AWESOME. i would love to see a video tutorial of how you built the function!

5
04 Apr 2014 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Giampiero Campa

phil

phil

Has anybody been able to make an interrupt block?

Comment only
25 Dec 2013 Data-driven Control Files used in webinar Data-driven Control conducted on 12 July 2012 Author: Pravallika

Pravallika

phil

phil

This is a great webinar. It might be worth mentioning that you can not use this method of data collection in External mode. When using the arduino mega for example. You can not log signal data in external mode. Rather you should connect a regular scope and save its data to the workspace. (this is with R2012b)

5
10 Dec 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Giampiero Campa

phil

phil

5
30 Nov 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Giampiero Campa

phil

phil

has anybody been able to get the Arduino Ethernet library to work>? i keep getting errors which seems to be related to the IP adress class

C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/IPAddress.h:33: undefined reference to `vtable for IPAddress'

the code in this file:
class IPAddress : public Printable {
private:
uint8_t _address[4]; // IPv4 address
// Access the raw byte array containing the address. Because this returns a pointer
// to the internal structure rather than a copy of the address this function should only
// be used when you know that the usage of the returned uint8_t* will be transient and not
// stored.
uint8_t* raw_address() { return _address; };

i havent even called any functions. at this point i am simply trying to include the ethernet library.

Comment only
29 Apr 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Giampiero Campa

phil

phil

guys i have put together a little macro that will automatically make the necessary modification to the wrapper.c file
I found myself having to redo this for every rebuild of the S function and it was getting annoying.
The exe will add the extern "C" in front of the voids save/close and rename it to .cpp
gl - phil

https://dl.dropboxusercontent.com/u/64527727/externCautoit.rar

Comment only
28 Apr 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Giampiero Campa

phil

phil

@ Nathan...
did you put the included files in the current matlab folder?

Comment only
20 Apr 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Giampiero Campa

phil

phil

Thank you! It compiles and runs on the Arduino Mega. The screen however does not show characters properly and its all scrambled. I am not sure what is happening... :(
When using the arduino IDE everything works fine. Here is a zip with some screenshots. I would appreciate if you could perhaps have a look and see if i am missing something...
thanks again - phil (pprotschka@gmail.com)
link:
https://dl.dropboxusercontent.com/u/64527727/screenshots/screenshots.zip

Comment only
19 Apr 2013 ADLX345 i2c Driver for Arduino Mega This is a driver for the analog devices ADLX345 triaxial acceleration and an Arduino mega. Author: Eddy Trinklein

Eddy Trinklein

phil

phil

hey man great work. i am trying to follow your steps but i keep getting errors when trying to upload my driver (lcd driver)...it would be amazing if you could maybe do a screenrecord of the process and put it on youtube...i cant figure out what i am doing wrong...thanks!

Comment only
19 Apr 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Giampiero Campa

phil

phil

./io_wrappers.cpp: In function 'void Serial_read(int, int, uint8_t*, int*)':
./io_wrappers.cpp:40: warning: 'libFcnOutput' may be used uninitialized in this function
cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++
./DDvers1_wrapper.cpp: In function 'void DDvers1_Outputs_wrapper(const boolean_T*, const real_T*, const real_T*, int_T)':
./DDvers1_wrapper.cpp:73: error: 'lcd' was not declared in this scope
./DDvers1_wrapper.cpp:77: error: 'lcd' was not declared in this scope
In file included from ./ert_main.c:18:
C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined
In file included from ./DisplayDriverv1.h:23,
from ./ert_main.c:17:
./rtwtypes.h:158:1: warning: this is the location of the previous definition
In file included from ./ert_main.c:18:
C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined
In file included from ./DisplayDriverv1.h:23,
from ./ert_main.c:17:
./rtwtypes.h:154:1: warning: this is the location of the previous definition

Comment only
11 Mar 2013 Simulink Support Package for Arduino Uno Hardware (R2012a) Simulink block library for creating standalone applications for the Arduino® Uno platform Author: MathWorks Simulink Team

MathWorks Simulink Team

phil

phil

great, how do i write custom driver blocks for this?

i have followed the guide by campa and this doesnt seem to work...any ideas?

4
06 Mar 2013 APM2 Simulink Blockset Simulink blockset for use with the ArduPilot Mega 2.0 hardware. Includes blocks to read external rad Author: Robert Hartley

Robert Hartley

  • 1 file
  • 167 downloads
  • 4.55556
phil

phil

Dr. Anderson must be very pleased with this! ;)

very useful stuff...! keep it up

5
06 Mar 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Giampiero Campa

phil

phil

just what i was looking for!
it would be great if you guys could share your driver blocks!

i am currently writing one for an LCD display...quite a challenge.

5

Contact us