Hi Omer,
Thank you for the update. This information helps to clarify your initial questions. What you will need to do is program your microcontroller to output the PWM signal based off of how you want the motor to move. This is difficult because you will have to find out hoow to output PWM on your microcontroller, and what commands the microcontroller is expecting from the computer in order to generate these PWM signals. You will need to learn these commands if you are going to use LabVIEW to program the microcontroller. I would be happy to help you with programming LabVIEW to send serial commands, but from the microcontroller on I would not be able to help you.
Regards,
Andrew M.
Applications Engineer
National Instruments