Contours
V3D V2
V3D V2

22. Testing and Running Shows

The Test tab runs a show on the motors and draws what they actually do: each motor's position, speed and torque as it reports them, over the take it was given. Use it to check a show before it goes in front of people, to run it again and again with Loop Show, or to play a show from the motors' own memory.

To play a show straight from the Shows tab, on screen or on the motors, use Simulate and Run show in the Live update block (see chapter 11).

The Test tab

fig22-1-test-tab.png

Figure 22.1. The Test tab. Choose the show and tick the axes to run on the cards in the right-hand panel, then use Go to start and Start on the bar at the foot. The charts trace what each motor reports as the show runs.

  1. Click the Test tab. On the Show card, choose the show in Show to run. It starts as the show selected on the Shows tab.

  2. On the Axes card, tick the axes to run, or tick Select All. An axis can be ticked only when its motor is connected and it has a take in this show.

  3. On the Run Settings card, choose where the motors get their takes: Stream or Motor Memory (see Run settings below).

  4. Click Go to start, and wait for the axes to arrive (see the next section).

  5. Click Start. The label on the left of the bar changes from Ready to Running, and the charts trace each motor as it reports.

  6. Click Stop to end the run early. Otherwise the run ends when every motor has finished its take.

Select All ticks every axis that can run and unticks them all again. While it is on, an axis that becomes ready, for example when its motor connects, is ticked too. It is greyed while no axis can run.

A row greys out when its motor disconnects, and comes back when it reconnects. Each row shows its motor's status light and live position, as the Axes list does: green when the motor is in position, yellow-green while it moves, yellow when it is disabled and red for a fault. Hover over the light to read the status; click it to enable or disable the motor.

The arrow at the end of a row chooses what is drawn for that axis:

  • Data Points and Generated Spline: the take's points, and the spline the motor plays through them. These are what the motor was asked to do.

  • Position, Speed and Torque: what the motor reports during the run.

When there is nothing to draw (no show, no ticked axis that can run, or every graph turned off) the chart area shows the Cool Muscle logo instead of empty charts.

The path or the model beside the charts

The bar above the chart works as it does on the Shows tab (see chapter 17). With Path in the second pane, Contours draws the planned path and, as the motors report back, the path they actually take. With Model, the project's 3-D model moves as the motors report, so you can see what the machine is doing without looking up from the screen (see chapter 19).

  • The live path needs every axis of the axis group in the run. If one isn't, the path pane says so, for example No live path: Z isn't running.

  • With Data capture interval set to OFF, the motors don't report, so only the planned path is drawn.

The Test tab during a run, Side by side with the SR joint model posed by the motors

Figure 22.2. A run with the model beside the charts. The model follows the positions the motors report.

Note. While a show runs, and between Loop Show runs, the Shows and Axes tabs, New, Open, Save, Save As, Save Backup, Options and the video's Play and Pause are unavailable, and an update can't be installed. Click Stop first.

Going to the start

Go to start moves each ticked axis to where its take starts, at the speed and acceleration on its Run To card (see chapter 7). It first enables each motor and takes it off the controller, as Start does. An axis with no take is left where it is.

Watch the rows: when every light is green, the axes are in position. Go to start is available whenever a ticked axis can run and nothing is running.

Caution. Go to start moves the motors, at their Run To speed, from wherever they are. Make sure the machine is clear first.

Start waits for the motors

So that every motor begins together, Start stays greyed until the motors are ready, and a line above the bar says why.

fig22-3-start-waits.png

Figure 22.3. Start waits. The line above the bar names the axes that are holding it back.

  • In a Stream run, Start waits until every ticked motor is enabled and at its start: it reports that it is in position there, within the motor's own in-position tolerance, or it reads the start to the axis's shown decimals. Once a motor has arrived it counts as there while it stays within that tolerance, however its reading flickers. The line says, for example, Motor L isn't at its start: press Go to start. or Motor R is disabled: press Go to start. An axis with no take isn't waited for.

  • In a Motor Memory run, Start doesn't wait for the motors to be at their starts, because each motor plays the show it holds, which may be an older load. It waits instead until every ticked motor has stopped moving, for example after Go to start: a motor still moving would ignore the start and play nothing. The line says, for example, Waiting for Motor L to stop.

Motors left out of a run

