Example Code

How to connect to a DP41-B / INF-B panel display in Labview

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Instrument Control

    Software

  • LabVIEW

    Driver

  • NI VISA

Code and Documents

Attachment

Overview

This covers 2 seemingly different meters the DP41-B (from Omega), and the INF-B (from NewportUS). Both are in fact the same display, the DP41-B from Omega is simply a rebrand of the NewportUS panel display. 

 

Requirement

Software:
    Labview 2012 (or compatible)
Hardware:
    DP41-B / INF-B 

Steps to Implement or Execute Code

 

Set ups is dictated laregley from the configuration of the display. Some interal set up that needs to be covered:

 

Comm

-Baud: Speed of communication

-Parity: odd, even, none

-stop bit: 1 or 2

 

Communication is again always limited to 7 character ASCII (7 data bytes).

 

Additional Information or References

 78.png

 

 

Set ups is dictated laregley from the configuration of the display. Some interal set up that needs to be covered:

 

Comm

-Baud: Speed of communication

-Parity: odd, even, none

-stop bit: 1 or 2

 

Communication is again always limited to 7 character ASCII (7 data bytes).

 

The next big issue will be making sure that a commands are terminated. This is done by using a properity node. The one included in the example should work, but

this http://digital.ni.com/public.nsf/allkb/862567530005F09C862565BE005AB500 whitepage will also tell you how to.

 

The information on the display is aquired vis "*nnX01"

'*' is the default leading character,

"nn" is the station number

"X01" is the internal register for display.

 

Your response will look like either

 

"*nnx0100xx.xx" or

"*xx.xx"

 

Depending if echo was turned on or off on the meter.

 

See VI for more information

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.