![]() ![]() |
|
|||||
AsGPIB tech info
Following is a brief description of most of properties and methods you can find in AsGPIB Component. In order of use this component you have to get GPIB card drivers and libreries in your hard disk, i.e. NI-488-2 software from National Instruments, and of course the corresponding hardware installed.
OnConnect Event Occurs immediately after a device is conected using Connect method.
function Write(TxtToWrite: string): Boolean; Sends a string from the values specified as TxtToWrite to a connected device. function Read: String; Reads data from a device to a result string. procedure Connect(GPIBAddr, DevPrAddr: byte); Opens and initializes an unused device whose board index and primary address are given from GPIBAddr and DevPrAddr respectively. This operation can be made change "Connected" property to True; procedure Activate; Access the 32-bit GPIB DLL. After this opperation the component takes the responsability of handle functions and global variables from GPIB libraries. function ClearDevice : boolean; Clears the internal or device functions of the connected device. If this operation is not successful then result will be False; function DeviceOnline : boolean; Put the device or interface board online. If this operation is not successful then result will be False; function DeviceOffline : boolean; Put the device or interface board offline. If this operation is not successful then result will be False; function GetIbsta, GetIberr: string; Get these gpib global variables' values to the result string. function GetIbcntl: Longint; Get this gpib global variable's value to the result integer.
property Connected: Boolean; Specifies if the control is connected to any device. property Active: Boolean; Specifies if 32-bit GPIB libraries are accessed by the control property PrimaryAddress: Integer; GPIB primary address of any device is set within that device with hardware switches. Value of this property is different in all devices so you should get that from the GPIB Interfacing section of your device's user manual. "Published" properties not mentioned here are values you should get from the technical manual of devices you want to access with AsGPIB. If you're not an expert in virtual instrumentation we recommend to use default values for these properties. They use to work fine in general case. If this page could not solve your doubts about Azbache AsGPIB uses, please email to asgpib@s-azabache.com.
|
|||||
|
As Components for Instrumentation - supported by Azabache Systems ® Sistemas Azabache 2005 --- All right reserved |
|||||