Labview control of Roboard RB-100 PWM Channels

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.
22 postsPage 2 of 21, 2
22 postsPage 2 of 21, 2

Post by goofylogic98 » Wed Nov 04, 2009 5:41 pm

Post by goofylogic98
Wed Nov 04, 2009 5:41 pm

Thanks for the help. I know have the stuff working. Now another simple (i hope question).

I know that in the init rcservo.vi, if the noservo value is 24 and the channels is FFFFFFFF then all 24 PWM Pins are active for PWM signals and the GPIO (rcservo outp.vi) does not work. I also have tested setting the noservo value to 1 and the channels to 1 and I have PWM control on PWM Pin 1 and GPIO control on pins 2 through 24. My question is how do I set it up so that pins 1, 5, 20 are PWM pins and the rest GPIO.
Thanks for the help. I know have the stuff working. Now another simple (i hope question).

I know that in the init rcservo.vi, if the noservo value is 24 and the channels is FFFFFFFF then all 24 PWM Pins are active for PWM signals and the GPIO (rcservo outp.vi) does not work. I also have tested setting the noservo value to 1 and the channels to 1 and I have PWM control on PWM Pin 1 and GPIO control on pins 2 through 24. My question is how do I set it up so that pins 1, 5, 20 are PWM pins and the rest GPIO.
goofylogic98 offline
Robot Builder
Robot Builder
Posts: 12
Joined: Thu Aug 20, 2009 10:39 pm

Post by ries » Wed Nov 04, 2009 8:15 pm

Post by ries
Wed Nov 04, 2009 8:15 pm

unused channels are GPIO.
a sample with rcservo_outp is included.

I think you better can reserve the lower channels for PWM and the rest as GPIO.
in the example channels 0-15 are for PWM and 16-23 for GPIO.

You question with pin 1,5,20 is possible but not convenient for programming since the rcservo_setservo is driven by a for loop.

take a look at the sample, maybe it explains it to you.

http://robosavvy.com/Builders/ries/pwm+outp%20sample.zip

Regards,
Ries
unused channels are GPIO.
a sample with rcservo_outp is included.

I think you better can reserve the lower channels for PWM and the rest as GPIO.
in the example channels 0-15 are for PWM and 16-23 for GPIO.

You question with pin 1,5,20 is possible but not convenient for programming since the rcservo_setservo is driven by a for loop.

take a look at the sample, maybe it explains it to you.

http://robosavvy.com/Builders/ries/pwm+outp%20sample.zip

Regards,
Ries
ries offline
Savvy Roboteer
Savvy Roboteer
Posts: 62
Joined: Sun Dec 16, 2007 11:33 am
Location: Netherlands

Post by goofylogic98 » Wed Nov 04, 2009 8:37 pm

Post by goofylogic98
Wed Nov 04, 2009 8:37 pm

Thanks for all the help. I know have things functioning to a point I need to build some test code and run the robot. Will let you know how it turns out.
Thanks for all the help. I know have things functioning to a point I need to build some test code and run the robot. Will let you know how it turns out.
goofylogic98 offline
Robot Builder
Robot Builder
Posts: 12
Joined: Thu Aug 20, 2009 10:39 pm

Post by s890916 » Wed Apr 13, 2011 7:29 pm

Post by s890916
Wed Apr 13, 2011 7:29 pm

How to solve "I/O library fails to initialize"?? :shock:
How to solve "I/O library fails to initialize"?? :shock:
s890916 offline
Newbie
Newbie
Posts: 1
Joined: Fri Jul 23, 2010 9:59 pm

Post by roboard » Sat Apr 30, 2011 3:32 pm

Post by roboard
Sat Apr 30, 2011 3:32 pm

To ries,

information for the issue of using adc_ReadMCH() in LabVIEW: adc_ReadMCH() returns a pointer (int*) to an integer array and isn't suited for use in LabVIEW. Instead of adc_ReadMCH(), one should call adc_ReadMCH2() in LabVIEW. (adc_ReadMCH2() is declared by "void adc_ReadMCH2(int* buf)", where buf is an int[8] array for receiving the A/D value of every channel.)

:)
To ries,

information for the issue of using adc_ReadMCH() in LabVIEW: adc_ReadMCH() returns a pointer (int*) to an integer array and isn't suited for use in LabVIEW. Instead of adc_ReadMCH(), one should call adc_ReadMCH2() in LabVIEW. (adc_ReadMCH2() is declared by "void adc_ReadMCH2(int* buf)", where buf is an int[8] array for receiving the A/D value of every channel.)

:)
roboard offline
Savvy Roboteer
Savvy Roboteer
Posts: 302
Joined: Fri Jul 03, 2009 4:44 am

Post by Yequan » Wed Jun 15, 2011 8:53 am

Post by Yequan
Wed Jun 15, 2011 8:53 am

Error that, roboio.dll ERRMSG is generated into a buffer. With six roboio_GetErrMsg.vi you can get the coach shoes errors / warnings generated....
Error that, roboio.dll ERRMSG is generated into a buffer. With six roboio_GetErrMsg.vi you can get the coach shoes errors / warnings generated....
Yequan offline
Newbie
Newbie
Posts: 2
Joined: Wed Jun 15, 2011 8:50 am

Post by Fabrizia » Sun Nov 27, 2011 2:16 am

Post by Fabrizia
Sun Nov 27, 2011 2:16 am

roboard wrote:Hi goofylogic98,

the below link is the Labview (8.6.1) RoBoIO library, special thanks Mr. Richard van der Wolf from the Netherlands share this for us, you can free to download and use.


Thanks for the link, I needed this!
roboard wrote:Hi goofylogic98,

the below link is the Labview (8.6.1) RoBoIO library, special thanks Mr. Richard van der Wolf from the Netherlands share this for us, you can free to download and use.


Thanks for the link, I needed this!
Fabrizia offline
Newbie
Newbie
Posts: 4
Joined: Wed Nov 23, 2011 6:19 pm

Previous
Previous
22 postsPage 2 of 21, 2
22 postsPage 2 of 21, 2
cron