EPM2000 LabVIEW Building Applications Instructions



Similar documents
Programming and Using the Courier V.Everything Modem for Remote Operation of DDF6000

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

Ethernet. Customer Provided Equipment Configuring the Ethernet port.

1.Eastron SDM220Modbus Smart Meter Modbus Protocol Implementation V1.0

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

Introduction: Implementation of the MVI56-MCM module for modbus communications:

CONCEPT1 RS232 COMMUNICATION

SYMETRIX SOLUTIONS: TECH TIP August 2015

Single channel data transceiver module WIZ2-434

CHAPTER 11: Flip Flops

Modbus Communications for PanelView Terminals

EMG Ethernet Modbus Gateway User Manual

HOMEWORKS. RS-232 Protocol. Data Protocol for Communicating with Lutron's HOMEWORKS System

LTM-1338B. Plus Communications Manual

Technical Support Bulletin Nr.18 Modbus Tips

Modbus and ION Technology

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

AN141 SMBUS COMMUNICATION FOR SMALL FORM FACTOR DEVICE FAMILIES. 1. Introduction. 2. Overview of the SMBus Specification. 2.1.

Global Water Instrumentation, Inc.

ACU-1000 Manual Addendum Replacement of CPM-2 with CPM-4

NortechCommander Software Operating Manual MAN R6

FAQs. XAP Frequently Asked Questions. Software/Configuration

Modbus and ION Technology

SYMETRIX SOLUTIONS: TECH TIP February 2014

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

µtasker Document FTP Client

Driver Installation and Hyperterminal Operation of iload Digital USB Sensors

SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual

2.0 System Description

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

Lab 3: Introduction to Data Acquisition Cards

Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual

Smarthome SELECT Bluetooth Wireless Stereo Audio Receiver and Amplifier INTRODUCTION

BLOCK OCCUPANCY DETECTOR WITH SEMAPHORE OPERATION BOD1/DAP4-BR

Using Logix5000 Controllers as Masters or Slaves on Modbus

PROLOGIX GPIB-USB CONTROLLER USER MANUAL VERSION May 14, 2013 PROLOGIX.BIZ

LEN s.r.l. Via S. Andrea di Rovereto 33 c.s CHIAVARI (GE) Tel Fax mailto: len@len.it url: http//

Time functions. Functions of the relay. instabus EIB Application program description. September A1 Binary 510D01

Process Control and Automation using Modbus Protocol

IP Interface for the Somfy Digital Network (SDN) & RS485 URTSII

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

Serial Communications

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

APR-PRT3 Printer Module: C-Bus Programming Instructions

Software User Guide UG-461

OWNERS MANUAL. Status Monitor. for Windows 95, 98, ME, NT 4, 2000 & XP. SIGNALCRAFTERS TECH, INC.

4511 MODBUS RTU. Configuration Manual. HART transparent driver. No. 9107MCM100(1328)

Communication Protocol

GETTING STARTED WITH LABVIEW POINT-BY-POINT VIS

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

Master-Touch and ValuMass. Modbus Communications. INSTRUCTION MANUAL (Rev. 2.1)

HCS-3300/3302/3304 USB Remote Programmable Laboratory Grade Switching Mode Power Supply

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

B&K Precision 1785B, 1786B, 1787B, 1788 Power supply Python Library

Below is a diagram explaining the data packet and the timing related to the mouse clock while receiving a byte from the PS-2 mouse:

Storing Measurement Data

RS-485 Protocol Manual

SentryPlus. Shutdown Management Software for Windows. User s Manual

EMF16 and Model 201 Graphics Software for Win 98/NT/ME/2K/XP/Vista/Win7/Win8 and Win10

eztcp Technical Document Modbus/TCP of eztcp Caution: Specifications of this document may be changed without prior notice for improvement.

HAC-LM Series Low Power Data Radio Module

ABUS WIRELESS ALARM SYSTEM

R&S AFQ100A, R&S AFQ100B I/Q Modulation Generator Supplement

APPLICATION NOTE # Using Sage SMOS for VoIP Testing, IP Phone to IP Phone TABLE OF CONTENTS

VisorALARM-Manager Application Quick Guide. (Ver. 1.3) Dm 380-I. V:3.0

EVAL-UFDC-1/UFDC-1M-16

