Gocator Line Profile Sensors: User Manual
Tools and Native Drivers • 572
Procedures Description
Parameters (Output)
ConfigFile: The name of the job file. The file name includes the extension .job.
Example
Go2GenTL_ConfigFileName (AcqHandle, ConfigFile)
Go2GenTL_
SetConfigFileNa
me
Sets the sensor live configuration.
Parameters (Input)
AcqHandle: Acquisition handle created by open_framegrabber.
ConfigFile: The name of the job file. The file name should include the extension .job.
Example
Go2GenTL_SetConfigFileName (AcqHandle, 'test2.cfg')
Go2GenTL_
Encoder
Returns the current encoder value. When this function is called, the GenTL driver retrieves the
latest encoder value from the sensor. The value is returned as a two-element tuple. The first
element is the least significant 32-bit value, and the second element is the most significant 32-bit
value.
Parameters (Input)
AcqHandle: Acquisition handle created by open_framegrabber.
Parameters (Output)
EncoderValue: The current encoder value.
Example
Go2GenTL_Encoder(AcqHandle, EncoderValue)
Go2GenTL_
ImageSize
Returns the size of the image returned by the GenTL driver.
Parameters (Input)
AcqHandle: Acquisition handle created by open_framegrabber.
Parameters (Output)
Width: The width of the image.
Height: The height of the image.
Example
Go2GenTL_ImageSize(AcqHandle, Width, Height)
Go2GenTL_
CoordinateXYZ
Returns the real-world coordinates (X, Y, Z) of the part given the row and column position in the
height map.
The values of the offset and resolution input parameters can be retrieved using Go2GenTL_
ParseData.
Parameters (Input)
HeightMap: The height map image.
Row: The row in the height map.
Column: The column in the height map.
xOffset: The X offset in millimeters.
xResolution: The X resolution in millimeters.
yOffset: The Y offset in millimeters.
yResoluion: The Y resolution in millimeters.
zOffset: The Z offset in millimeters.