
PowerSync Analyzer Reference Manual
March 9, 2010
Sifos Technologies page
135
Windows Command Shell Commands
PowerShell Test Script named c:\myTest.tcl
cd c:\Program Files\Sifos\PSA1200
"PowerShell Tcl.exe" c:\myTest.tcl
psa
192.168.221.106
alt
99,99 A
polarity
99,99 neg
foreach port "7,1 7,2 8,1 8,2" {
set status [
power_port
$port c 0]
append Vport "Port $port: [lindex $status 1] volts\n"
psa_disconnect
$port
}
puts $Vport
The above example produces the following result:
The test results from myTest.tcl can be readily routed to a text file for reading by an outside application. This is done
by simply modifying the Shell Command above to direct output to a specified file such as c:\myResults.txt.
"PowerShell Tcl.exe" c:\myTest.tcl > c:\myResults.txt
This produces the following text file in
c:\myResults.txt
:
Figure 8.8
Remote Execution of PowerShell Test Script myTest.tcl
Figure 8.9
Routing Test Output to a Text File
Summary of Contents for PowerSync PSA100
Page 26: ...PowerSync Analyzer Reference Manual March 9 2010 Sifos Technologies page 26 ...
Page 56: ...PowerSync Analyzer Reference Manual March 9 2010 Sifos Technologies page 56 ...
Page 84: ...PowerSync Analyzer Reference Manual March 9 2010 Sifos Technologies page 84 ...
Page 110: ...PowerSync Analyzer Reference Manual March 9 2010 Sifos Technologies page 110 ...
Page 120: ...PowerSync Analyzer Reference Manual March 9 2010 Sifos Technologies page 120 ...