GTS-4E Hardware User Manual. Version: V1.1.0 Date:

Serial Communications / Protocol in AirTest Products

Global Monitoring + Support

Keep it Simple Timing

RF Etch Monitor. Introduction

Automatic Telephone Dialer TD-101(W)

Kepware Technologies Optimizing KEPServerEX V5 Projects

Hands-On: Introduction to Object-Oriented Programming in LabVIEW

TruePort Windows 2000/Server 2003/XP User Guide Chapter

Virtual Integrated Design Getting started with RS232 Hex Com Tool v6.0

SenseLink TM. End-Point Controller. Addendum

mdm-mp3 minidirector with MP3 Player

AN601 I2C 2.8 Communication Protocol. SM130 SM130 - Mini APPLICATION NOTE

CLOUD DCM1. Serial Control Protocol

PDA Software Manual For the Windows CE and Mobile Operating Systems

Contents. 1.2 Software Installation... 1

Appendix B RCS11 Remote Communications

Transmitter Interface Program

Rev GSM base station. Installation instructions

Getting Started with IntelleView POS Administrator Software

ProSafe Plus Switch Utility

DUAL PUMPS COMMUNICATIONS CABLE

Programmer/Controller

Part Number Revision A, January Monitoring System Rack Configuration and Utilities Guide

Pop-up Surveillance Camera On Your TV

Site Master S251B Antenna and Cable Analyzer

What is LOG Storm and what is it useful for?

MODEL 5010 DUAL CHANNEL SMOKE/FIRE DETECTION MODULE

Disturbance Recoder SPCR 8C27. Product Guide

NG360 Inclinometer with digital RS485 communications port and 360 degree measuring range

Table 1 below is a complete list of MPTH commands with descriptions. Table 1 : MPTH Commands. Command Name Code Setting Value Description

IP Link Device Interface Communication Sheet

ZME_05459 Wall Blind Control Set for Busch-Jaeger DURO 2000 Firmware Version : 1.8

PLC Support Software at Jefferson Lab

Transcription:

EPM2000 LabVIEW Building Applications Instructions Copyright (C) 2000 Molectron Detector, Incorporated

