01-17-2011 04:49 PM - edited 01-17-2011 04:51 PM
Hi,
i've made a simulation of a robot (the red dot) which finds its way trough a maze.
I think it takes the most time to create the picture so i added an option to make it refresh less.
The drawing of the picture has no output other than the picture itself.
Is there a way to do this in parallel, so the program can go on with the other calculations, while the picture is made?
The file 'simulatie' is the main file, which needs the others (sub-vi's)
Ragnar
(Is there a way to customize the appearance of wires, so the main data lines are different than the other wires?)
Solved! Go to Solution.
01-17-2011 05:27 PM
What are typical default values to run it? The current defaults don't produce anything interesting.
01-17-2011 05:37 PM
They do (at my pc), but you have to run it more than once, cause the discision whether there is a wall or not is random (p=50% at default)
02-23-2011 01:16 AM
Dear Raggie,
you can consider the producer consumer design pattern. Just create a queue with your data type (see attached picture) and for case true write to queue; case false do nothing. Do the picture calculations in your consumer loop; no timing needed since it just waits for an element, so it is synchronized with your producer loop.
You can not change the appearance of wires, however it is good practice to keep your main data wires (and also references) in a straight line, label those wires as well.
Best regards,
02-23-2011 02:40 PM
thank you