80
PG-200 Operation Manual
Version 2.D
PG200SETWID
Sets up new width for PG200.
Parameters:
3
Parameter 1 Type:
Integer
Parameter 1 Definition:
Number of the serial port that the PG-200 is connected
to:
1 = COM1
2 = COM2
3 = COM3
4 = COM4
5 = COM5
6 = COM6
7 = COM7
8 = COM8
(Ports 5 - 8 require special hardware)
Parameter 2 Type:
Float
Parameter 2 Definition:
Width Value to set
Parameter 3 Type:
Integer
Parameter 3 Definition:
Units of the Width value.
0 = Nanoseconds, 1 = Microseconds, 2 = Milliseconds
Return Type:
Integer
Return Definition:
1 = Successful communication
0 = Error in communication
Status of this function:
V1.0
Example:
0 usec .5 usec 1 usec
: : :
Internal Trigger __: : :
|___________________________________:
: : :
Gate _________________: ________________:
: |_| :
: : :
Delayed Trigger _______________________________________
|____________
rem: Init com 1. Must do first.
let tmp = PG200SERIALINIT( 1 )
rem: Set Trigger mode to "internal".
let tmp = PG200TRGMODE( 1, 0 )
rem: Sync delayed trigger and aux trigger to internal trigger
rem: instead of gate pulse.
let tmp = PG200SYNCMODE( 1, 0, 0 )
rem: Set internal freq. to 5000.
let tmp = PG200INTFREQ( 1, 5000 )
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com