User`s guide
(GpibOpen Method continued)
Visi.GpibSend Dev, ":HOLD VOLT;:VOLT1:HIGH 800 MV;:VOLT1:LOW -800 MV"
Visi.GpibSend Dev, ":HOLD VOLT;:VOLT2:HIGH 800 MV;:VOLT2:LOW -800 MV"
Visi.GpibSend Dev, ":PULS:TRIG1:VOLT ECL"
Visi.GpibSend Dev, ":PULS:TRIG2:VOLT ECL"
Visi.GpibSend Dev, ":OUTP1 ON;:OUTP2:POL INV;:OUTP2 ON;"
Visi.GpibClose(Dev)
GpibRead Method - This method can be used to retrieve data from a GPIB (General Purpose Interface Bus) device
on a connection previously opened using the GpibOpen method. This method is called subsequent to a GpibSend
command requesting information from the device.
Syntax
AppObj.GpibRead(DevID, MaxCnt)
AppObj is the required GigaView Application Object.
DevID is the required Numeric variable that was returned on a previous call to the GpibOpen method.
MaxCnt is a required Numeric variable that defines the maximum number of data characters to be returned. If fewer
characters are available they will all be returned. However, no more than this many characters can be returned
under any circumstances.
Returned Value - If data is available and the device is successfully read, the available data will be returned as a
String.
Example
Dim Visi
Set Visi = CreateObject ("Visi.Application")
Dev = Visi.GpibOpen("", 0, 6)
Visi.GpibSend Dev, "*IDN?"
Idn = Visi.GpibRead(Dev, 1000)
Visi.GpibClose(Dev)
Visi.MsgBox Idn
GpibSend Method - This method can be used to send data to a GPIB (General Purpose Interface Bus) device on a
connection previously opened using the GpibOpen method.
Syntax
AppObj.GpibSend(DevID, Command)
AppObj is the required GigaView Application Object.
DevID is the required Numeric variable that was returned on a previous call to the GpibOpen method.
Command is a required String variable that defines the command to be sent to the device.
Example
Dim Visi
Set Visi = CreateObject ("Visi.Application")
Dev = Visi.GpibOpen("", 0, 6)
Visi.GpibSend Dev, ":FREQ 150 MHZ"
Visi.GpibClose(Dev)
Grid Method - This method can be used to hide or show the Grid on the current plot view.
Syntax
AppObj.Grid(Show)
AppObj is the required GigaView Application Object.
Show is the required Boolean variable indicating whether a Grid should be displayed on the current plot view.
Example
Dim Visi
Set Visi = CreateObject ("Visi.Application")
Visi.New ("Histogram")
Visi.Grid(False)
©
WAVECREST Corporation 2005
Appendix A
273










