LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

clock on/off

Can someone help me out with this. A clock to trun on and off a pump with the arduino. When i run the program on the computer its not working im not sure what I am doing wrong,

Download All
0 Kudos
Message 1 of 7
(4,142 Views)

Hey Kollin,

Can you provide some more details on what exactly you want to do?  For example do you want to turn on a pump for 1 minute every 5 minutes?  On one second, off one second, etc?  Does you want relative or absolute times, etc.  The more info you can provide the more we can help.

Thanks!

-Sam K

LIFA Developer

0 Kudos
Message 2 of 7
(3,522 Views)

Hi

Try to compare floating point oreven better, use integers for the compare.

Now a lot of errors can occur due to extra spaces or typing errors.

greetings from the Netherlands
0 Kudos
Message 3 of 7
(3,523 Views)

Here is a really simple example that might be what you are looking for.  A good first step is to prototype without the Arduino hardware as you did:

Compare Time.PNG

Then you can add in the Arduino VIs like the following:

On_Off.PNG

I didn't test this on the hardware but the code is attached.

-Sam K

LIFA Developer

0 Kudos
Message 4 of 7
(3,523 Views)

Thank you all for the help. This is my little girls project for the summer. She is working on a Data Acquisition Seystem for her Hydrophincs seystem that she bult. We found out last night.That when you hit run or play  and moving over the wire you can see the out put of the code, Then we saw the format form the Numeric String and the Match Pattern Function was not the some format. After knowing that it work.  If any one know books or video to help her learn Labview that will help. Her plans or to read  Temp,   Ph,  PPG/EC/TDS,  Timers,  open and close valves,  graphs and I am sure she will come up with more.  Once again thank you all for the help.

Sammy_K the code you sent is look easier and we going run it tonight.

0 Kudos
Message 5 of 7
(3,523 Views)

Hey Kollin,

The LabVIEW in 3 Hours material is a good place to start if you're new to LabVIEW (and it's free!).  It talks about myDAQ a bit but it maily covers LabVIEW basics.

Feel free to post back with additional questoins as you guys learn and continue your project.

-Sam K

LIFA Developer

0 Kudos
Message 6 of 7
(3,523 Views)

Here is some more LabVIEW getting started material:

http://www.ni.com/academic/students/learn-labview/

-Sam K

LIFA Developer

0 Kudos
Message 7 of 7
(3,523 Views)