Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66973

Need help on simple LabVIEW programming. Very new to labVIEW and myDAQ

$
0
0

Hello people, it's my first time asking here and I am hoping for some good answers. I did search up my questions first but I couldn't find it, maybe because they are very simple. 

 

PS: TLDR is down below this paragraph if you just want to help and not want to hear me babbling.

 

I'm currently in high school and I just did a robotics and control competition using labVIEW and myDAQ. The competition only gave us a pdf showing examples of program structures (open loop, closed loop, case structires, while loop). They are mostly about controlling through output (switches and phototransistors) which I did studied and analyzed well. We only practiced with less than two months time and I didn't expect what is going to happen in the competition. So the day of the competition came and I was starstrucked with the projects that they gave us. No sensors are required, only the basic use offmotors (propeller), lights and they need to be shut off/on and go reverse (motor) in a specific time. We are also required to repeat it three times and then stop. I was completely unaware of these and lost the competition (We finished 2nd place though, other teams were also stomped by the projects except for the team who came back from last years competition).

 

 

 

TLDR: To sum it up, I am asking for a program (or maybe also the mySTEM setup if you're kind enough) that do these things. I want to see where I did wrong and what not:

 

Task One: The Hand-Dryer.
• Turns the propeller (motor) on clockwise for three seconds with the right light on too (also for three seconds)

• Pauses for two seconds.

• Then turns the propeller (motor) counter-clockwise for three seconds with the left light on for also three seconds.

• Pauses for two seconds.

• The actions above must be repeated for three consecutive times. No more, no less.

• Stops the program, automatically.

 

 

Task Two PART 1: The Elevator

• Make a three storey elevator. They are not being specific and no sensors where asked. (I guess we just have to time the travel time to each floor? or use a switch? I used the single pole double throw switch from Fischerteknik but it wasnt perfect to the task..I got some programming issues on that)

• Starting from the first floor. The elevator (ie, the motor with the gearbox attached) needs to move up to the third floor and it should stay there for five seconds while the light (located on the third floor) and the buzzer (PS: Only one buzzer is used for the whole structure) should light and beep for three seconds.

• From the third floor, the elevator shoud move down back to the first floor and stays there for five seconds with the first floor light and buzzer on and buzzing for three seconds.

• From the first floor, move to the second floor and should stay for five seconds. Buzzer should sound and light should turn on too for three seconds.

• Then finally, from the second floor, goes back to the first floor and buzzer should sound and first floor light should turn on too for three seconds.

 

Task Two PART 2: Elevator

• With the same sequence as the one above, control the elevator using your keyboard input numbers (ie, if I put the number "1" in the program--which I have no idea how or where--it should go to the first floor. And if I type "3" the elevator should go to the third floor. Same goes for the second floor.

 

 

I know this is a long read but thanks for reading and to the people who will try and make this program, thank you in advance. Hopefully, I can learn more from here so I and my team can be ready for the next competition. Have a nice day!


Viewing all articles
Browse latest Browse all 66973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>