Products for USB Sensing and Control
It is currently Thu May 23, 2013 7:51 pm

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Aug 09, 2012 5:53 pm 
Offline
Fresh meat

Joined: Thu Aug 09, 2012 5:03 pm
Posts: 2
I am using VC++2010. I make a dialog UI and try the stepper-simple.c code.

Project:
The dialog has two buttons "start" and "stop"
When I click the " start" button, stepper runs
If I click stop, I hope stepper stops immediately.

Implementation:
"Start": CPhidgetStepper_setTargetPosition (m_stepper, 0, pos);
"Stop": disengage or set velocity as 0

Issues:
I find after I click the "start" button, any button in the dialog does not work. It seems "CPhidgetStepper_setTargetPosition " takes over the process.

But in the "stepper-full" program, it can disengaged stepper at any time.

Do I need to do it in multiple threads? if so, how? or if the code of "stepper-full" sample program available?


Thanks


Top
 Profile Send private message  
 
PostPosted: Fri Aug 10, 2012 7:29 am 
Offline
Human-Cyborg Relations
User avatar

Joined: Tue Sep 27, 2011 2:37 pm
Posts: 324
Location: Calgary
You can find all of our sample code here:

http://www.phidgets.com/programming_resources.php

Though the stepper-full example you have been looking at was written in C# not C++.

_________________
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com


Top
 Profile Send private message  
 
PostPosted: Sat Aug 11, 2012 9:05 am 
Offline
Fresh meat

Joined: Thu Aug 09, 2012 5:03 pm
Posts: 2
Thanks. C# works well with those events


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group