ToolboxObjects Module

The ToolboxObjects module enables to interface with the Crestron devices via the Crestron Toolbox object and attribute model.

NOTE: The ToolboxObjects module is supported only for DigitalMedia™ devices.

The following cmdlets are available for the ToolboxObjects module:

  • Get-ToolboxObject
  • Get-ToolboxAttribute
  • Get-ToolboxValue
  • Set-ToolboxValue

The communication channel must point directly to the stream while using the Crestron Toolbox paradigm of a module, card, and stream. Escape the colons in the Crestron Toolbox address using the backtick (`).

For example:

Use the following syntax to stream on the second card of a DM-MD8X8 chassis:

Copy
"tcp DM8x8-MyUnit`:slot 2`:slot 1`:slot 1"

Use the following syntax to set up a DM-MD16X16 as a video tester:

Copy
# device
$dev = 'tcp DM-MD16x16-12366'

# open streams
$stream = @()
$stream += Open-ToolboxSession "$dev`:slot 1`:slot 1`:slot 1"
$stream += Open-ToolboxSession "$dev`:slot 2`:slot 1`:slot 1"
$stream += Open-ToolboxSession "$dev`:slot 3`:slot 1`:slot 1"

# DVI resolution generator
Set-ToolboxValue $stream[1] 'Analyzer' 'Generator Disable' $false
Set-ToolboxValue $stream[1] 'Analyzer' 'Generator Enable' $true
Set-ToolboxValue $stream[1] 'Source' 'Free Run Index' 32

# analyzer results
Set-ToolboxValue $stream[3] 'Analyzer' 'Analyzer Error Reset' $true
Start-Sleep -Seconds 5
$VideoUnlocks = Get-ToolboxValue $stream[3] 'Analyzer' 'Video Unlock Count'