338303460000 Rev A IA672-04-01-Rev. I9. PROGRAMMING USING SOCKETS9.1. Socket DescriptionThe VISA (and IVI) drivers for the Genesys™ power supply with LAN are popular in theTest and Measurement world. However, some customers cannot use VISA because ofinstallation or licensing issues or because the controller (i.e.: industrial PLC) does not havesupport for VISA.If you cannot use VISA drivers, then the Genesys™ with LAN 2.0 offers socketconnections. These are a lower-level LAN protocol that are universally available in alloperating systems and programming environments.9.2. Communicating Using SocketsCommunicating through sockets involves opening a socket connection and sending SCPItext commands and reading the text responses (see section 11).The functions that a programming language uses to manage the socket is called the TCPstack. The basic socket calls for any language are: create, connect, send, read, and close.The exact functions depend on the programming language. Some socket examples can befound at the TDK-Lambda website:http://www.us.tdk-lambda.com/hp/product_html/drivers.htmThere are two types of socket protocols which may be used, TCP and UDP. Each has itsown port number, as described below.9.3. Controller Access: Single and Multiple ClientsThe web page has a security setting to limit or enable the types of connections andnumbers of control computers (called “clients”) that may be connected at one time.The single or multiple client setting may be viewed on the LAN Configure Modify webpage. See sections 6.4 and 6.6.2 for instructions on how to log in as the ‘admin’ andchange this setting.The default after a LAN reset (see section 5.4) is one client onlyNOTEThe performance of the Genesys™ LAN interface is impacted asmore web pages, ports and sockets are opened at the same time.It is recommended no more than four be open at the same time.