Subscribe to Test & Measurement World
RSS
Reprints/License
Print
Email
Average Rating:
  • (0)
    Rate this:
  • Linux controls instruments through Ethernet

    Martin Rowe, Senior Technical Editor -- Test & Measurement World, 4/1/2006 2:00:00 AM


    To learn more about using VXI-11 and direct socket communication, download "Using Linux to control LAN-based instruments," by Stefan Kopp of Agilent Technologies. The ZIP file includes source-code examples for VISA and socket communication. You can also find more information in "Migrating to Ethernet" from the October 2004 issue of Test & Measurement World.

    Because every PC built in the last several years has an Ethernet port, the bus has become popular for controlling instruments—you can connect test equipment directly to the PC without the need for an interface card. In addition, many manufacturers provide instrument drivers for the Windows operating system, making it easy for engineers to set up and run an Ethernet-based test system.

    But if you prefer the Linux operating system, setting up a test system is slightly more difficult. Instrument drivers are not as commonplace for Linux, so you need to find another way to communicate with instruments through the Ethernet port. You have two communication software options: the Virtual Instrument Software Architecture (VISA) driver or a direct communication through a transmission control protocol (TCP) socket.

    You can use VISA and VXI-11 or direct socket communication to control instruments over Ethernet.

    Developed by the VXIplug&play Alliance, VISA has an extension called VXI-11 that lets application programs communicate with instruments over Ethernet. The advantage of VISA and VXI-11 is that you can use the same code that you use for IEEE 488 communication. You just have to change one line of code to tell VISA to communicate over Ethernet. LAN Extensions for Instrumentation (LXI) enhances VISA, but you can use VISA with any instrument that has an Ethernet port. The figure shows the protocol stack for VISA and VXI-11. Your test application and VISA reside at the application layer and must communicate through all seven layers to reach your instrument.

    Your second option is to bypass the session and presentation layers by communicating directly to the TCP layer using direct socket communication. Socket communication requires less code than using VISA, but the code isn't compatible with VISA or IEEE 488.

    Average Rating:
  • (0)
    Rate this:
  • RSS
    Reprints/License
    Print
    Email
    Similar Content from T&MW

    No related content found.

    »MORE

    • 0 rated items found.

    Datasheets.com Electronic Parts & Inventory Search

    185 million searchable parts
    • Part Number
    • Description
    • Inventory
    • Products
    • Manufacturers
    Canon Resource Center

    Featured Company


    Most Recent Resources

    Featured Job On
    Scroll for More Jobs
    Advertisement
    More Content
    • Blogs
    • Webcasts

    Sorry, no blogs are active for this topic.

    » VIEW ALL BLOGS RSS
    • All


    Advertisement
    Advertisement
    About Us   |   Advertising Info   |   Site Map   |   Contact Us   |   FREE Subscription
    © 2011 UBM Electronics . All rights reserved.
    Use of this Web site is subject to its Terms of Use | Privacy Policy

    Feedback Form
    Feedback Analytics