1 / 19

Hu Shaoyan DSA Lab 23 Jan 1999

Hu Shaoyan DSA Lab 23 Jan 1999. Contents. Project Overview General Purpose Interface Bus Introduction to LabVIEW TCP/IP Sockets Future Works. Overview.

coy
Download Presentation

Hu Shaoyan DSA Lab 23 Jan 1999

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Hu Shaoyan DSA Lab 23 Jan 1999

  2. Contents Project Overview General Purpose Interface Bus Introduction to LabVIEW TCP/IP Sockets Future Works

  3. Overview The Virtual Lab allows students to carry out interactive experiments over the Internet as if they are working in the actual laboratories. The core of the Virtual Laboratory is a cluster of general-purpose and/or specialized instruments interfaced to a set of personal computer systems connected to the Internet.

  4. Block Diagram

  5. General Purpose Interface Bus (GPIB) GPIB History Signals & Lines Configuration

  6. GPIB History

  7. GPIB Signals & Lines Data Lines 8 data lines carry both data and command messages. Handshake Lines 3 lines asynchronously control the transfer of message bytes between devices. Interface Management Lines 5 lines manage the flow of information across the interface.

  8. GPIB Configuration • Devices are usually connected with a shielded 24-conductor cable with both a plug and receptacle connector at each end. You can link devices in either a linear configuration, a star configuration or a combination of the two. • To achieve the high data transfer rate for which GPIB was designed, the following restrictions are typical for normal operation: • A maximum separation of 4m between any 2 devices and an average separation of 2 m over the entire bus • A maximum total cable length of 20 m • No more than 15 device loads connected to each bus, with no less than two-thirds powered on

  9. Linear & Star Configurations (GPIB) Linear Configuration Star Configuration

  10. Introduction to LabVIEW (LABoratory Virtual Instrument Engineering Workbench) Graphical Programming Language Virtual Instrument

  11. Graphical Programming Language G G is the programming language at the heart of LabVIEW. G, like C or BASIC, is a general-purpose programming language with extensive libraries of functions for any programming task. G differs from those programming languages in one important respect. Other programming languages are text-based while G is graphical.

  12. Virtual Instruments • G Programs are called virtual Instruments (VIs) because their appearance and operation can imitate actual instruments. • A LabVIEW VI consists of a front panel and a block diagram. • G uses four structures to execute code. • For Loop, • While Loop, • Case Structure , • Sequence Structure.

  13. Front Panel & Block Diagram

  14. G Structures total number of iterations one of the selector values frame number current number of completed iterations selector condition Case Structure Sequence Structure For Loop While Loop

  15. TCP/IP Sockets • Why Sockets? • Stages in Establishing a TCP Connection • Perl and C • Java

  16. Why Sockets? To provide an interface between your application and the network you need a socket. Most of the communication in a client-server application is point-to-point, where the endpoint of such communication is an application(client or server). A socket acts as an endpoint for communication between processes on a single system or on different systems.

  17. Establishing a TCP Connection Perl and C Server Side socket bind listen accept read write write read socket connect Client Side

  18. Establishing a TCP Connection Java Server Side ServerSocket accept DataInputStream DataOutputStream DataOutputStream DataInputStream Socket Client Side

  19. Future Works Authentication mechanism is needed to enable the administration of the user accounts of the Virtual Laboratory. Conflict should be prevented when two or more people try to control the same equipment at the same moment. The refreshing rate of the image captured by camera is supposed to be improved.

More Related