12-31-2009 09:21 AM
hi every body
i am working in joystick
i have task to control 2 motors by joystick
i should use DAQ and the DAQ connected to syren
when i handle joystick forward the outbut from joystick sholud be 5 voltag to make the motor move forward
when i handle joystick backward the outbut from joystick sholud be 0 voltag to make the motor move backward
and if the output is 2.5 volt the motors should be stop
please help me in this task give me some ideas
thank you very much
12-31-2009 09:51 AM
12-31-2009 10:04 AM
i didn't get any thng related or useful for my task in the examples provider in labview
my DAQ is this
12-31-2009 11:35 AM
That's pretty weird looking hardware. Or did you not understand the question?
In any case, there are examples on how to read a joystick(Connectivity>Input Device Control palette) and DAQmx examples. You will have to combine them.
12-31-2009 11:35 AM - edited 12-31-2009 11:36 AM
01-01-2010 04:41 AM
I did all what you said i read the joystick
my problem not this
my problem how to control motors
please i need help
01-01-2010 07:51 AM
01-04-2010 10:44 AM
Hi sara1986,
The others are correct, you'll need to do a combination of joystick input plus DAQ output.
I went to the NI Code Exchange (http://www.ni.com/code) and did a search for "joystick daq". The first link to that search (http://zone.ni.com/devzone/cda/epd/p/id/5510) should be enough to get you started. Of course, this example assumes you need analog output, but can modified for other DAQ tasks.