12-08-2011 10:53 AM
I'm quite new to Labview and I'm struggling with one thing...
But let's start by the beggining : I'm currently working on a project, basically I want to control two servomotors periodically and out of phase, between two defined positions determined prior launching the test. So in my mind, I want to create a software with two parts : the first part of the software shall be used to determine the two positions for each servomotor (configuration part), then the four positions are recorded in the second part of the software then used to control, out of phase and periodically the two servomotors (testing part).
The thing is, given the fact that the servomotors are set on a surface, its propeller shall remain, while configuring and while testing, in the position range defined before. But here is the real problem, given the fact that I clear the Daqmx task each time I call the function to contol the servomotor, the propeller position itself in a neutral position which is unfortunately not in the position range defined before.
My question is then : do you know if it is possible to use Daqmx without clearing the task ? Or if someone has a better solution ?
You can find in attachment a picture of the most important part of my program and a picture of the servomotor I used because I'm not sure the word "propeller" is appropriate for this kind of device (Sorry I'm French )
Thanks a lot for any answer
Cheers
12-08-2011 07:33 PM
If you don't get an answer here, you might want to try posting at http://forums.ni.com/t5/Discussions-de-produit-de-NI/bd-p/4170
12-12-2011 02:17 AM
Anyone ? Any help would be much appreciated!!
12-23-2011 04:26 AM - edited 12-23-2011 04:26 AM
Hi,
When you create a task it is a mandatory to clear it otherwise you will run into problems (see the following link).
http://digital.ni.com/public.nsf/websearch/043A509F0C3A34BA86256D27007DD444?OpenDocument
Best Regards
Jean-Luc D. NI France
National Instruments France
01-06-2012 04:22 AM
Hello all,
I'm still getting trouble with this program...
What I need to do is this: I'm using two servomotors. And every 10 minutes, I want the first servomotor to press a button on a console then once this step is done, the servomotor goes back in a position parallel to the console. Then 1 second after that, the second servomotor press another button on the same console then goes back in a position parallel to the console. Then the two previous steps are realized for a certain number of cycles.
So, as you may have unterstood, what I want to do implies to stick the servomotors in a fixed position, that is why I'm talking about the getting back the servomotor in a position parallel to the console after pressure is done.
The problem is : once the movement or pressure of the servomotor is completed, I need to clear the task I have created. But clearing the task is a problem because, as soon as I clear the task, the servomotor position itself in a neutral position, not parallel to the console but perpendiculair...The position of the servomotor on the console is not fixed anymore, in some cases the servomotor falls off the console, my program is then not usable.
So does someone know if it is possible to configure the neutral position of a servomotor ? Or does some has an idea about the way I can get rid off this problem ?
Thanks a lot for any help, It's really important for me
Cheers
PS : this is the type of servomotor I'm using
http://www.miniplanes.fr/servos/graupner-jr/servo-hv-6722-bbmg-graupner-p-23031.html
When I'm talking about parallel , perpendicular, I'm referring to the propeller of the servomotor