LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Arduino Connection Problem

Hi

 

I would like to control a dc motor through Arduino and Labview. I use my Arduino Mega. The pin 5 is programmed as a PWM. I control one dc motor through MOSFET transistor because I need 9V supply. The control of the motor is OK. I can change the speed. But I have the following problem:

 

After the launch of the LabVIEW program, during the initialization procedure of Arduino, the signal comming from Arduino to the motor is 9V (the pin 5 is set to 9V). After the successfull initialization, Arduino gives the required voltage to the motor. I would like to overcome this problem. It is not so nice to send 9V to the motor at the begining.

 

I use LabView 2012 and I can't update the LINX library. I would like to ask if this library is supported by NI. If not what kind of a library I can use for controlling arduino with Labview?

 

Regards

0 Kudos
Message 1 of 2
(2,719 Views)

Are you using a P channel or N channel MOSFET? Is there a corresponding pull-up or pull-down resistor on the gate of the MOSFET?

 

Could you post your VI for controlling the Arduino?




Certified LabVIEW Architect
Unless otherwise stated, all code snippets and examples provided
by me are "as is", and are free to use and modify without attribution.
0 Kudos
Message 2 of 2
(2,561 Views)