LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

4by4 puzzle type parking system

Hi. I am currently working on a 4BY4 puzzle type automated car park system. I have already written a C program so as to have a global idea of the project. But i do not have any clue how this can be implemented in labview (ps: i must be using labview software). Could you please help me by giving me some tips where should i start first. Attached is the C program.

0 Kudos
Message 1 of 41
(4,381 Views)

Any help please! If additional information is needed let me know.

0 Kudos
Message 2 of 41
(4,343 Views)

Can you give us a non-code representation of what you actually want to achieve.

0 Kudos
Message 3 of 41
(4,327 Views)

Attached is a simple powerpoint of what I want to achieve. Labview will be used:

1. To store the pre-decided sequencing of cars, i.e.. Where a car should be parked (am making use of the shortest path to park the car).

2. A mean to communicate with a plc (programmable logic controller) using an OPC server i.e.. When conditions are met labview should be able to activate a specific rung on the plc.

3. As an interface in order to see sensors and motors condition.


I would be grateful if you could help me to implement the first part, that is how the sequencing can be implemented in labview (ps: am a beginner). The C program before is an overview of the project but unfortunately I am not able to do it on labview.

Message 4 of 41
(4,321 Views)

Looking at your powerpoint, this could help.

Lewis Gear CLA
LabVIEW UAV

0 Kudos
Message 5 of 41
(4,298 Views)

Hi, thanks for the reply but i am not able to open the file beacause i have labview8.5 and the file is 8.6. Can you please save it for V8.5 please?

0 Kudos
Message 6 of 41
(4,287 Views)
0 Kudos
Message 7 of 41
(4,255 Views)

Thanks a lot. I have another question. Is it possible to call the C program (attached above) directly in labview as a library. i.e the entire program. Can you please give some clarification on this.

0 Kudos
Message 8 of 41
(4,227 Views)

You can compile the algorithm into a shared library (DLL on Windows, not sure on other platforms) and call that from LabVIEW, but the text-based output display won't work so you'll need to come up with another mechanism to pass the data. However, your C algorithm is rather inefficient so I wouldn't recommend using that as a starting point. For example, the f_next function should be rewritten with a pair of nested for loops.

 

The overall algorithm looks pretty simple and you could easily implement it with a nice display completely in LabVIEW, using an array indicator to show whether each space is occupied.

0 Kudos
Message 9 of 41
(4,199 Views)

hi,thank you for the reply. Will it be possible for you to help me a bit concerning the implementation in labview as am a beginner?maybe a VI with some guideline. Also, can you please help me concerning the C algorithm how to use the nested for loop for P_next(nest pallet to be used).

0 Kudos
Message 10 of 41
(4,170 Views)