|
This type of connection with an Active X allows to connect the X64 Terminals to any application in a few minutes. We are going to describe step by step a connection to a program in VB. The first step is opening a new application. After that, it is necessary to install the EasyTerm component. |
|
|
|
A new application is opened in VB and a new component is installed in a Form.
|
|
The two screens must be filled in, the fist one asks for the Ref. and the Qt. And the second shows a message of error.
Screen 2:
|
|
After this, you can put some code in Form: EasyTerm1.SendScreenToTerminal TerminalId, 2 End If If Screen = 2 Then EasyTerm1.SendScreenToTerminal TerminalId, 1 End If End Sub Private Sub EasyTerm1_ReceiveReset(TerminalId As String) EasyTerm1.SendScreenToTerminal TerminalId, 1 End Sub Private Sub Form_Load() EasyTerm1.InitializeCom End Sub Private Sub Form_Unload(Cancel As Integer) EasyTerm1.TerminateCom End Sub The emulartor is on this website, at the Download link.
A key is
Another key is:
|
|
|
|
EasyTerm ActiveX Functions |
|
Private Sub EasyTerm1_ReceiveData(TerminalId As String, Screen As Integer, Answer As String) TerminalId – Name of the Terminal which sent the data. Functions Public Function WriteDataToMatrix(TerminalId As String, Screen As Integer, Line As Integer, Texto As String) Parameters: Parameters: Public Sub TerminateCom() It closes the serial port. Public Sub SendScreenToTerminal(TerminalId As String, Screen As Integer) It sends to the 'TerminalId' terminal the 'Screen' screen. Public Sub ChangeFilename(Filename As String) All the examples referred above can be seen with the Emulator. On the Emulator the XRTN program must be installed, then the Emulator must be executed and after that the program must be started in VB. |
![]() |



