LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a regulator for elevator movement .

I'm new in using LabView, and I've been assigned to create a VI file, that regulates the movement of elevator in a building, and I don't know how to start, what to use...The problem includes a 5 floor building.The elevator moves from one floor to another in 2 seconds,and it only moves when it's been called from outside, or someone inside the elevator.The last 5 calls have been memorised, and the number of memorised commands that are called from inside  are 4. The calls from inside must be processed first,and the from outside of the elevator. Every state of the elevator, number of floor, and calls must be on display...

 

I would be really greatfull if someone give me some inputs, what to use... This is my first project in lab view...and every help is needed . Thank you in advance.

0 Kudos
Message 1 of 8
(4,013 Views)

Is this an actual elevator, or are we talking about a simulation? If it's a simulation this sounds like a homework project. If so, we will not do your homework for you, but we can provide tips.

  • What have you done in terms of LabVIEW?
  • Have you gone through the tutorials? To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. There are also several Technical Resources. You can also take the online courses for free.
  • Have you looked at shipping examples?
  • Have you looked at the example CLD projects (e.g., the traffic light example) that are available on this site?
0 Kudos
Message 2 of 8
(4,005 Views)

You're right this is an exercise project...but I still can't do this... I've started first with shift registers, but it didn't work out for me, and I'm sure that this is an easy project, but not for me  🙂 ... so, I went in another direction and I run into another problem...VI file is in attachment...

 

the main problem is that my elevator goes each time from zero

 

and I don't really know how to solve the problem with calling the elevator from inside and outside, I know that I can use arrays , or queues , but I haven't got really into that  because I havent solved the first problem... Is there any simillar programs that are controled like this elevator, that we control by pressing the switch with the option that we can press the button more than once , and it is remembered ?

Thanks in advance

0 Kudos
Message 3 of 8
(3,968 Views)

I am not going to do your homework for you but I will point you in the direction I would head.

 

This would be a good application for Queues, specifically a Queued State Machine.

 

When an "outside" button is pressed it would load the queue to send it to the proper "floor".

It an "inside" button is pressed you could insert queue elements that would give it priority.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 8
(3,953 Views)

I've resolved most of my problems, but one thing I still haven't been able to do. I don't know how to use this queues, or better to say, I don't know where to use it, inside a while loop, or case structures ... Is there any example of using queues that is similar to this problem..when I press a button it puts a number  in the queue... Thanks in advance . My VI is in attachment

0 Kudos
Message 5 of 8
(3,924 Views)

Smercurio mentioned the shipping examples.  I hope it's not too big of a hint but there's one called Multiple Notifiers - Elevator Example.  It's a very good example that uses notifiers (obviously).  Maybe try re-coding it to use the more powerful queues?

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 8
(3,916 Views)

Where can I find that example ? 

0 Kudos
Message 7 of 8
(3,909 Views)

Open the Example Finder and search for notifiers maybe???

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 8 of 8
(3,900 Views)