Www.natinst.com Integrating DAQ, IMAQ, and Motion Joe Hays Applications Engineer Thu 11:30a, 2:00p...

Post on 19-Jan-2016

213 views 0 download

Transcript of Www.natinst.com Integrating DAQ, IMAQ, and Motion Joe Hays Applications Engineer Thu 11:30a, 2:00p...

www.natinst.comwww.natinst.com

Integrating DAQ, IMAQ, and Motion

Joe Hays

Applications Engineer

Thu 11:30a, 2:00p and 4:45p

Red River (4B)

www.natinst.comwww.natinst.com

Integrating DAQ, IMAQ, and MotionIntegrating DAQ, IMAQ, and Motion

Project overview – circuit test system (CTS) Tools that simplify the integration task Balance between system monitoring and

functional circuit testing Coordination of image acquisition Portable configuration information

Project overview – circuit test system (CTS) Tools that simplify the integration task Balance between system monitoring and

functional circuit testing Coordination of image acquisition Portable configuration information

www.natinst.comwww.natinst.com

CTSCTS

Objective – circuit manufacturing verification through automated testing

Integration of data acquisition (DAQ), signal conditioning (SCXI), image acquisition (IMAQ), and motion control

Objective – circuit manufacturing verification through automated testing

Integration of data acquisition (DAQ), signal conditioning (SCXI), image acquisition (IMAQ), and motion control

www.natinst.comwww.natinst.com

CTSCTS

Camera

Motor

UUT

PC Based Acquisitions

System Vital Signs

www.natinst.comwww.natinst.com

Follow Good Software Development PracticesFollow Good Software Development Practices

Top-down verses bottom-up Define tasks for modularity Determine the main data flow of the application

• Critical paths and priorities Determine dependencies between modules Standardized junctions for inter-module

communication Remember to design with the future in mind!

Top-down verses bottom-up Define tasks for modularity Determine the main data flow of the application

• Critical paths and priorities Determine dependencies between modules Standardized junctions for inter-module

communication Remember to design with the future in mind!

www.natinst.comwww.natinst.com

Integration ToolsIntegration Tools

Multithreading Code synchronization

• Semaphores• Notifiers• Rendezvous• Queues• Occurences

VI Server

Configuration File VIs

Multithreading Code synchronization

• Semaphores• Notifiers• Rendezvous• Queues• Occurences

VI Server

Configuration File VIs

www.natinst.comwww.natinst.com

Integration Tools (cont.)Integration Tools (cont.)

www.natinst.comwww.natinst.com

Integration Tools (cont.)Integration Tools (cont.)

www.natinst.comwww.natinst.com

Integration Tools (cont.)Integration Tools (cont.)

www.natinst.comwww.natinst.com

Integration Tools (cont.)Integration Tools (cont.)

www.natinst.comwww.natinst.com

System Monitoring and Circuit TestingSystem Monitoring and Circuit Testing

Problem – resource conflict between the system monitoring and circuit testing operations

Options• More hardware• State machine• Parallel loop with Semaphore• VI Server with Semaphore

Problem – resource conflict between the system monitoring and circuit testing operations

Options• More hardware• State machine• Parallel loop with Semaphore• VI Server with Semaphore

www.natinst.comwww.natinst.com

VI Server with SemaphoresVI Server with Semaphores

www.natinst.comwww.natinst.com

Coordinated Image AcquisitionCoordinated Image Acquisition

Problem – continuous image acquisition without significant delays

Options• State machine• Parallel loop• VI Server

Problem – continuous image acquisition without significant delays

Options• State machine• Parallel loop• VI Server

www.natinst.comwww.natinst.com

VI ServerVI Server

www.natinst.comwww.natinst.com

Portable Configuration InformationPortable Configuration Information

Problem – system-independent configuration information

Options• Hard code information• Configuration dialog• Configuration files

Problem – system-independent configuration information

Options• Hard code information• Configuration dialog• Configuration files

www.natinst.comwww.natinst.com

Configuration FilesConfiguration Files

Example .cfg FileExample .cfg File

Reading the .cfg FileReading the .cfg File

www.natinst.comwww.natinst.com

Configuration Files (cont.)Configuration Files (cont.)Using the .cfg DataUsing the .cfg Data

www.natinst.comwww.natinst.com

ClosingClosing

National Instruments simplifies the integration of measurement and automation systems by providing• Superior application development environments• Comprehensive driver APIs• Advanced hardware solutions

National Instruments simplifies the integration of measurement and automation systems by providing• Superior application development environments• Comprehensive driver APIs• Advanced hardware solutions