Chapter 2
Measurement Studio .NET Class Libraries
Measurement Studio User Manual
2-14
ni.com
•
An
EngineeringFormatInfo
class that defines a custom formatter
to format numeric values as strings with engineering notation and
International System of Units (SI) prefixes and symbols.
•
A
PrecisionWaveformTiming
class that you can use to represent
the timing of an analog or digital waveform that is accurate to the
nearest 2-64 second.
•
An
AnalogWaveformCollection
class that contains a strongly
typed collection of
AnalogWaveform<TData>
objects; one object for
each channel and record combination. You can access these objects
through the 1D indexer or the 2D indexer.
Tip
For more detailed information about the Common class library, refer to the
National Instruments
section in the
NI Measurement Studio Help
.
Data Transfer
You can use the NetworkVariable class library or the DataSocket class
library to transfer live measurement data between applications over a
network. You can use NetworkVariable or DataSocket to exchange
different types of data between Measurement Studio, LabVIEW,
LabWindows/CVI, and other applications that support NI-Publish
Subscribe Protocol (
psp:
). NetworkVariable is the preferred method for
transferring data between these applications, and, in these cases,
NetworkVariable supersedes DataSocket. You can also use
NetworkVariable and DataSocket to exchange different types of data
between OLE for Process Control (
opc:
) servers. Exchanging data
between Measurement Studio applications and OPC servers with
NetworkVariable requires LabVIEW DSC Run-Time System. Use
DataSocket to communicate directly with an OPC server.
Network Variable
The Measurement Studio Network Variable .NET class library includes
three namespaces:
NationalInstruments.NetworkVariable
,
NationalInstruments.NetworkVariable.WindowsForms
, and
NationalInstruments.NetworkVariable.WebForms
. You use the
Network Variable class library to transfer live measurement data between
applications and servers over the network. You use
WindowsForms
and
WebForms
data sources to expose Network Variable data items that you
can bind to properties of a Windows Forms or a Web Forms control.