01-21-2026 11:41 AM
"Currently, there is an existing system that monitor the number of visitors entering and exiting the tent at any one time. The tent is designed with one entrance and one exit to ensure that visitors walk pass all exhibits displayed in the tent. A sensor is installed at each entrance and exit at both ends of the tent to count the number of visitors entering and exiting. Once the number of visitors reached the maximum, the display at the entrance will show the message “Full House” and a barrier will be lowered to stop visitor from entering. The barrier will be lifted once the number of visitors fall below 500 and the display at the entrance will show the message “Welcome”. The system is connected to the machine through a local Ethernet network."
How to do this one? i need to use random number generator (0-1). But it still showing error.
01-21-2026 02:08 PM
Hi Edison,
@edison998834 wrote:
How to do this one? i need to use random number generator (0-1). But it still showing error.
01-21-2026 02:43 PM
Sounds like homework. We're happy to "help" not "do". Show us where you're stuck.
01-21-2026 06:54 PM
this is my current step. I want to random number generator for entry and exit. but the loop didn't work. Like when i run, the number is not updated
01-21-2026 07:13 PM
@edison998834 wrote:this is my current step. I want to random number generator for entry and exit. but the loop didn't work. Like when i run, the number is not updated
I can't see any "loop".
01-21-2026 07:37 PM
i am doing new one. can u help me check? how can i update number from random number?
01-21-2026 08:28 PM - edited 01-22-2026 02:14 AM
You need to start with some very basic LabVIEW tutorials, and if this is part of a course, check your class notes.
Wiring the iteration Terminal to a shift register makes no sense and within 100ms, both of your blue indicators show the same value, ever increasing., seems boring.
You need two door sensors, one for the entrance and one for the exit. In your case this could be simulated with two latch action buttons. A pulse in the entrance will increment the room count and and pulse on the exit will decrement the room count but not go below zero. When the count is 500, the door should be closed, right? That could be shown by e.g. a red LED.
01-21-2026 09:17 PM
In this Simulation, it seems (to me) that you have the following variables:
I think this exercise is designed to teach you something about Arrays. What seems to be the Array Element? What causes the Array to grow in size? What causes the Array to decrease in size? What might cause the value of each Array element to change? What (as the owner of this Marvelous Tent) is of most interest to you?
Bob Schor
01-22-2026 05:51 AM
Yes. i am think to add like operation hours so it can be realistic. right?