08-07-2016 04:19 PM
I am checking the script..
Do you have the schematic to understand a little bit more how the solenoid works?
08-07-2016 04:46 PM
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
08-07-2016 05:32 PM
Ok, I will be waiting for the specificactions..
Does your solenoid has a part number that you could send me?
08-08-2016 10:31 AM
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
08-08-2016 11:20 AM
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.
08-08-2016 11:42 AM
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
08-08-2016 12:03 PM
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
08-08-2016 11:42 PM
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
08-09-2016 02:34 AM
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
08-09-2016 07:07 AM
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