Click or drag to resize

ListAPIExecute Method

Executes the identified Card-CommandList.

Namespace: RAYLASE.SPICE3.ClientLib
Assembly: RAYLASE.SPICE3.ClientLib (in RAYLASE.SPICE3.ClientLib.dll) Version: 3.4.1
Syntax
C#
public void Execute(
	int listID
)

Parameters

listID  Int32
Identifies the Card-CommandList.
Exceptions
Remarks
The Card-CommandList's contents must already exist on the card: i.e. Set(Int32, CommandList, Boolean, Int32), or some variant thereof, must have been called previously.

Execute may be called multiple times for any number of lists, even if the same or another list is currently being executed.

Lists called for execution are added to the card's internal execution queue: the queue is processed in first-in-first-out order.

The current execution state of a list can always be checked by calling GetListStatus(Int32).

Example
C#
using ( ClientAPI client = new ClientAPI() )
{
    client.System.ResetToDefaults();
    client.Connect( cardIP );    // <--- insert your card's IP address here!

    int listID = 0;
    CommandList list = new CommandList();
    // [...append your list commands here...]
    client.List.Set( listID, list );

    client.List.Execute( listID );

    client.List.Delete( listID );
    client.Disconnect();
}
See Also