Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer - Air solenoid

Hello all, first post here "nice" to meet you;

 

So, I have been working on learning more about labview over the past couple weeks and I thought that I might be able to use it to build a touchscreen interface(gui) for a project I am working on. First an foremost, the main function is to run a while loop type function to cycle a low voltage solenoid(~3V) used for air pressure delivery to a pump with the on/off times adjusted by user. The only other sensor/device would be a pressure transducer to provide a value for a digital screen readout of the psi. I have a few other animations I want to add, but those are of no concern until I have the main systems working and should simply be a swapping out of images as far as I have read.

 

So, main goals:

  • Build a loop timer to allow a user to change two different values; solenoid closed and solenoid open times(seconds).
  • User can pause and play the time with either one button that changes to the other(press play changes icon to pause and vice versa) or two completely different buttons for "simplicity". Pausing the "time" would therefor hold the solenoid open or closed according to current state.
  • Reset button to take times back to default,{15s:5s | off:on}.
  • During cycling, have an animation of a vertical bar or animate a bar to move/fill up  during discharge and down to 0 when cycling back off.  (or just an led or simplicity)
  • Read a transducer to simply show constant psi where ever its connected.

So really only two output signals to a solenoid and one input from the transducer, along with tft functions that will be addressed later.

 

The GUI well allow user to interact with the on and off value, pause, play and reset buttons. If I can figure out how to get the pop upmenu to work, would like to give my self the ability to be able to tap the number display to have a popup display with 0-9 show up for quick set up instead of having to hold down the up or down arrows.

 

Now my question(s):

  1. I am currently planning on using an arduino uno or mega with a 2.8 tft(may go up in size). I wouldnt be apposed to using a PI, but I need low power consumption; UNO at 16MHz uses ~4V so I may use a 9V to compensate for draw from solenoid. Does anyone know which would be more reliable and easier to set up with a TFT when using LabView?
  2. From my goals above, please help me understand what may or may not be feasible and suggest anything in place? Visual aids would be awesome since this is all still new to me.

Ill upload my files and images I have made when I get back to my desktop at home to update this; really just the GUI part of things in LV. I'm currently watching vids and reading on timers, so my update might show a lot more progress than currently mentioned.

 

Thanks for any help, I hope to learn a lot from all of you. If you need anything specific before I update, Ill try and address it before I post again.

 

Skol

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

So I have been tooling around with it and so far this is what I have come up with:

Genosphere_0-1610060362329.png

Genosphere_1-1610060448537.png

 

So, what I have been able to get to work so far has been the time input and timer count; would like to get it to count down from the entered amount which should easy to do. 

 

Now what I haven't been able to get to work is the tank symbol or even an LED indicator to work properly. The led is on there just to try things out, ideally, the "tank" is what I'm aiming for. In my original code, I was able to get the led to flash on and off.

I.e.

Genosphere_2-1610060763314.png

 

The tank on the other hand I was able to get to add up according to the first counter, but when I go to try and pull a signal off the second time I get an error "to many tunnels."

 

So, the issues I'm having now:

  • The tank will not register the second(discharge) time. The idea was to increase the bar according to the first then subtract on the second at an appropriate ratio to take it back to zero. Later Ill possibly swap this out with a more animated bar that does the same thing but has bubbles(like this).
  • The counts for a moment show the dec/milliseconds, any way to get rid of this and just show seconds?
  • I don't really know where to start on getting the pop-up keyboard to work, already put one together and found an example of the code/diagram part. I'm just not sure how to link it to the number inputs and have it function as it should. Link to keypad example.
  • Not sure if I should worry about this now or later, but eventually I'll need to have the output signal of the charge and discharge times toggle a physical solenoid, input from a pressure sensor, and above all to have everything function with the desired touchscreen.

Hopefully, someone will share some input.

Thanks,

Geno

Download All
0 Kudos
Message 2 of 2
(1,359 Views)