05-16-2013 06:48 PM
I want to make a smart park system. I want the parking lot to have two floors but i'm not sure what would be more convenient to use, an array a cluster or a matrix? I'm pretty new to labview and only know how to use arrays and clusters but if a matrix is more convenient i wouldnt hestitate to learn about it in order to complete this project. Here is an algorithm of what i'm going to do. (its a little unorganized sorry about that)
-two 2D arrays (2 floors) of parking, {switches in each parking space that when turned on indicate the parking space is taken, when off it means the space is available)
-3 entrances to the mall on each parking floor (handicapped spaces nearest to entrance)
-2400 parking spaces total (2% are for handicapped so 48 for the handicapped, 8 by each entrance , on each floor, have separate indicators at entrance for the handicapped people)
-a button at each entrace and exit, so when a car turns on the button to the entrance/exit the counter will add/subtract a car.
- 2 entrances, 2 exits each entrance, should show how many cars are on each floor, how many free parking spaces there are on each floor, indicate when full or empty.
05-16-2013 07:37 PM
A matrix is basically a typedefd 2D array used for linear algebra, so that would be pointless here. If the spaces on each floor really form a complete rectangular grid, you could use a 3D array for the entire building.
05-16-2013 09:09 PM
The physical layout of the parking garage is irrelevant. There doesn't seem to be a logical distinction to the program or a difference if a parking spot is on the first or second level. Just use a 1 dimensional array for your list of all 2400 parking spots. That can be an array of clusters with a boolean to designate handicapped and a x,y, z coordinate for display?