12-29-2009 05:54 PM
12-30-2009 11:22 AM
Hi sprksc,
Are you looking to have the program downloaded onto the microcontroller or were you looking to have the program running off of a computer to control the motors?
12-30-2009 04:09 PM
I want to control the speed and directions of motors by a keyboard or a joystick. I mean when I push a button on the keyboard, it will send a signal to microcontroller and then it will send the signal to the motors. for example the reset buttons on my circuit provide high or low voltage to microcontroller. by these buttons, i control the motors to turn right or left. in addition to this, A voltage devider with 1kohm POT provides the speed control of motors. when the resistance of POT is 0, the voltage sent to the microcontroller will be 5V. If i increase the resistance of POT, the voltage sent to microcontroller will decrease. therefore, the speed of motor is controlled with the change of the resistance of the POT. However, this methods are an analog method. I want to control all of these processes by digitally with labview.
12-31-2009 01:54 PM
Hi sprksc,
If you are looking to deploy this code onto your microprocessor, you will not be able to do that with the type of microprocessor that you are using. However, if you are looking to have the LabVIEW code running on your computer and communicating to the microprocessor, you will have to do this via serial. You'll want your code to have an event structure that monitors for a key press and then based on which key is pressed, you will send a serial command using the NI VISA VI's to the processor.