Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode...
Transcript of Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode...
![Page 1: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/1.jpg)
Reliability Test System
Using Data Acquisition and
Instrument Control Toolbox
March 26, 2014 Presented by: Rob Danforth
![Page 2: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/2.jpg)
Overview
• First experience with using MATLAB for DAQ
• Utilized DAQ and Instrument Control Toolboxes
• Compiled the application for multiple usage
• Tips for developing applications for others
– Object Modeling
– Object interaction with GUIs
![Page 3: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/3.jpg)
Background
•Load Cycling
•Temperature Monitoring
•Power Monitoring
Loadbank Generator Set
![Page 4: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/4.jpg)
Background Loadbank Generator Set
•More Channels
•Faster Sampling Rate
•Specialized Performance Testing
•Report Automation
•Load Cycling
•Temperature Monitoring
•Power Monitoring
![Page 5: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/5.jpg)
![Page 6: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/6.jpg)
Extend Current
![Page 7: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/7.jpg)
Extend Current MathWorks
![Page 8: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/8.jpg)
Extend Current MathWorks
. . .
![Page 9: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/9.jpg)
System
Ethernet
![Page 10: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/10.jpg)
Process Writing for a single use
Learn (Play)
Test & Compile
Data Acquisition Toolbox
•No previous experience
•Developing functioning scripts was straightforward; completed in one day
Instrument Control Toolbox
•Straightforward and easy to use
•Honesty statement: Power Meter uses MODBUS protocol. Not straight forward!
![Page 11: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/11.jpg)
Process
Learn (Play)
Object
Definition
GUI
Development
Test & Compile
Writing for a single use
Writing for others and re-use
Learn (Play)
Test & Compile
![Page 12: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/12.jpg)
Object Definition
Bitronics (Power Meter)
NIDaq (TC, AI, DIO)
Loadbank (DIO)
TestStep
TestSequence
TestProfile
Channel
MetaData
DAQConfig
![Page 13: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/13.jpg)
Object Definition NIDaq (TC, AI, DIO) What must this object do?
•Be Configured*
•Setup Channels
•Sampling Rate
•Connect to the Hardware
•Start collecting data
•Stop collecting data
*For ease of use and for distributed
applications, I chose to use an XML file to
initialize configuration of all objects
![Page 14: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/14.jpg)
Object Definition <?xml version="1.0" ?>
- <NIDaq>
<SamplingTime>2.5</SamplingTime>
<ID>DAQ8</ID>
- <ChannelList>
- <Channel>
<Name>ai0</Name>
<Device>cDAQ9184-1911520Mod2</Device>
<Type>TC</Type>
<Description>Eng_Air_In</Description>
<Display>On</Display>
<Order />
<RangeVolts />
<SensorSerial />
<SensorUnits>C</SensorUnits>
<SensorGain>1</SensorGain>
<SensorOffset>0</SensorOffset>
</Channel>
function obj = importXML(FilePath)
% importXML - Import XML file in
obj=rDAQ.NIDaq();
n=xml2struct(FilePath);
obj.SamplingTime=str2double(n.NIDaq.SamplingTime.Text);
obj.ID=n.NIDaq.ID.Text;
![Page 15: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/15.jpg)
GUI Object Interaction
A few notes about GUI Lessons Learned:
• Trickiest part of building an application for others
• Couple key concepts are critical
– Utilize a rigid structure, separating the data (object) from the GUI
– Use listeners when possible to trigger GUI refresh
![Page 16: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/16.jpg)
![Page 17: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/17.jpg)
Bitronics (Power Meter)
%% Events
events
PowerUpdate
end
notify(obj,'PowerUpdate');
%***********************************
%% ADD APPDATA & LISTENERS
%***********************************
lh3 = addlistener(cObj.Bitronics,'PowerUpdate',@(h,e)UpdateGUI(handles));
setappdata(handles.MainFig,'lh_FastUpdate',lh3);
InitGui.m
RefreshGUI.m
UpdateGUI.m
Code inside InitGui.m
![Page 18: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/18.jpg)
System Summary Data Logging
•Interactive display
•Manual or Automated Mode
•Collects slow data
•Export to CSV file
•One file per day
•Collects fast data
•Automated processing
•Substantial improvement
•Future: Email notification
![Page 19: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/19.jpg)
Summary • Data Acquisition and Instrument Control Toolbox are cost effective solutions.
They worked as advertised.
• You don’t need to be a professional programmer to make interactive and
effective programs utilized by non-MATLAB users.
• Internal development allows us to customize without compromise
• An all MathWorks approach allows us tight integration between acquisition and
analysis in an efficient manner.
• We’ve gained a high confidence and are extending to other applications
![Page 20: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/20.jpg)
MathWorks
![Page 21: Reliability Test System Using Data Acquisition and ...€¦ · •Manual or Automated Mode •Collects slow data •Export to CSV file •One file per day •Collects fast data ...](https://reader036.fdocuments.net/reader036/viewer/2022090608/605eacb4fa49e72be90bf224/html5/thumbnails/21.jpg)
MathWorks
Questions?