Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

IO library fails to initialize (linux)

Based on DMP's Vortex processor / SoC this board is a full computer capable of running a standard Windows and Linux installation on the backpack of your robot.
3 postsPage 1 of 1
3 postsPage 1 of 1

IO library fails to initialize (linux)

Post by SoBot » Wed Mar 31, 2010 3:18 pm

Post by SoBot
Wed Mar 31, 2010 3:18 pm

I am running Xubuntu on my roboard with Eclipce installed for C/C++ development. I am able to compile and run the following code:

#include <roboard>
#include <iostream>
using namespace std;

int main() {

cout << "Roboard test program" << endl;
if (rcservo_Initialize(RCSERVO_USECHANNEL0))
{
rcservo_Outp(17, 1);
cout << "setting pin high"<< endl;
rcservo_Close();
} else cout << roboio_GetErrMsg();
return 0;
}


but for some reason the IO library won't initialize. This is the output:

Roboard test program
I/O library fails to initialize

What can be the reason for this?
I am running Xubuntu on my roboard with Eclipce installed for C/C++ development. I am able to compile and run the following code:

#include <roboard>
#include <iostream>
using namespace std;

int main() {

cout << "Roboard test program" << endl;
if (rcservo_Initialize(RCSERVO_USECHANNEL0))
{
rcservo_Outp(17, 1);
cout << "setting pin high"<< endl;
rcservo_Close();
} else cout << roboio_GetErrMsg();
return 0;
}


but for some reason the IO library won't initialize. This is the output:

Roboard test program
I/O library fails to initialize

What can be the reason for this?
SoBot
Robot Builder
Robot Builder
Posts: 17
Joined: Wed Mar 31, 2010 3:10 pm

Re: IO library fails to initialize (linux)

Post by roboard » Thu Apr 01, 2010 10:18 am

Post by roboard
Thu Apr 01, 2010 10:18 am

HI

In RoBoIO library, there have many function are belong to internal control, please login as root (administrator) then try again.
HI

In RoBoIO library, there have many function are belong to internal control, please login as root (administrator) then try again.
roboard
Savvy Roboteer
Savvy Roboteer
Posts: 302
Joined: Fri Jul 03, 2009 4:44 am

Re: IO library fails to initialize (linux)

Post by SoBot » Tue Apr 06, 2010 9:21 am

Post by SoBot
Tue Apr 06, 2010 9:21 am

Thanks roboard, that solved my problem! :)
Thanks roboard, that solved my problem! :)
SoBot
Robot Builder
Robot Builder
Posts: 17
Joined: Wed Mar 31, 2010 3:10 pm


3 postsPage 1 of 1
3 postsPage 1 of 1