06-13-2005 10:50 AM
06-14-2005 11:37 PM
09-01-2005 10:09 AM
@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