getting started witusing VS 2010 with Windows 64bit

C, C++, and Visual C++
jekain314
Fresh meat
Posts: 4
Joined: Thu May 24, 2012 4:27 am
Contact:

getting started witusing VS 2010 with Windows 64bit

Postby jekain314 » Thu May 24, 2012 5:10 am

followed the getting started instructions with the environment setup.
Also noted the forum article re Windows 64bit.
used the phidgets\x86\ path to the lib-- as suggested
Trying to run the "motor-control-simple"
compiles but wont run.
In debug mode i get the message:
Debugging information for "interface-simple.exe" cannot be found. binary not built with deug information ..."

cant seem to get started with the VS2010 debug process.
Tried "Hello world" with the same result.

suggestions?

jekain314
Fresh meat
Posts: 4
Joined: Thu May 24, 2012 4:27 am
Contact:

Re: getting started witusing VS 2010 with Windows 64bit

Postby jekain314 » Fri May 25, 2012 5:19 am

some additional attempts this morning trying to get a simple C++ program running with the phidgets single motor controller -- using the provided code.

My earlier post described our attempts to get the downloaded
"motorControl-simple.c" example running in the provided solution.
we used VS2010 with a 64bit Win 7 machine.

Our new attempt switched to VS 2008 but still on the 64bit Win 7 machine.

There are several posts in this forum about getting the 64bit running.
They describe using the "x86" libraries as a "temporary fix" as well as switching to the "64bit" configuration. Not sure if these were redundant or to be taken together. but weve tried both ways.

This morning, we started a Console App from scratch.
Put the .h in the local project directory
so used: "#include phidget21.h" to access the local .h.
Also referenced the .lib from the local directory using the
Project Configuration manager dialog (linker/input..)

Also changed the .h to add a
#define __cplusplus
but this really doesnt have any effect.
tried it both ways.

We also had to add the curly brackets as below to get rid of some warnings from the link.
typedef struct _CPhidget {} *CPhidgetHandle;
typedef struct _CPhidgetMotorControl {} *CPhidgetMotorControlHandle;

With these slight revisins, the program compiles w/o errors and runs in the debug mode.

But now it gets to the
CPhidget_waitForAttachment(...
and hits the timeout waiting to attach the device.

I can run the precompiled Stepper-full.exe (from the
downloaded material) click "engage", and the motor runs just fine.
So I know we have the motor connected properly.

Please assist if possible.

Jim

jekain314
Fresh meat
Posts: 4
Joined: Thu May 24, 2012 4:27 am
Contact:

Re: getting started witusing VS 2010 with Windows 64bit

Postby jekain314 » Fri May 25, 2012 6:17 am

tried the C# version of the exampes.
Pretty much the same response ---
never got past the "waiting for attachment".
I used the C# "MotionControlExamples"
there is a "motionControl-full" and a "MotionControl-simple"
tried both.
The "motionControl-full" is about like the Phidget Control Panel App.
However, it never shows the Attached: "true"
so obviously my problem is that the computer s not seeing the motor on the USB.

The motor is powered up and runs just fine with the Phidget Control Panel App. There, I get the Attachment: "true" and see the motor serial number, etc. And can also run the motor and see it move and the target change with the slider.

--- Jim

User avatar
burley
Human-Cyborg Relations
Posts: 441
Joined: Tue Sep 27, 2011 2:37 pm
Location: Calgary
Contact:

Re: getting started witusing VS 2010 with Windows 64bit

Postby burley » Fri May 25, 2012 7:39 am

You say you run the Stepper-full.exe and it works fine. That would indicate to me you have a stepper controller (1062 or 1063).

Code: Select all

typedef struct _CPhidgetMotorControl {} *CPhidgetMotorControlHandle;


This is for a DC motor controller though. You need to be using the CPhidgetStepper instead. The reason it is not attaching is because it is looking for the wrong type of device.
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com

jekain314
Fresh meat
Posts: 4
Joined: Thu May 24, 2012 4:27 am
Contact:

Re: getting started witusing VS 2010 with Windows 64bit

Postby jekain314 » Fri May 25, 2012 9:18 am

that was it!
all seems to work fine now
Thanks.
--- Jim


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 1 guest