Faster Time to Measurement – Advances in LabVIEW...

23

Transcript of Faster Time to Measurement – Advances in LabVIEW...

Page 1: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI
Page 2: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Faster Time to Measurement – Advances in LabVIEW Instrument Control

Page 3: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Instrument Control with LabVIEW

• LabVIEW can communicate with virtually any instrument

• Tools for parsing, analyzing, and presenting instrument data

LabVIEWInstrument drivers Direct I/O

Serial Ethernet PXIGPIB VXI Other

Instrument Instrument Instrument Instrument Instrument Instrument

Instrument I/O Asst.

Page 4: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Choosing an Instrument Control Interface

Is there an instrument

driver?

Application Needs?

DevelopInstrument

Driver?

Plug and Play

IVI

SimilarDriver

Created?Modify Existing Driver

Build From Template

Direct I/O

Yes

NoAdvanced Functionality

Ease of Use

Yes

NoNo

Yes

Source CodeAvailability

Page 5: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Using Instrument Drivers

Is there an instrument

driver?

Application Needs? Plug and Play

IVI

Yes

Advanced Functionality

Ease of UseSource CodeAvailability

Page 6: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Instrument Drivers

• Organized library of functions to control instruments– Each function performs multiple instrument instructions– Grouped by operation type

• Configure• Action/Status• Data• Utility

• Tool to simplify instrument control• Set of functions that reduce development time

Page 7: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

LabVIEW Plug and Play Instrument Drivers• Combination of functionality and ease of development• Source code available

– Intuitive to use– Easy to debug

• Robust, multi-platform• Certified and Supported by NI• Use common architecture

– Increase performance and portability• Include examples• Thousands available

Page 8: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Instrument Driver Finder• Find, download and install instrument drivers from within

LabVIEW• Automatically discovers connected instruments • Direct Connection to

Instrument Driver Network (www.ni.com/idnet)

• No longer need to restartLabVIEW

Page 9: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Demo #1

• Instrument Driver Finder– Find connected instruments– Search for and install appropriate driver– Open example finder and run an example application

Page 10: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

IVI Instrument Drivers• Advanced functionality

– Simulation– Interchangeability– State caching

• Limited instrument coverage (but includes most popular instruments)

• IVI-C – Common architecture– Certified and supported by NI

Page 11: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

SignalExpress IVI-C Steps • Interactive,

non-programming environment

• Support for over 300 common stand-alone instruments

• Made possible through IVI’s interchangeability

Page 12: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Demo #2

• SignalExpress IVI-C Steps– Acquire with IVI Scope step– Frequency or time domain measurement

Page 13: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Direct I/O

Is there an instrument

driver?

Application Needs?

DevelopInstrument

Driver?

Plug and Play

IVI

Direct I/O

Yes

Advanced Functionality

Ease of UseSource CodeAvailability

No

No

Page 14: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Instrument I/O Assistant 2.0

• Parameterized Inputs– Can now change instrument

commands during run time• Improved performance• Better code generation• Available in

– LabVIEW– LabWindows/CVI– Measurement Studio

Page 15: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Demo #3

• Instrument I/O Assistant– Configure assistant with a channel parameter– Analyze data and plot on front panel

Page 16: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Creating Instrument Drivers

Is there an instrument

driver?

Application Needs?

DevelopInstrument

Driver?

Plug and Play

IVI

SimilarDriver

Created?Modify Existing Driver

Build From Template

Direct I/O

Yes

Advanced Functionality

Ease of Use

Yes

No

Yes

Source CodeAvailability

No

No

Page 17: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Project-Style Instrument Drivers

• Improved source code organization

• Uses LabVIEW library– Provides unique namespace to

avoid naming collisions– Ability to restrict access to

underlying code• Improved version management

Page 18: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Instrument Driver Project Wizard

• Interactive wizard guides you through instrument driver creation

• Reduces development time• Supports most common

instrument types

“The new Instrument Driver Project Wizard in LabVIEW 8 reduces instrument driver development time by more than a week.”

- David Fink, Software Engineer, Tektronix

Page 19: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Instrument Driver VI Creator

• Configuration-Based interface• Generates LabVIEW code• Inherits Instrument Driver

Properties– Icon banner– Library

Page 20: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Demo #4

• Instrument Driver Creation– Create Scope driver with wizard– Open and explore initialize VI– Run VI creator and create a measurement VI

Page 21: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Other Instrument Control Improvements

• NI Spy integration• Regular expression parsing• Byte ordering

– Flatten/Unflatten– File I/O

• VISA I/O name control• Refresh in dropdown• Displays open sessions

Page 22: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Advances In Instrument Control• Instrument users

– Instrument Driver Finder– Instrument I/O Assistant 2.0– SignalExpress IVI-C Steps

• Instrument driver developers– Project-Style instrument drivers– Instrument Driver Wizard– Instrument Driver VI Creator

• Miscellaneous– VISA I/O Name Control– String parsing– NI-SPY

Page 23: Faster Time to Measurement – Advances in LabVIEW ...download.ni.com/pub/techsym/washington_dc/faster_time_to... · LabVIEW Instrument drivers Direct I/O GPIB Serial Ethernet PXI

Visit the Consultation Zone

• Discuss products and configure your application• Get estimated costs or a quote to take with you• Request a FREE consultation – an NI engineer visits your

office to: – Discuss your application and specialized topics– Demonstrate customized applications, examples, and products

• Schedule an on-site seminar at your location