12-13-2013 09:13 AM
That code does not use PWM and it would not be possible to accurately recreate it without modifying LIFA to include a custom command that executes those functions on the Arduino.
What happens to the solenoids when you do use PWM (your code and my code)? If it doesn't work then it is likely the issue that hrh1818 pointed out in post 9.
So, it sounds like you would need to create a custom function to execute the Arduino code you have via LIFA.
12-13-2013 10:19 PM
hi
could you please make code labview+arduino for controlling 5/3 way with two solenoid valve without pwm?
i want to test the movement
thanks
01-01-2014 12:35 PM
please help
I modified Nathan_B code for controlling dual solenoid valve using pwm.
so now i have also ir sensor code and i want to combine it with solenoid code and also i want to insert PID controller. How?
i have already designed PID controller but i didn't calculate the values so just show me how the full code will be
08-04-2016 08:48 AM
Dear Nathan,
I am trying to control a solenoid connected to the Arduino UNO card and I have followed your script to do that.
However I am completely new to Arduino and it is not clear to me how to set the Pins in my Labview script.
As far as I know, the Pins used on Arduino are:
PWM = Analogue 3,
DIR = 12,
BRAKE = 9,
I have tried to set them up in my labview script (see image below), but obviously it does not work.
Would you be able to help me?
Thanks,
Flavia
08-04-2016 12:23 PM
Hi fla1980.
What do you exactly want to do?
08-07-2016 11:57 AM
I just want to activate a solenoid (just tapping once and coming back) that is connected to the Arduino through the pin that I have specified before:
PWM = Analogue 3,
DIR = 12,
BRAKE = 9,
The problem is that I don't know how to setup the analogue pin 3 and the dir in pin 12 at the same time and it is not really clear to me how the brake should be setup in labview.
Any help would be very appreciated!
Fla
Dr Flavia Cardini
Senior Lecturer in Psychology
Department of Psychology
Faculty of Science and Technology
Anglia Ruskin University
Cambridge
CB1 1PT
0845 196 2346
08-07-2016 01:35 PM
Ok, let me see if I understood.
You want to activate a solenoid (via LabView, obviously) and deactivate it also via LabView, is this correct?
Do you must use an specific Arduino's output to do that or you can use any output? I asked that because you talked about the PIN_3 of the board that could be configured as a PWM output.
Another question, what are the functions of the PIN_12 and PIN_9?
Do you want to activate and deactivate the solenoid through that pins too?
08-07-2016 01:47 PM
Yes I want to use LAbView to activate and then deactivate the solenoid.
The solenoid has already been connected to the Arduino, not by myself, but by my technician, who told me that one wire is connected to the Analogue 3 (and this should be the PWM), one wire is connected to pin 12 (the DIR) and one to Pin 9 (the brake). the actual function of these pins is not very clear to me as I am not an expert in electric circuits.
If I specify these pins in the Arduino software I can actually activate the solenoid, so I would say that these three pins are necessary to make the solenoid working.
I can send you the script I use just to activate the solenoind through the Arduino software, if it may help.
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
08-07-2016 01:54 PM
Yes, I would really like to help you.
Honestly I am not very sure about the function of the pins DIR and BREAKE. Please, send me the script to try to help you. Are you using an specific solenoid? Maybe that type of solenoid needs some signals to work.
08-07-2016 01:58 PM
attached the Arduino script and this is the link of the solenoid I am using (although there is not much about what to connect to make it working):
http://www.heijo.com/STIMULUS-PRESENTATION.html
Dr Flavia Cardini
Senior Lecturer in Psychology
Department of Psychology
Faculty of Science and Technology
Anglia Ruskin University
Cambridge
CB1 1PT
0845 196 2346