LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Solenoid Control using LabView and Arduino

I am checking the script..

Do you have the schematic to understand a little bit more how the solenoid works?

0 Kudos
Message 31 of 53
(2,683 Views)

I have asked the manifacturer. Will let you know as soon as he gets back to me.

Flavia

Dr Flavia Cardini

Senior Lecturer in Psychology

Department of Psychology

Faculty of Science and Technology

Anglia Ruskin University

Cambridge

CB1 1PT

0845 196 2346

0 Kudos
Message 32 of 53
(2,683 Views)

Ok, I will be waiting for the specificactions..

Does your solenoid has a part number that you could send me?

0 Kudos
Message 33 of 53
(2,683 Views)

I have not received anything from the manufacturer yet, but I have just found out this link:

http://digital.ni.com/public.nsf/allkb/677A0D3EF79BDA8D8625786F0080969D

saying that the Arduino motor shield might not be compatible with LabVIEW, and my solenoid is actually attached to this card…

do you think this can be a problem?

Flavia

0 Kudos
Message 34 of 53
(2,683 Views)

Ok, so you are using the Arduino motor shield, isn't it?

That is why all the pins you talked about before are used. Finally I understood.

Are you using the Arduino Uno board? The most important thing now is to know how to control de Motor Shield because is the driver for the solenoid.

0 Kudos
Message 35 of 53
(2,683 Views)

The link you posted only applies to computer boards.  It does not apply to shields.  Yoiu can use LIFA when using the Arduino motor shield.  However, you need to read the data sheet for the Arduiuno Motor shield to determine which Arduiuno digital pins the shield uses.  Next you will need to design and configure a VI to drive pins compatible with the Arduino Motor shield.

Arduino MNotoer Shiel Data sheet.

<https://www.arduino.cc/en/Main/ArduinoMotorShieldR3>

hrh212

Message was edited by: hrh212

0 Kudos
Message 36 of 53
(2,683 Views)

In one of your earlier posts you said you were using Analog pin 3 for PWM.  This is wrong.   For Channel A the Arduino Motor shield uses digital pin 3 for PWM

hrh212

0 Kudos
Message 37 of 53
(2,683 Views)

I have done the next block diagram.

Do you have the LIFA palette installed in your LabView software?

Please, check if my vi works as you want. If yes, mark this answer as the solution or as usefull.

If you need the *vi file let me know

Blocks.JPG

0 Kudos
Message 38 of 53
(2,683 Views)

Thanks a lot!

I will try tomorrow as today I don't have the PC with me.

If you could send me the VI as well it would great. I will let you know tomorrow as soon as I run the script!!

really thanks a lot,

Flavia

Dr Flavia Cardini

Senior Lecturer in Psychology

Department of Psychology

Faculty of Science and Technology

Anglia Ruskin University

Cambridge

CB1 1PT

0845 196 2346

0 Kudos
Message 39 of 53
(2,683 Views)

When sharing a VI I suggest you use the Advanced Editor.  Click on "Use advanced editor" in the upper right corner of the reply box. The advanced Editor provides the capability to add  attachments to your reply .    Because the original poster is using a solenoid a brake signal is not required.  For channel A you only need the direction pin D12 and the PWM pin D3.

hrh212

0 Kudos
Message 40 of 53
(2,683 Views)