Some motors can't play a show as they are. Contours leaves them out of the run rather than let them play nothing or play it wrong, names them in the line above the bar, and runs the others. A left-out axis doesn't hold Start back.

The line says

Why, and what to do

Motor L is left out: its motor has no Contours program. Load it on the Axes tab's Motor tab.

The motor has no program in the bank that plays Contours' shows. Load its program with Load motor, Program ticked (see chapter 9), or from its Motor tab (see chapter 8).

Motor L is left out: its motor's resolution doesn't match its shows, or isn't supported. See its Units and gearing card.

In a Motor Memory run: the shows in the motor were loaded at a different resolution from the one the motor is at now, so load its shows again (see chapter 9). In any run: the motor is at a resolution Contours doesn't support, or an older motor firmware can't play shows at the resolution it is at. The axis's Units and gearing card says which (see chapter 7).

A motor that hasn't yet said whether it has a program is tried as usual.

Run settings

The Run Settings card sets how the show runs.

fig22-4-run-settings.png

Figure 22.4. The Run Settings card. With Motor Memory chosen, Load all motors appears beside it.

Stream or Motor Memory

Run from chooses where each motor gets its take:

  • Stream: Contours sends each take to its motor as the show runs. The takes in the project as it is now are what run, so there is nothing to load first.

  • Motor Memory: each motor runs the show from its own memory. Load the shows into the motors first, with Load motor or Load all motors (see chapter 9); Load all motors also appears beside Motor Memory on this card, and opens the same window. A motor runs whatever was last loaded into it, so load again after you change a take, add, delete or reorder shows, or change the axis's motor resolution. Contours still starts each motor, so the motors must be connected.

Either way, each motor needs Contours' program in it (see Motors left out of a run above).

Data capture and Loop Show

Setting

What it does

Data capture interval

Point Interval has the motors report their position, speed and torque at each take's point interval, which is what the charts trace and the live path draws. OFF turns the reports off.

Loop Show

Starts the show again each time it finishes. Loop Count is the total number of runs; 0 repeats until you click Stop. Loops completed: counts the runs so far. Both can be changed during a run. Stop between runs ends the loop.

Between Loop Show runs:

  • In a Stream run, the axes go back to their starts, and the next run begins once they are all there, so every run starts in step. Contours waits about twice as long as the slowest axis needs to get back at its Run To speed, plus 10 seconds, and at least 15 seconds. If an axis doesn't get back in that time, the loop stops and a message names it, for example Loop Show has stopped: 25 s after Go to start, Motor L isn't at its start. A very slow Run To speed means long gaps between runs.

  • In a Motor Memory run, the next run begins once every motor has finished the last one. The motors don't go back to their starts in between.

Show video during a test

If the show has media attached (see chapter 16), its video appears on the Test tab's Media card, and you can pop the video out to watch it full size. The video follows the test run:

  • The video starts from the beginning as soon as the motors report movement, so it stays in step with the actual motion rather than with the button press. Each Loop Show run starts it from the beginning again.

  • If Data capture interval is set to OFF, the motors don't report their movement, so the video starts when you click Start.

  • Stopping the run, or the run finishing, pauses the video.

  • If a motor doesn't respond, the video stays paused.

  • While a run is in progress, the video's own Play and Pause buttons are unavailable.

If a motor is lost during a run

If Contours loses the connection to an Ethernet or serial motor during a run, a message at the bottom of the window names the axis, and the axis is shown as not connected. The other motors carry on, and the run ends when they finish. Reconnect the motor (see chapter 6) before the next run.

Note. Contours can't yet tell when it loses an Ethernet motor set up for UDP, or a serial motor that is switched off while its USB adapter stays plugged in. Such a motor goes on showing as connected, and a run that includes it doesn't finish on its own: click Stop.

Running a show from the Shows tab

You don't need the Test tab to play a show. On the Shows tab, the Live update block has Simulate (on screen only), Run show and Stop, and its Live update switches make the motors follow the time cursor (see chapter 11). Live update stops following while you are on the Test tab. When you go back to the Shows tab it starts again, and asks first if any motor is away from the show's position at the cursor.

Caution. Before running a show with a live audience or around people, always test it at reduced speed and torque. Confirm nothing collides with stagehands, props or walls. Motors driven by a bad take will move as fast and as hard as they are allowed to.