Chapter 3 Example Programs


3.1 LAN Visual Basic Example Programs

Note: Please set IP address of LR8410,LR8416 after consulting a network administrator when you connect LR8410,LR8416 to a network.

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

*Please use straight cable when LR8410,LR8416 connect to HUB.
*Please use straight cable + cross conversion connector (Or, cross cable) when computer is connected directly to LR8410,LR8416.

*Please refer to the LR8410,LR8416 manual for the setting of IP address of LR8410,LR8416.

Please make the setting of the communication interface "LAN" on the setting of the communication of the system of LR8410,LR8416 screen.


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





LAN Sample Programs 1

This program connects to LR8410,LR8416 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

(The Visual Basic 2005 Express Edition program,
You can use it automatically converts any Visual Basic 2008,2010,2012 Express Edition.)


LAN Sample Programs 2

This command connects to LR8410,LR8416 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

(The Visual Basic 2005 Express Edition program,
You can use it automatically converts any Visual Basic 2008,2010,2012 Express Edition.)


LAN Sample Programs 3

This program connects to LR8410,LR8416 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

(The Visual Basic 2005 Express Edition program,
You can use it automatically converts any Visual Basic 2008,2010,2012 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 LR8410,LR8416 screen.


*Please refer to the LR8410,LR8416 manual for the install of USB driver..




USB Sample Programs 1

This program connects to LR8410,LR8416 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

(The Visual Basic 2005 Express Edition program,
You can use it automatically converts any Visual Basic 2008,2010,2012 Express Edition.)


USB Sample Programs 2

This command connects to LR8410,LR8416 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

(The Visual Basic 2005 Express Edition program,
You can use it automatically converts any Visual Basic 2008,2010,2012 Express Edition.)


USB Sample Programs 3

This program connects to LR8410,LR8416 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

(The Visual Basic 2005 Express Edition program,
You can use it automatically converts any Visual Basic 2008,2010,2012 Express Edition.)