Phidget motor control

Supporting Visual Studio on Windows
EEPBppt
Phidgetsian
Posts: 9
Joined: Fri Nov 19, 2010 12:02 pm
Contact:

Phidget motor control

Postby EEPBppt » Sat Apr 02, 2011 2:00 am

Hello everybody. I have been trying to get the Phidget Motor Control HC 1064 to work using the SBC 1070, but I haven´t been able to make it work. First of all when the 1064 is reached using the webservice and I try to launch the program, it craches and displays a window saying that it stoped working. If I conect the 1064 directly to my computer it works fine. I would thank any help.

erik
King of the Lab
Posts: 476
Joined: Fri Mar 06, 2009 12:42 pm
Location: Calgary, Canada
Contact:

Re: Phidget motor control

Postby erik » Mon Apr 04, 2011 11:05 am

What is the 1070 firmware version are you using? Have you upgraded to the latest version on both the 1070 and the PC?

What does the window say exactly? Is it one of those "This program has stopped responding?"

EEPBppt
Phidgetsian
Posts: 9
Joined: Fri Nov 19, 2010 12:02 pm
Contact:

Re: Phidget motor control

Postby EEPBppt » Mon Apr 11, 2011 12:27 pm

Hi
the firmware in the 1070 is 1.0.4.20101103
the error window says:
MotorControl-full stoped working
Windows is searching for a soluttion
I will upgrade the firmware, hope it fixes the problem

EEPBppt
Phidgetsian
Posts: 9
Joined: Fri Nov 19, 2010 12:02 pm
Contact:

Re: Phidget motor control

Postby EEPBppt » Thu Apr 14, 2011 7:01 pm

Hello, Just to say thank you Erik, problem one solved; now the thing is that I can´t open the connection in the program I´m coding. I´m using the next piece of code for connections, maybe I should try to add parameters to xxx.open( serialnumber, serverid). I would thak any help.

int serialmotor = 164963;
string serverID = "phidgetsbc";
//creando un objeto del tipo motor
_controlMotor = new MotorControl();
//creando event handlers de _controlMotor
_controlMotor.Attach += new AttachEventHandler(_controlMotor_Attach);
_controlMotor.CurrentChange += new CurrentChangeEventHandler(_controlMotor_CurrentChange);
_controlMotor.VelocityChange += new VelocityChangeEventHandler(_controlMotor_VelocityChange);
_controlMotor.open(serialmotor, serverID);
//esperando conexion
_controlMotor.waitForAttachment();


Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 0 guests