View Navigation

Bring the right part of the model into focus.

Review the view-navigation interface. Use its exact calling conventions when changing the displayed part of a simulation.

CSIM_NavigateView

You can cause the simulation viewer (SimView) to do navigation operations from within a model. Such operations are normally done by pressing buttons on the control panel. However, for canned demonstrations, it is convenient to pre-script such change-of-views.

The formal definition of the function is:

void CSIM_NavigateView( char *cmd, char *par )

The options are:

        cmd                par
        ---                ---
        ZoomIn             0
        ZoomOut            0
        ZoomToFit          0
        OpenGraph          <object_name>
        CloseGraph         0
        Flatten            <object_name>
        PanRight           0
        PanLeft            0
        PanUp              0
        PanDown            0
    NO_SCREEN_REFRESH  0
    REFRESH_SCREEN     0

Most of the options above are fairly self-explanatory, except perhaps the last two, which require some further introduction.

After each CSIM_NavigateView command, the screen refreshes. This is fine, if you perform only one navigation operation. However, if you issue several navigation commands in rapid succession, the screen will blink each time. To batch-up several navigation commands for a single refresh, you can disable refreash before navigating, and then re-enable it after the last navigation command.

For example:

    CSIM_NavigateView("NO_SCREEN_REFRESH",0);
    CSIM_NavigateView("ZoomIn",0);  
    CSIM_NavigateView("ZoomOut",0); 
    CSIM_NavigateView("ZoomToFit",0);

    CSIM_NavigateView("OpenGraph","/new");
    CSIM_NavigateView("CloseGraph",0);  

    CSIM_NavigateView("Flatten","/new");
    CSIM_NavigateView("PanRight",0);  
    CSIM_NavigateView("PanLeft",0); 
    CSIM_NavigateView("PanUp",0);  
    CSIM_NavigateView("PanDown",0);
    CSIM_NavigateView("REFRESH_SCREEN",0);

A complete example can be obtained from Navigate_Example.sim. Run this example by hitting the step button, to sequence through the views.


This page is an editorial rewrite of source documentation. Historical status, availability, and platform notes are not independently verified for a current release. Technical examples are reference material, not a live simulator.