Home

ME 402: How to Import Data from TracerDAQ/Strip Chart To

image

Contents

1. time values MATLAB cannot import them directly You can generate the relative measurement times using the Sampling Interval listed in the header of the saved data text file In this case the sampling interval is 0 01 seconds gt Ts 0 01 gt N size data 1 gt timevec Ts 0 N 1 Sampling interval sec Number of samples in the data AP A oN Time vector corresponding the data sec Option 2 Using the importStripChartData Function To automate this you can use a simple function The importStripChartData m file is available on the course website and can be used to import data directly from the data file To use the importStripChartData function it must be in the same directory as the data file or elsewhere in your MATLAB path The function has a short help documentation which can be accessed by typing help importStripChartData at the MATLAB prompt In addition a simple example is available on the course website to illustrate how to use the function to import data
2. ME 402 How to Import Data from TracerDAQ Strip Chart To MATLAB Saving Data from TracerDAQ Strip Chart You will need to save the measurements made in the Strip Chart application to a file so that MATLAB can read the values To accomplish this follow these menus e File gt Save As e Inthe dialog box select an appropriate location and a name of the text file e g ab1_run1 csv e Also in the dialog box under Save as type select csv to save the file as a comma separated value CSV file Figure 1 shows an example of the file format for voltage data data and time as a text file from the Srip Chart application For more information see page 28 of the TracerDAQ User s Manual which describes saving strip chart data to a file Header Size 7 Version 2 Sampling Interval Sampling Rate 100 Sample Count 1920 Device Serial Number Sample Number Date Tin ts PM 4190 DAQ Start 4182 PM 0 4188 PM 0 4179 PM 0 4188 PM 0 4190 Figure 1 Example of the first section of a text file exported from Logger Lite Note the header in formation and then two columns of measurements Option 1 Using MATLAB s Import Tool Wizard MATLAB has a fairly reliable import tool for dealing with text data Follow these menus e File gt Import Data e Inthe dialog box select the text file with your data e g lab1_run1 txt
3. Now the Import Wizard will walk you through a bunch of options For this simple data you should be able to accept the defaults as shown in Figure 2 210 Select Column Separator s Comma Space Semicolon Tab C Other Number of text header lines s4 Preview of C home bbing Classes 12s me402_s12 assign lab1_temp_Fristorder lab1_s12_proto lab1_run1 txt Header Size 7 Version 2 Sampling Interval 0 01 Sampling Rate 100 Sample Count 3600 Device Serial Number O0 Sample Number Date Time CHANNELO Even 1 01 10 2012 59 00 515 PM 01 10 2012 59 00 525 PM 01 10 2012 59 00 535 PM 01 10 2012 59 00 545 PM 01 10 2012 59 00 555 PM 01 10 2012 59 00 565 PM 01 10 2012 59 00 575 PM 01 10 2012 59 00 585 PM 13 gt Help lt Back _ n gt Finish IF Generate m code Cancel Figure 2 Screen capture from MATLAB s Import Wizard Note how the window on the right shows the same data in Figure 1 above The values will be stored in a Nx1 array E E oo O NNN NNN NY YY 2 3 4 5 amp 7 8 Working with the Data The voltage values are stored in a matrix assigned to the variable data but you can change that in the Import Wizard if you like After completing the import you might rename the voltage data gt voltagevec data 1 voltage data V Only the voltage values will be important using this method Because of the format of the

Download Pdf Manuals

image

Related Search

Related Contents

Smeg LV951D-2 sink  Manual plegadora grapadora NAGEL FOLDNAK  Q-Flex™ Satellite Modem Installation and Operating Handbook  Centronic TimeControl TC52  KX-TA 1232 User Manual Addendum 2793za  Yard-Man 2440-0 User's Manual  取扱説明書  Emerson EZL Series Pressure Reducing Regulator for Low Pressure Applications Data Sheet  PC5015 Bedienungsanleitung  

Copyright © All rights reserved.
Failed to retrieve file