Introduction The EPM2000 LabVIEW VI library is a collection of 57 configuration VIs that allow the construction of a wide variety of custom applications in a short time. The library contains VIs that help the EPM2000 function via remote it does not contain plotting, charting, or file routines which are currently available in LabVIEW. Regularly check the Molectron website (http://www.molectron.com/) for updates to this and other software. The beginning of any application is to compose the Status Cluster, which defines how the computer communicates with the EPM2000. The VI EPM2000 Compose Status Cluster.vi does exactly that. In the case of GPIB, set the Boolean value at the Instrument Available at GPIB? Terminal to true the VI will automatically search the GPIB bus for the instrument. In the case of RS-232, the Boolean value at the Instrument Available at RS-232? Terminal must be set to true and the Serial Port Settings cluster needs to be properly set up. Once a Status Cluster is composed, VIs from the library can be strung in sequence to form any application. Some are standalone they require no arguments. Others (such as EPM2000 Set Units.vi) require arguments. The easiest way to supply most of these arguments is to use the LabVIEW wiring tool to form a constant at the terminal. In most cases, the constant will supply all possible values for the terminal. Any VI may be more thoroughly examined by double-clicking it. Sometimes, because of how the EPM2000 processes commands, a delay might be required. In such a case, use the EPM2000 Command Delay.vi, which preserves the data dependency of the Status Cluster. The EPM2000 Memory Store.vi and the EPM2000 Memory Recall.vi are useful when frequently working with different settings in the same program. It is possible to program up to four different instrument states and save them to respective memory locations in the EPM2000. Recalling a stored state from EPM2000 memory is much faster than reprogramming the same variables via remote. Below are examples showing some common implementations. EPM2000 Compose Status Cluster.vi Molectron Detector, Incorporated Page 2

Example 1 This is a diagram of a VI that locates the EPM2000, sets both channels to Normal mode, sets Channel A to measure Joules in the 3 Joule range, sets Channel B to measure volts in the 3 volt range, sets the pyrometer responsivity for both channels to 2.000 (Channel B, measuring voltage, doesn t care about its Rv setting for now), and sets both triggers for an internal level of 4% of full range. Note: Delays had to be added to assure that all commands are properly processed by the EPM2000. This VI is saved as Example1.vi. Example 2 The VI in this example reads the front panel of the EPM2000 twice every second and reports the value to the String Indicator. It uses EPM2000 Query Reading.vi, which is useful for quick frontpanel readings. The output string can be parsed by a custom routine and the data used to fill an array, plot to a chart, or trigger any other sort of function. When the Halt Sampling button is pressed on the front panel, the VI stops sampling and returns the EPM2000 to local control. It is useful to always return the VI to local control at the end of an application. During GPIB communications, the EPM2000 front panel is disabled and the only way to recover (outside of programmatic control) is to switch the instrument on and off. This, in turn, deletes buffer contents and may also disturb instrument settings. This VI is saved as Example2.vi. Molectron Detector, Incorporated Page 3

Example 3 Using the EPM2000 Query Reading.vi to read data from the EPM2000 is adequate for quick measurements. Often, however, a series of measurements perhaps an entire statistical series (minimum, maximum, standard deviation, and mean of a series of pulses) must be taken. The most appropriate VI to use when faced with this situation is EPM2000 Read Buffer.vi. In this example, the EPM2000 must be prepared to transmit the desired data in binary form from its buffer. EPM2000 Read Buffer.vi only interprets binary data. The following VI (saved as Example3A.vi) performs this task. Once preparations are complete, the EPM2000 is ready to receive five pulses. After the five pulses have been injected, executing Example3B.vi dumps the EPM2000 buffer and interprets the data. Note: This example uses pulses of approximately 2.4 volts (approximately 1.17 Joules). The output should appear similar to the image of the front panel in Example 3B, although the actual data may be different. Activating scrollbars in the output window make it is possible to see much more data than what currently appears in the viewing area. Note: The values of the Instrument Cluster that appear in the Example 3B diagram are hard-coded. Ordinarily, the Instrument Cluster data already exists in the program and is accessible. In this example, however, the Instrument Cluster is composed after the EPM2000 buffer is dumped. Re-establishing the EPM2000 address while the buffer contains data may result in loss of data due to the GPIB search algorithm. Molectron Detector, Incorporated Page 4

The EPM2000 Read Buffer.vi can be used to repeatedly dump and translate the buffer. Example 4 Example 4 demonstrates how to collect data from the EPM2000 at a regular rate (which is 4 Hz in this example). It also shows how to average and determine Standard Deviations, and display the collected data on a real-time display. Example 4: Front Panel Molectron Detector, Incorporated Page 5

Example 5 Example 5 shows how to collect data from the EPM2000 at a pulse-to-pulse rate. It also shows how to save the data to a file for later analysis, and display the collected data on a real-time display. Example 5: Front Panel Molectron Detector, Incorporated Page 6

List of Included VIs EPM2000 Command Delay.vi Waits a specified number of milliseconds before continuing, forcing a hold on the Instrument Status line in the process. EPM2000 Compose Status Cluster.vi Most of the VIs in this library utilize a cluster named Instrument Status, which contains communication details about the EPM2000. EPM2000 Compose Status Cluster allows a user to set those communication values from the beginning. EPM2000 Current State.vi Queries the EPM2000 and reports back the current state of several instrument options. The data are clustered out and can be pulled by name. EPM2000 Get String.vi Retrieves an ASCII string from the EPM2000, using the communications protocols derived from the Status Cluster. Most VIs communicating with the EPM2000 will use this VI. EPM2000 Identification.vi Returns Instrument Name, Firmware Revision, and Firmware Date. EPM2000 Memory Recall.vi Determines a memory location internal to the EPM2000 (1, 2, 3, or 4). This memory location contains settings for the EPM2000 Trigger Source, Trigger Level, Trigger Holdoff, Average Batch Size, Range, Pyroelectric Rv, Units, Display Speedup, Line Frequency, Statistics Batch Size, and Statistics Restart Mode. This VI reassigns those remembered settings. EPM2000 Memory Store.vi Determines a memory location internal to the EPM2000 (1,2, 3, or 4). This memory location will then contain the EPM2000 Trigger Source, Trigger Level, Trigger Holdoff, Average Batch Size, Range, Pyroelectric Rv, Units, Display Speedup, Line Frequency, Statistics Batch Size, and Statistics Restart Mode. Use EPM2000 Memory Recall.vi to retrieve these settings. EPM2000 Query Average Batch Size.vi Determines the size (2 99) of the average batch. EPM2000 Query Buffer Format.vi Determines if the EPM2000 output buffer is set to circular or fixed. EPM2000 Query Communications Parameters.vi Determines the values of the Communications Parameters: baud rate, parity and number of stop bits for the RS-232 interface as well as GPIB address, if the GPIB function exists. Molectron Detector, Incorporated Page 7

EPM2000 Query Mode.vi Determines which mode (Statistics, Average, Normal) is currently being used by the EPM2000. EPM2000 Query Output Depth.vi Determines the depth of the Output Buffer in bytes. EPM2000 Query Output Format.vi Determines whether the EPM2000 output will be of the Binary, ASCII, or ASCII+ form. EPM2000 Query Probe Type.vi Determines which probe the EPM2000 expects to read: Thermopile, Pyroelectric, or Silicon. EPM2000 Query Range.vi Reads the EPM2000 range and measurement unit and also reads the maximum and minimum possible ranges given the current units. EPM2000 Query Reading.vi Reads the values and units displayed on the LCD, and returns a string output. EPM2000 Query Responsivity.vi Queries both the thermopile and pyroelectric responsivity (conversion factor). Responds into a cluster. EPM2000 Query Statistics Batch Size.vi Determines the size of the Statistics Batch for the specified channel. EPM2000 Query Statistics Restart Mode.vi Reads the Statistics Restart Mode: Manual or Automatic. If the EPM2000 is set to Manual restart mode, use EPM2000 Statistics Start to initiate a new batch. EPM2000 Query Statistics Send Data.vi Determines data that will be transmitted from the EPM2000 during live collection: Average, Minimum Value, Maximum Value, Standard Deviation, and/or Header Data. EPM2000 Query System Parameters.vi Determines the values of the System Parameters: Audio Alarm, Backlight, Speedup Function, and Operating Line Frequency. EPM2000 Query Trigger Holdoff.vi Determines the time (ms) the EPM2000 will wait after a valid trigger before looking for the next valid trigger. EPM2000 Query Trigger Level.vi Determines the level (% of full range) at which the specified EPM2000 channel triggers for a valid pulse. Molectron Detector, Incorporated Page 8

EPM2000 Query Trigger Source.vi Determines the source of the EPM2000 channel trigger: Internal, External (positive rising edge), Slaved to the trigger bus, or External (negative rising edge). EPM2000 Query Units.vi Determines which units the EPM2000 channels are measuring: Joules, Volts, Watts, or frequency in Hertz. EPM2000 Read Buffer.vi Retrieves and interprets the contents of the EPM2000 data buffer. Note: Buffer contents must be in binary form. EPM2000 Reset Unit.vi Sends a reset to the EPM2000, which releases the EPM2000 from GPIB control. Note: The next GPIB command reinstates control, and resets the thermopile responsivity. EPM2000 Restore Factory Defaults.vi Sets the EPM2000 to factory default values (as specified in the operator manual). EPM2000 Return to Local Control.vi Places the EPM2000 into local control. EPM2000 Self Test.vi Tests the EPM2000. Default output is FALSE, so Self Test returns FALSE if there is a problem e.g., wrong GPIB address communicating with the EPM2000. EPM2000 Send String.vi Sends an ASCII command to the EPM2000, using the communication protocols derived from the Status Cluster. Most VIs communicating with the EPM2000 use this VI. EPM2000 Set Average Batch Size.vi Allows the user to select the batch quantity for Average mode. EPM2000 Set Average Mode.vi Sets a specified EPM2000 channel to Average mode. EPM2000 Set Buffer Format.vi Sets the EPM2000 output buffer to circular or fixed. EPM2000 Set Communication Parameters.vi Sets the values of the Communications Parameters: baud rate, parity and number of stop bits for the RS-232 interface as well as GPIB address, if the GPIB function exists. Parameters that have been remotely set do not take effect until the EPM2000 resets, so the final act of the VI is to reset the EPM2000. Note: If undesired, this final reset may be removed. Molectron Detector, Incorporated Page 9

EPM2000 Set Datastream.vi Sets the EPM2000 output to either continuous or deactivate, according to the input choice. EPM2000 Set Mode.vi Sets the specified EPM2000 channel to Statistics, Batch, or Normal mode. EPM2000 Set Normal Mode.vi Sets a specified EPM2000 channel to Normal mode. EPM2000 Set Output Depth.vi Sets the number of bytes the Output Buffer will hold. Once the Output Buffer is full, new data either replaces old data or is discarded. Note: Use EPM2000 Query Buffer Format.vi to determine data disposition. EPM2000 Set Output Dump.vi Sets the EPM2000 output to non-continuous and instructs the EPM2000 to immediately dump its buffer. Note: This VI can be modified to not change the EPM2000 data streaming. However, if the modified VI is executed on an EPM2000 with output set to continuous, no valid result will occur. EPM2000 Set Output Format.vi Sets the EPM2000 output mode to Binary, ASCII, or ASCII+. The manual contains more detailed information about the nature of the output data in those modes. EPM2000 Set Pyro Responsivity.vi Sets the pyroelectric responsivity (conversion factor). See the VI front panel for details regarding the upper and lower limits of the Rv. It may be convenient to copy the controls from the same front panel for other applications. EPM2000 Set Range.vi Sets the possible Joule, Volt, or Watt ranges, and the appropriate units, for the EPM2000. Example: Switching from 10 V range to 3 J range first sets the unit to Joules and then selects the range if the Responsivity permits such a range. Note: Watts requires that a PowerMax or equivalent probe be attached to the EPM2000. EPM2000 Set Statistics Batch Size.vi Allows the user to select the batch quantity for Statistics mode. EPM2000 Set Statistics Mode.vi Sets a specified EPM2000 channel to Statistics mode. EPM2000 Set Statistics Restart Mode.vi Sets Statistics batch to either restart automatically, or hold the current batch until restarted manually. Molectron Detector, Incorporated Page 10

EPM2000 Set Statistics Send Data.vi Instructs the EPM2000 as to which data to transmit during live collection: Average, Minimum Value, Maximum Value, Standard Deviation, and/or Header Data. EPM2000 Set System Parameters.vi Sets the values of the System parameters: Audio Alarm, Backlight, Speedup Function, and Operating Line Frequency. EPM2000 Set Thermo Responsivity.vi Sets the thermopile responsivity (conversion factor). See the VI front panel for details regarding the upper and lower limits of the Rv. It may be convenient to copy the controls from the same front panel for other applications. EPM2000 Set Trigger Configuration.vi Sets three major trigger variables for the specified channel of the EPM2000. EPM2000 Set Trigger Holdoff.vi Sets the amount of time (ms) the EPM2000 waits after a valid trigger before looking for the next valid trigger. EPM2000 Set Trigger Level.vi Sets the level (% of full range) at which the EPM2000 triggers for a valid pulse. EPM2000 Set Trigger Source.vi Sets the EPM2000 to look for one of the following triggers: Internal (use EPM2000 Set Trigger Level.vi to determine the appropriate level), a positive edge at the External Trigger jack, a negative edge at the External Trigger jack, or Slaved to the Trigger Bus. The EPM2000 does not permit both channels to be set to slave via remote from the Trigger Bus. EPM2000 Set Units.vi Sets the EPM2000 channel to read Volts, Joules, Watts, or frequency in Hertz. EPM2000 Set Zero.vi Directs the EPM2000 to use the current thermopile input as the zero offset. This VI has no effect while taking samples from a pyroelectric probe. EPM2000 Statistics Start.vi Sends a restart for statistics command to the EPM2000 and resets the count if the EPM2000 hasn't finished counting. This VI also places the EPM2000 in Statistics mode, if it isn't already in that mode. EPM2000 vi Tree.vi Diagrams all the VIs in the EPM2000 library and groups them according to their function. Molectron Detector, Incorporated Page 11

Search GPIB.vi Searches the GPIB bus using *IDN to query every address searching for the specified string value in the response. Any instrument or device on the GPIB bus which responds to the *IDN? command can use this VI. Serial Setup.VI Initializes the serial port and then uses the *IDN? command to determine if an EPM2000 is attached. Molectron Detector, Incorporated Page 12