Ecuador
Asked — Edited

Question With Examples In Sdk.. Help?

HI! everyone..

I have been using Visual C# and I can not do to work the examples... in every example of the SDK I have this problem...

User-inserted image

If someone can help me?

I am Using Windows 7 x64 4GB ram Amd Phenom x4


ARC Pro

Upgrade to ARC Pro

ARC Pro is your gateway to a community of like-minded robot enthusiasts and professionals, all united by a passion for advanced robot programming.

PRO
Synthiam
#1  

I bet you haven't followed the instructions in the readme.txt file:)

Ecuador
#2  

OOHh!!! haha sorry Dj.... I am starting.... hahah I am a noob jajaj!

PRO
Synthiam
#3  

Hehehe that's okay:) that question gets asked a lot by sdk users.:)

Readme files are usually pretty uninteresting. That one is important!

Ecuador
#4  

haha:) yeah.. we are learning... mmm only one favor more.. can you give one example to use pwm for example in port D1 I want to send 5v...??? (now i am making the contro of hbridge with pwm...) because only this part.. i can not understand... thanks!

PRO
Synthiam
#5  

If you want +5 then you don't want PWM. PWM allows you to vary the voltage. For example, if you wanted +2.5 volts, than you would use PWM.

For +5, you can use the Digital functions.. Here's an example..


      // Turn D0 on (+5)
      ezB_Connect1.EZB.Digital.SetDigitalPort(EZ_B.Digital.DigitalPortEnum.D0, true);

or


      // Turn D0 off (+5)
      ezB_Connect1.EZB.Digital.SetDigitalPort(EZ_B.Digital.DigitalPortEnum.D0, false);

and for PWM on D0 you can use this


      // Set PWM for D0 to be 50% (2.5 volts)
      ezB_Connect1.EZB.PWM.SetPWM(EZ_B.Digital.DigitalPortEnum.D0, 50);

Ecuador
#6  

is working!! thanks!...:)

I have a lot of things to do with sdk!:)