Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Trouble getting custom IO card to work

Trouble getting custom IO card to work 6 years 3 months ago #9438

I've been working on getting a test IO Rack and Card working (alla the tutorial in the IO System Guide), but have gotten stuck at a few points. By piecing together some other guides (like the Custom Function Guide on the Wiki), I've been able to get my code to compile and put it in my Node Hierarchy, but when I run a simulation, I'm not getting the dummy value I programmed. How can I get my programmed output to be reflected in Proview?

Here's my IO Card's code in ra_io_m_rfr.c:
Warning: Spoiler! [ Click to expand ]


Here's my IO Card Configuration:
Warning: Spoiler! [ Click to expand ]
The administrator has disabled public write access.

Trouble getting custom IO card to work 6 years 3 months ago #9439

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Hi Scott,

You should use the class name, RandomFileReaderIO, in the MethodName, not RFR.

Also replace MotionControl_USBIO in pwr_BindIoUserMethods with the class name.

/Claes
The administrator has disabled public write access.

Trouble getting custom IO card to work 6 years 3 months ago #9440

I made those updates, but I also have a problem with the rt_io_user.c outlined in the IO Guide. I try to build the simulation node, but I get a multiple definition error in the logs. How do I get past this?

rt_io_user.c
Warning: Spoiler! [ Click to expand ]


BuildConfig
Warning: Spoiler! [ Click to expand ]


Workbench Log
Warning: Spoiler! [ Click to expand ]
The administrator has disabled public write access.

Trouble getting custom IO card to work 6 years 3 months ago #9441

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Specify IoUser in SystemModules instead of specifying rt_io_user.o in ObjectModules.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: scott181182

Trouble getting custom IO card to work 6 years 3 months ago #9442

Thanks, that did the trick! Does that mean I don't need my own rt_io_user.c, or that the build config knows where to find that file already?
The administrator has disabled public write access.

Trouble getting custom IO card to work 6 years 3 months ago #9443

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
IoUser means that your rt_io_user.o on $pwrp_obj is selected instead of the default one on $pwr_obj. So you still need it.

/Claes
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 9.114 seconds