Welcome, Guest
Username: Password: Remember me

TOPIC: IO guide question

Re:IO guide question 13 years 3 months ago #1411

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Thanks Claes,

The last time I really digged in a distro was Redhat 7.3 and for a strange reason I missed interested (after kernel 2.4.x) and used GNU/Linux \"as is\". And there happened a lot since 2002....
But thanks to Proview my interest is coming back.

I had problems with the kernel module for motioncontrol I/O on Ubuntu 10.10
An updated usbio.c is attached. And if other forum members have problems with compiling the module because of:

Can't find linux/autoconf.h

Is the solution:

sudo -s
cd /lib/modules/$(uname -r)/build/include/linux
ln -s ../generated/utsrelease.h
ln -s ../generated/autoconf.h

Off topic1:

I ordered a Mega2560 as well but it's not on stock.....

Off topic2:

Snarf..., is a shared first place good enough? I am very willing to share...... :whistle:

/Marc

Attachment usbio.zip not found

Attachments:
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Re:IO guide question 13 years 3 months ago #1413

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Claes,

I am really curious about the implementation of the Arduino.
How did you do it?
With a sketch running on it.....?
It can't be otherwise then with direct port manipulation.
I really appreciate your work. I have always looked at coding as art.
You're a digital artist.....


/Marc

Post edited by: marc, at: 2011/01/15 11:12

Post edited by: marc, at: 2011/01/15 12:19
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Re:IO guide question 13 years 3 months ago #1414

  • hfuhuang
  • hfuhuang's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 53
  • Karma: 0
Hello Marc,

Your Pilot project sounds very interesting. I have the same wish to do the same thing since the end of 2009. Unfortunately, I did not have enough time to do this, because I am total occupied by my current job. Recently I am contacting with a Lab in a Chinese University, I hope they can work together with me to introduce Proview to some young student. Maybe some when I need your help. Thanks!

PS: To Claes and Robert:
Sorry for disappearing from this forum for so long time. I saw great progress done by you, I need time to follow up.

Best Regards
Hongfu
The administrator has disabled public write access.

Re:IO guide question 13 years 3 months ago #1415

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3179
  • Thank you received: 502
  • Karma: 133
Hi Snarf and Marc,

Sorry to disappoint you Marc, but the Arduino implementation is a simple serial port communication, and there's nothing artistic about it. I've written a sketch that is downloaded to the board and communicates with the I/O methods of the Arduino_Uno card object. The sketch is distributed in the package below.

This is how you get started with it:

- download and install the V4.8.1 beta release.

[url]files/tmp/pwr48_4.8.1-0.2ubuntu_i386.deb[/url]

- open the root volume in your project and activate Functions/Update Classes in the menu (in edit mode).

- read the Ardunio chapter in Guide to I/O systems and follow the instructions there.

- if you want you use fast scantimes, set Options in the PlcThread object to OverExecScanAlways or OverExecScanSingle.


Marc, if you don't get your Mega 2560 in time, and have on old Arduino laying about, it might work with this as well. It's the same wiring sketches to all of them, isn't it.

/Claes

Post edited by: claes, at: 2011/01/16 14:42
The administrator has disabled public write access.

Re:IO guide question 13 years 3 months ago #1419

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Thanks Claes,

I am using a Duemilanove.

I got an error: peek() in class hardware serial not found while compiling the sketch....

After a Google:
I downloaded this file: powned.dk/files/8012/9511/2953/arduino-extras.zip.txt
(too big for the forum to attach), and added this in the \"hardware\" folder.

The only difference between the UNO and the Duemilanove is the UNO has another USB-to-serial chip.

I am using the link in the *.opt: $pwr_obj/rt_io_user.o -lpwr_rt -lusb-1.0 -lpwr_usbio_dummy -lpwr_pnak_dummy

I can't find the Address attribute described in the manual.....

No errors...

/Marc

Post edited by: marc, at: 2011/01/15 22:08
Attachments:
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Re:IO guide question 13 years 3 months ago #1420

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Screen shot...

powned.dk/files/8712/9512/3126/Duemilanove.png

Post edited by: marc, at: 2011/01/15 22:26
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.
Time to create page: 7.719 seconds