10-24-2007 04:58 AM
10-24-2007 05:16 AM
Hi there,
It shouldn't be all that difficult. You just need to use the device vi's to monitor the joystick (as shown in the attachment) and then convert this into the voltage you want to output.
Hope this screen shot helps
Thanks
AdamB
10-25-2007 04:52 AM
10-25-2007 04:54 AM
10-25-2007 07:31 AM
10-25-2007 12:43 PM
10-25-2007 01:00 PM
10-25-2007 05:06 PM
Hi,
I believe you are on the right path with what you are trying to do but the DAQmx section of your code seems to be reconfiguring every time the while loop iterates. I have attached a small example VI that I believe accomplishes what you are trying to do. It will take a bit of customization based on your specific joystick. I have the values set for the joystick that I tested; a Logitech Attack 3. This VI takes the input from the joystick, adds the largest negative value that the joystick outputs in order to make all values positive, and then divides by a factor. This scales the data so that it is between 0V and 5V, which is the output range of the USB-6008. I hope this helps and please let me know if you have any further questions.
10-25-2007 10:28 PM
Hi Jaced,
Thanks for the help.. I currently using Labview 8 and i'm unable to view yr VI, could you like help to print screen... Really sorry to trouble you.. Btw, can i know that am i able to give out 3 different voltages out of NI-6009 depending on the joystick readings?
10-25-2007 10:58 PM