Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Ph Servo Primitve Bug FlowStone 1.5

For general discussion related FlowStone

Ph Servo Primitve Bug FlowStone 1.5

Postby coldplazma » Sat Aug 13, 2011 5:59 am

I want to report a bug. When trying to start multiple servos on the Phidget Advance Servo board, Flowstone 1.5 fails. Only allowing one servo to be engaged at a time. Sometimes when trying to engage or trigger multiple servos the app crashes.

I connected directly to the board from my pc through the USB to test the problem. I concluded it was a software bug because I tested it with the phidget test software and with an older version of Flowstone version 1.1 and I did not have the same problem. I was able to engage or trigger multiple servos at the same time and send them commands with the older software.
coldplazma
 
Posts: 5
Joined: Tue Feb 22, 2011 6:58 am

Re: Ph Servo Primitve Bug FlowStone 1.5

Postby DSP » Sat Aug 13, 2011 11:29 am

Not the case here, the new version FlowStone works fine with the Phidgets Servo Controller?

I can control all 8 of the servos with FS V1.1.5 (the latest Version).

Maybe you are doing something wrong? or maybe you don't have the latest version of the Phidgets software installed?

Check that you have the Phidget21.dll (Date 15/06/2011) in your Windows/System32 folder. Also check that you don't have another copy of this dll in your FlowStone folder. This happened to me, I had the latest Phidget21.dll installed in the System32 folder but had an old version in my local FlowStone folder. This was the one FlowStone was picking up and was unstable with the new version of FS.

Here is my test app:
Attachments
Phidgets Servo Test1.fsm
Allows control of all 8 servos
(286.05 KiB) Downloaded 1269 times
DSP
 
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: Ph Servo Primitve Bug FlowStone 1.5

Postby coldplazma » Sun Aug 14, 2011 12:00 am

Ok your right, your example works fine. I guess I am a little clueless on how to shift the index of the servo I want to send commands to based upon where the outputs are originating. For example I am mapping leftxbox controller joystick x and y to servo 0 and 1. At first I was trying to have two PhServo primitives in the same schematic for each servo. But looking at your PhMotor control example in the examples forum. I see that you somehow have a trigger pulse module defining the index number of the DC motor that should be getting the inputs. I see the schematic but I don't understand how that is working?
coldplazma
 
Posts: 5
Joined: Tue Feb 22, 2011 6:58 am

Re: Ph Servo Primitve Bug FlowStone 1.5

Postby DSP » Sun Aug 14, 2011 2:59 pm

It's just a little FS trick, because in FS can connect different data types together and they auto convert (Int to string etc.). You can do the same with triggers, secretly each time a number changes there is also a trigger signal used to indicate it has changed. So in the case of the example as the knob changes the servo number you also get a trigger each time.
The Phidgets module requires that you enable each servo (ON) every time you change to that servo, so the ON input needs to be set to true. The easiest way to make this happen is to set a bool to True then just trigger the ON input every time the servo address changes.

I hope this makes sense?
DSP
 
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: Ph Servo Primitve Bug FlowStone 1.5

Postby coldplazma » Tue Aug 16, 2011 12:14 am

Yeah I got it down now, also I figured out it is not such a great idea to map directly the slightest changes of a joy stick to a bunch of servos. I need to create a system where the changes in the joystick gradually makes changes to the servo position so that way the servo position stays static when the joystick is centered.
Thanks again for your help!
coldplazma
 
Posts: 5
Joined: Tue Feb 22, 2011 6:58 am

Re: Ph Servo Primitve Bug FlowStone 1.5

Postby DSP » Tue Aug 16, 2011 10:09 am

DSP
 
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: Ph Servo Primitve Bug FlowStone 1.5

Postby coldplazma » Tue Aug 16, 2011 9:59 pm

Thats awesome!, thanks!
coldplazma
 
Posts: 5
Joined: Tue Feb 22, 2011 6:58 am


Return to General

Who is online

Users browsing this forum: No registered users and 33 guests