Click or drag to resize

EngineSetSpeed Method

Sets the speed of the engine.

Namespace:  RRAutoLib.CTC
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Sub SetSpeed ( 
	bytSpeed As Byte,
	sctClientToken As Guid
)

Parameters

bytSpeed
Type: SystemByte
Valid values are 0 to SpeedStepMax.
sctClientToken
Type: SystemGuid
A token that indentifies the client requesting the speed change.
Remarks
This method is similar to the Speed property except you can also specify a client token. The token is returned through the SpeedChanged event. Through comparison, one can determine if the event was created as a direct action of our client or was created by an external unknown one.

The engine must be bound to a command station slot prior to calling this method.
See Also