Entries in Graphics (4)
Using the "Image: " Label
Prerequisites:
This discussion assumes that you already have a basic understanding of how to set and use labels, as well as how to associate an image with a work item. For more complete information on these topics, see our book, Learning SIMUL8: The Complete Guide or ask about our training programs.
Example Model:
To follow along with this example, download and open the Image.s8 model.
Description:
Animation is often an important model element, especially when it comes to explaining the system's behavior to stakeholders. Having the means to dynamically change graphics can be a key factor in the effectiveness of any animation. This week's topic demonstrates how to use a special reserved system label called "Image:" to make your work items follow a specified on-screen path.
Using a CAD Drawing in SIMUL8
I'm creating a model of a manufacturing process. I'd like to use a CAD drawing of the plant floor as a background graphic in my SIMUL8 model. What's the best way to accomplish this?
First, we should say that anything you can do to make the model come alive for decision makers and stakeholders will only make your life as developer easier. If your model relates to a physical process and you have a CAD drawing readily available, it is a great idea to take the time to add it to your model.
As is true so often with SIMUL8, you've got a couple of options for accomplishing this task. One way is to use SIMUL8's built-in AutoCAD import option under the File menu. If your CAD drawing is not overly complex, you may be happy with this method.
We frequently find, however, that this method gets less than stellar results. We've never heard of a CAD drawing that was created with a simulation model in mind. CAD drawings usally contain a great deal of information that is irrelevant to the simulation model. The resulting scale is much too dense to be very appealing your simulation model.
We've had much better luck by doing a bit of preliminary work on the CAD drawing in a pixel or vector -based graphics program before we bring it into SIMUL8. This allows us to be picky about what we include in the background graphic, only including the elements that are relevant to the simulation model. Common editing tasks include removing unnecessary detail or unwanted text, changing or adding colors, and rescaling.
Once we are satisfied with the modified CAD drawing, we save it as a bitmap or jpg. For most uses, a graphic that is 1000 x 560 pixels seems to work well. We also find that, like painting a house for resale, neutral colors tend to go over best.
To add the graphic to your model, select the Graphics button from the Graphics palette then click on the simulation screen approximately where you want the top left corner of the graphic to be. SIMUL8 will then prompt you with a File Open dialog. All that's left is to select the modified graphic file that you just created and admire your work!
Cut Your Development Time with On-Screen Shortcuts
When you are immersed in simulation model development, little conveniences can make all the difference. During the debugging process, it is common to run the model for some time, flip back to one or more Information Store (IS) sheets, perhaps change something then start the whole process again.
To help save time, we often create a 'Control Panel' sub-window containing quick links to important information as well as dynamically updated statistics of interest. This is especially true for small to mid-sized models that may not have a full-fledged user interface attached. A simple control panel is quick to put together, yet it saves development time and serves as a useful reference point for the model's end user.
Disappearing SIMUL8 Graphs
Graphs have a tendency to disappear from the SIMUL8 screen as you work with a model. We often hear from users who want to know how to 'fix' the problem. A second symptom could be that SIMUL8 appears to 'lock up".
While this occurrence may seem disconcerting at first, there is actually nothing to fix. The graphs are still there - they've just slipped out of sight behind the main simulation window. The best way to retrieve them is to press ALT-TAB as if you were going to switch to a different application. This triggers SIMUL8 to refresh itself and therefore bring the dialogs to the front.
You can find comprehensive information on this topic and many more in Learning SIMUL8: The Complete Guide, as well as through our innovative SIMUL8 training programs