Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Motion Control Vis Joystick

I am using a joystick for manual control of my motion system. This allows the user to get the table close to the right position before they start the automated system. I have followed the information here to set up the joystick and it works great. The joystick is connected directly to the motion controller driver.

Has anyone re-written this to allow a button press to change from X-Y control to Z-plane control? Or from X-Y of one system to X-Y of another? I would really like to convert this from using a button press to control fast/slow to a button press controlling X-Y vs Z. I will re-write it myself if I need to, but if someone already has it, I would appreciate a peak at their code.

Thanks,
Bob
0 Kudos
Message 1 of 3
(3,502 Views)
Hey Bob,
As far as I know, there is no example, as of right now, that does what you are trying to do (at least that comes from NI). It looks like you might have to modify the code to have it do what you want it to do. With the example that you have right now, it shouldn't be too difficult to convert it to control the X-Y vs Z functionality.
Also, I hope the issue that you were having with the onboard program mode and the LabVIEW mode works out for you. Sorry I couldn't help out more with an example that does what you are trying to do. Let me know if there is anything else I can help out with. Thanks, and good luck in your application.

Regards,
DJ
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,490 Views)


@BOB Y. wrote:
I am using a joystick for manual control of my motion system. This allows the user to get the table close to the right position before they start the automated system. I have followed the information here to set up the joystick and it works great. The joystick is connected directly to the motion controller driver.

Has anyone re-written this to allow a button press to change from X-Y control to Z-plane control? Or from X-Y of one system to X-Y of another? I would really like to convert this from using a button press to control fast/slow to a button press controlling X-Y vs Z. I will re-write it myself if I need to, but if someone already has it, I would appreciate a peak at their code.

Thanks,
Bob

I sent this message and I never followed up.  I did modify the code to have a button change from X-Y to Z and the other button still changes speed.  It was easier than I thought to make the modifications.  One thing I did find was that in the subVI Read_ADC&Move.vi there is a place where they are negating the value of ADC1 (variable 4) by NOTing it.  This was wrong for our application and caused 'drift'.  It took a while to figure that out.  I replaced it with a subtraction (from zero).  It works better now.

So, if you are messing with these VIs, you might want to watch out for that.  And if you need to get a copy of the VIs, contact me (boby@distek.com).

Bob Young

Message 3 of 3
(3,348 Views)