Script Type Function Block: Available Commands

Table 1 describes all available commands for Script type function blocks.  Click on any command name to see a specific help file for that command.

Command Function Parameters
Clear History Clears the Message history in a panel. No setup needed.
Clear Stats Resets the statistical data for receive message. Selection for clearing all stats, all stats on one network, or a single message.
Comment Adds text to script to help document the script. Text to show in script.
CoreMini Action Starts, Stops, or Downloads CoreMini scripts (vs3cmb files) that run in ICS hardware while disconnected from a computer. Action to perform and possibly a storage medium and CoreMini vs3cmb file.
DAQ Action Starts, Stops, Saves data, or Waits for the completion of the specified DAQ Job. DAQ name to perform action on, and action to take.
Diag Job Action Starts, Stops, Saves data, or Waits for the completion of the specified Diagnostic Job Service. Service name to perform action on, and action to take.
Function Block Action Starts, Stops, Triggers, or Saves the data of a different function block. Function block to perform action on and the action to take.
If, Else, Else If, & End If Conditional statement for logic. Condition(s) to check for.
Jump If Jumps to a different step in the function block if the specified condition is true.  If the condition is not true, the next step in the function block will be run. Expression created with the Expression Builder, and step to jump to if condition is true.
Jump To Jumps to a specified step in the script. Step to jump to.
Load Message Data Fills a message with data from a file. Start position, number of bytes, file name and message to use.
Log Data Logs selected data to a file. File name and data to log.
Pause Waits for user input before proceeding to the next step. Message for user.
Read Data Reads data from file. File name, signal to hold data, and location in file.
Set Value Set the value of a signal in Vehicle Spy. Signal to get new value and Equation, created with the Expression Builder, for the value to set.
Show Panel Displays the specified graphical panel. Panel to show.
Sleep Forces the network interface hardware into a sleep state.  Works only if run within a CoreMini script. No setup needed.
Start and End Loop Repeats a block of steps in a loop. Loop counter that can be specified with the Expression Builder if needed.
Stop Ends the function block. No setup needed.
Test DTC Tests a J1939 message for DTCs and copies the DTC info to an application signal. DTC to look for (SPN, FMI, OC), application signal to store the data, and the receive message to test.
Text API Sends Text API commands to Vehicle Spy. Text API string created using the Expression Builder.
Transmit Transmits the selected message. Message to send.
Wait For Waits a specified amount of time before moving to the next step. Amount of time to wait.
Wait Until Waits until a set condition is true before moving on to the next step. Expression to wait for, created with the Expression Builder.

Table 1: Function Block Script Commands

  Vehicle Spy Documentation - (C) Copyright 1997-2011 Intrepid Control Systems, Inc.

Last Update: Monday, May 17, 2010