by roboard » Sat Aug 29, 2009 6:43 am
by roboard
Sat Aug 29, 2009 6:43 am
Hi,
1.
RoBoRC.exe can only run on your laptop without arguments (to see help messages). Running RoBoRC.exe with arguments on a laptop, you will get an error message in roboard.log:
ERROR: RCSERVO lib fails to initialize (unrecognized CPU)!
2.
For the manifest problem, if you install VC2005 SP1 Redistributable Package in RoBoard, you should be able to launch RoBoRC.exe directly (without copying any manifest crt folder).
3.
Please ensure that in RoBoard BIOS, Bit 6 of Port 3 is set to 0 and that you download the newest RoBoIO binary. Then try the following code to see whether the GPIO function works.
- Code: Select all
#include "stdafx.h"
#include <stdio.h>
#include <conio.h>
#include "roboard_dll.h"
int main(void)
{
if (rcservo_Initialize(RCSERVO_USENOCHANNEL)) {
printf("set GPIO pin 0 (PWM channel 0) to high\n");
rcservo_Outp(0,1);
getch();
printf("Close the above test\n");
rcservo_Close();
}
return 0;
}
An additional remark: if you use the RoBoIO DLL version, you need to copy RoBoIO.dll to the folder of your test program.
Hi,
1.
RoBoRC.exe can only run on your laptop without arguments (to see help messages). Running RoBoRC.exe with arguments on a laptop, you will get an error message in roboard.log:
ERROR: RCSERVO lib fails to initialize (unrecognized CPU)!
2.
For the manifest problem, if you install VC2005 SP1 Redistributable Package in RoBoard, you should be able to launch RoBoRC.exe directly (without copying any manifest crt folder).
3.
Please ensure that in RoBoard BIOS, Bit 6 of Port 3 is set to 0 and that you download the newest RoBoIO binary. Then try the following code to see whether the GPIO function works.
- Code: Select all
#include "stdafx.h"
#include <stdio.h>
#include <conio.h>
#include "roboard_dll.h"
int main(void)
{
if (rcservo_Initialize(RCSERVO_USENOCHANNEL)) {
printf("set GPIO pin 0 (PWM channel 0) to high\n");
rcservo_Outp(0,1);
getch();
printf("Close the above test\n");
rcservo_Close();
}
return 0;
}
An additional remark: if you use the RoBoIO DLL version, you need to copy RoBoIO.dll to the folder of your test program.
Last edited by roboard on Tue Oct 06, 2009 4:01 am, edited 1 time in total.