Chapter 3 Example Programs
(Note:The communication by LAN will correspond by the upgrade of the firmware(V
1.20) of LR8400. )
3.1 LAN Visual Basic Example Programs
Note: Please set IP address of LR8400 after consulting a network administrator
when you connect LR8400 to a network.
If your computer is not connected with a network, and when the computer
is connected directly to LR8400,
LR8400 IP address are set like the following examples.
*Please use straight cable when LR8400 connect to HUB.
*Please use straight cable + cross conversion connector (Or, cross cable) when computer is connected directly to LR8400.
*Please refer to the LR8400 manual for the setting of IP address of LR8400.
Please make the setting of the communication interface "LAN" on the setting of the communication of the system of LR8400 screen.

If your computer is not connected with a network, and when the computer
is connected directly to LR8400,
Computer IP address are set like the following examples.

LAN Sample Programs 1
This program connects to LR8400 and do the sending and receiving of a command.
When push a command execute button and input the command
that wants to transmit it to the column of a command it is transmitted.
The answer is displayed to a text box, in the case of the command that is included (? ).
LAN Sample Programs 1 Visual Basic 6
LAN Sample Programs 1 Visual Basic 2005 Express Edition
LAN Sample Programs 2
This command connects to LR8400 and do the acquisition of measurement data.
Using the :MEMORY:MAXPOINT? query, this program checks whether data can be output from memory.
Next, the program specifies the channel and point for output, using the :MEMORY:POINT command.
To capture data in ASCII format use the :MEMORY:ADATA? query,
and to capture data as voltage values use the :MEMORY:VDATA? query.
LAN Sample Programs 2 Visual Basic 6
LAN Sample Programs 2 Visual Basic 2005 Express Edition
LAN Sample Programs 3
This program connects to LR8400 and take the value of each CH and attach
to EXCEL.
A data acquisition interval is able to set up it at later intervals than one second.
EXCEL needs to be installed.
GetTickCount of WinAPI is being used.
LAN Sample Programs 3 Visual Basic 6
LAN Sample Programs 3 Visual Basic 2005 Express Edition
3.2 USB Visual Basic Example Programs
Please make the setting of the communication interface "USB" on the setting of the communication of the system of LR8400 screen.

*Please refer to the LR8400 manual for the install of USB driver..
USB Sample Programs 1
This program connects to LR8400 and do the sending and receiving of a command.
When push a command execute button and input the command
that wants to transmit it to the column of a command it is transmitted.
The answer is displayed to a text box, in the case of the command that is included (? ).
USB Sample Programs 1 Visual Basic 6
USB Sample Programs 1 Visual Basic 2005 Express Edition
USB Sample Programs 2
This command connects to LR8400 and do the acquisition of measurement data.
Using the :MEMORY:MAXPOINT? query, this program checks whether data can be output from memory.
Next, the program specifies the channel and point for output, using the :MEMORY:POINT command.
To capture data in ASCII format use the :MEMORY:ADATA? query,
and to capture data as voltage values use the :MEMORY:VDATA? query.
USB Sample Programs 2 Visual Basic 6
USB Sample Programs 2 Visual Basic 2005 Express Edition
USB Sample Programs 3
This program connects to LR8400 and take the value of each CH and attach
to EXCEL.
A data acquisition interval is able to set up it at later intervals than one second.
EXCEL needs to be installed.
GetTickCount of WinAPI is being used.
USB Sample Programs 3 Visual Basic 6
USB Sample Programs 3 Visual Basic 2005 Express Edition