01-26-2013 02:14 PM
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.
01-26-2013 11:46 PM
Any help please! If additional information is needed let me know.
01-27-2013 04:32 AM
Can you give us a non-code representation of what you actually want to achieve.
01-27-2013 05:05 AM
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.
01-27-2013 10:50 AM
Looking at your powerpoint, this could help.
01-27-2013 12:06 PM
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?
01-28-2013 07:18 AM
There we go
01-28-2013 11:02 AM
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.
01-28-2013 01:05 PM
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.
01-29-2013 09:46 AM
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).