Home
Personal Daq User's Manual
Contents
1. 1 7 Overview Note If you used the Personal Daq Quick Start document 491 0940 to startup your unit you may choose to skip this chapter Note Chapter 3 Hardware Setup contains detailed information pertaining to hardware issues This chapter provides the steps to connect power up and run a simple Personal Daq system consisting of one Personal Daq Unit and one PDQ module Chapter 3 discusses setting up more involved Personal Daq systems The basic Startup Steps are 1 Inspect Your System 2 Install Software 3 Install Hardware a Mount Personal Daq Modules to DIN Rail option b Connect PDQ Module option c Connect Personal Dag System to your computer d Connect Channel Inputs 4 Start Personal DaqView Configure System and Collect Data Inspect Your System If you have not already done so check your package contents for damage that may have occurred during shipment Immediately report any damage to the shipping agent and your sales representative Retain all shipping materials in case the unit must be returned to the factory Personal Daq shipments typically contain combinations of the following items depending on the order Your order may include additional items Item Description Personal Daq Personal Daq 54 55 or 56 USB Data Acquisition System 1022 0601 Universal Installation CD The CD includes several program install options Note that the CD includes user manuals 491 0940 Personal Dag Quick Sta
2. 5 Hints and Tips 13 Channel Configuration Window 7 When using Personal Daq modules to acquire data computer energy save modes can cause false data readings Prior to using Personal Daq modules ensure your computer s energy save mode is disabled If needed consult your computer s user manual to disable energy save power suspension modes Overview Personal DaqViewXL is a software component add in that installs into Microsoft Excel and provides complete setup and data acquisition within Excel under Windows 98 Me 2000 and XP Acquired data is immediately placed in an active spreadsheet analyzed and graphically displayed Personal DaqViewXL provides e data acquisition and analysis e report printouts of data text and graphics e strip chart graphics for real time data display e conversion of data to engineering units e data editing e formula creation After Personal DaqViewXL has been installed you can configure your data acquisition system easily by accessing the desired window from the program s toolbar i e with use of the Configure Devices Configure Channels or Configure Acquisition buttons Each column in the channel configuration window corresponds to a specific parameter in the data acquisition system Note that the channels can be configured individually In regard to creating data reports you can embed Excel spreadsheet objects directly into a word processing program add text and p
3. SSSSOSOSCSCSCSCSCSC C CSC C C C SCS Handle Handle to the device to which the ADC software trigger is to be applied DerrNoError No error Returns daqAdcSetTrig daqAdcSetAcq Used With Description daqAdcSoftTrig is used to send a software trigger command to the Personal Daq device This software trigger can be used to initiate a scan or an acquisition from a program after configuring the software trigger as the trigger source This function may only be used if the trigger source for the acquisition has been set to DatsSoftware with the daqAdcSetTrig function dagqAdcTransferBufData DLL Function dagAdcTransferBufData DaqHandleT handle PVOID buf DWORD scanCount daqAdcBufferxXferMask bufMask PDWORD retCount dagAdcTransferBufData DaqHandleT handle PVOID buf DWORD scanCount DagAdcBufferxXferMask bufMask PDWORD retCount Visual BASIC VBdagAdcTransferBufDataSingle amp ByVal handle amp buf ByVal ScanCount amp ByVal transferMask amp retCount amp dagqAdcTransferBufData handle DaqHandleT buf pointer scanCount DWORD bufMask DagAdcBufferxXferMask retCount DWORD Parameters handle Handle to the device for which the ADC buffer should be retrieved buf Pointer to an application supplied buffer to place the buffered data scanCount Number of scans to retrieve from the acquisition buffer bufMask A mask defining operation depending on the current state of the acquisition buffer retC
4. General I Save configuration on exit On Open New Personal Dagview Configuration Use Untitled as default configuration name C Use Pdag as default configuration name Updates the digital output channels This item is only enabled when the digital output channels are not updated and the acquisition state is idle Saves the current power up settings for all devices in the configuration The power up settings take effect when the device is first plugged into an active USB port Opens the Chart Display where data is displayed in graphical in a chart format If Chart Display is already open selecting this item gives the window focus Opens the Bar Graph Meters where data is displayed in a bar graph format If Bar Graph Meters is already open selecting this item gives the window focus Opens the Analog Meters Display where data is displayed in an analog meter format If Analog Meters Display is already open selecting this item gives the window focus Opens the Digital Meters Display where data is displayed in a digital meter format If Digital Meters is already open selecting this item gives the window focus Turns the Use Data Destination feature on or off Sets the data destination cell to the active cell in the current workbook Turns the Use Data Header feature on or off Opens Personal DaqViewXL s Options Dialog Opens Personal DaqViewXL s Preferences Dialog From this dialog box you can use the Genera
5. Configure the Bar Graph meter settings by first clicking the right mouse button anywhere within the meter display area A pop up menu will appear allowing you to reconfigure the meter in regard to scale limits channel selection adding peak hold indicators etc Refer to Meters Configuration Menu page 4 21 for more detail 4 24 Personal DaqView 989394 Personal Daq User s Manual Analog Meters Selecting the Analog Meters from toolbar button or Indicators pull down menu brings up the Analog Meters window This window displays several channels in a dial gage format To activate the display select the Start button from the toolbar At least one meter must be assigned to an active On channel You can select to view up to 32 meters at a given time Analog a ed td Control View eel 0 00 1 PO1_A01 C 0 00 00 silis 500 ae os 10 00 A2 PO1_ A02 W 1 25 4 PO1_Ad4 w Analog Meters Shown with 4 Meters Selected for Viewing Double clicking the left mouse button in a meters scale area brings up a channel selection pop up menu see Bar Graph Meters item H A single click with the right mouse button in this same area brings up a configuration pop up menu see Bar Graph Meters item I Both of these pop up menus are discussed in the section Meters Configuration Menu page 4 21 Note that Meter 1 for PD1_A01 in the above figure shows the following e Visible low limit region lt 32 C a
6. Note 2 29 00 i A E A raced 1 PD1_A01 C Ei Digital Meters Control View 1 PD1_A01 85 36 Note 3 Note 1 Bar Graph Meter with indicator rising in the high limit Meter tip is red to indicate value is above high limit Note 2 Analog Meter with indicator rising in the high limit Pivot point of dial arm is red to indicate value is above high limit Note 3 Digital Meter with rising value in the high limit The digital readout is red and has a red line above it to indicate value is above high limit Each of the meters shown in the figure shows a trend indicator pointing in the increase direction The Bar Graph and Analog Meters also show low and high peak hold indicators at the 0 and 100 marks Be aware that the acquisition of data to disk has a higher priority then the updating of Charts Meters and the Reading column Therefore data is displayed as soon as the acquisition task is satisfied As the scan rate is increased the acquisition to disk task will take up more processor CPU time and the displaying of data will be updated as time allows If you select a linear conversion using the scale amp offset feature you should expect a further impact on real time display performance Scale amp offset conversion is discussed on page 4 7 Personal Daq User s Manual 989394 Personal DaqView 4 23 Bar Graph Meters Selecting the Bar Graph Meters from toolbar but
7. bin files into other formats that you may find more useful You must first select an existing binary file to be converted The filename can be typed in or selected by the Browse button that leads to a folder file search window After a file is selected or multiple files you can toggle check boxes on off for each format type When ready to begin the conversion select the Convert button and set up the destination folder filename Data collected can be uploaded to your PC s hard disk in any or all of several data formats for post acquisition analysis Some of the available file formats include Snap Master DADiSP Matlab and ASCII Excel which is compatible with most software for analysis View Data Indicators Start All Indicators Launches an independent post data acquisition program such as eZ PostView Refer to the Post Acquisition Analysis PDF included on your CD for detailed information Starts all on screen indicators with a display of up to date data Has no affect on the recording of data to disk Auto Rearm even if selected will not occur when using this control Stop All Indicators Analog Meters Stops all indicators Has no affect on the recording of data to disk Brings up the analog dial type meters Bar Graph Meters Chart Display Brings up the bar graph type meters Brings up the scrolling chart Digital Meters Personal Dag User s Manual Brings up the digital style meters 989
8. one scan consisting of each channel starting with startChan and ending with endChan The gain setting will be applied to all channels See ADC Flags Definition table for channel flags definitions Personal Dag User s Manual Appendix B 887095 API Commands B 7 dagqAdcRdScanNn DLL Function dagqAdcRdScanN DaqHandleT handle DWORD startChan DWORD endChan PVOID buf DWORD scanCount daqAdcTriggerSource triggerSource BOOL rising FLOAT level FLOAT freq daqAdcGain gain DWORD flags daqAdcRdScanN DaqHandleT handle DWORD startChan DWORD endChan PVOID buf DWORD scanCount DagqAdcTriggerSource triggerSource BOOL rising FLOAT level FLOAT freq DaqAdcGain gain DWORD flags Visual BASIC VBdagqAdcRdScanNSingle amp ByVal handle amp ByVal startChan amp ByVal endChan amp buf ByVal ScanCount amp ByVal triggerSource amp ByVal rising amp ByVal level ByVal Freq ByVal gain amp ByVal flags amp daqAdcRdScanN handle DaqHandleT startChan DWORD endChan DWORD buf pointer scanCount DWORD triggerSource daqAdcTriggerSource rising longbool level single freq single const gain daqAdcGain flags DWORD Parameters handle Handle to the device from which ADC scans are to be acquired startchan The starting channel of the scan group see table at end of appendix endchan The ending channel of the scan group see table at end of appendix buf An array where the A D scans
9. Advanced Up to 64 groups Up to 16 charts per group Up to 4 overlapping channels per chart Note The Manual Chart Setup Create Charts button above figure allows you to exit the Chart Setup Wizard and manually create your chart display without use of the automatic functions available in Chart Setup Wizard Note Moderate and Advanced modes are only available for use with Personal DaqView Plus Automatic Display Setup using the Chart Setup Wizard The previous figure shows the Simple mode dialog box for Automatic Chart Creation The following figures show the Moderate and Advanced mode dialog boxes These two modes do not apply to the 4 38 Personal DaqView standard version of Personal DaqView Create Charts Automatic Chart Creation Simple Moderate Advanced Create 10 fig Charts fz overlapping channels with 2 per chart Start with PD1_A0i The number of Instrument Data Channels available is 30 The above setup will assign 20 channels starting from channel PO1_A01 through channel POT DOB Automatic Chart Creation Create Charts Create F Display Groups with 2 Charts per group overlapping channels That have E ale EN Start with POT An The number of Instrument Data Channels available ig 30 Simple Moderate Advanced The above setup will assign 30 channels starting from channel PO1_A01 through channe
10. If you want Personal DaqViewXL to automatically load each time you run Excel perform the following Steps 1 Start Excel 2 Select the Tools menu and click on Add Ins The Add Ins dialog box opens 3 Locate the Personal DaqViewXL line in the Add Ins Available list box and click on it This should insert a checkmark v next to the item 4 Click OK Personal DaqViewXL will now auto load with Excel See the previous paragraph for simple steps on disabling the Personal DaqViewXL auto load feature Performance of Personal DaqViewXL Personal DaqgViewXL performs in much the same manner as the standard Personal DaqView with the noted difference that the XL version can use Excel macros The following sections provide basic information for using Personal DaqViewXL to organize and analyze data An understanding of these basics will let you explore each of Personal DaqViewXL s many features Note The Hints and Tips section contains suggestions for improving your productivity with Personal DaqViewXL If you are not proficient with Excel please refer to your Excel documentation as needed The more you know about Excel the better your understanding and use of Personal DaqViewXL will be 8 491 0905 rev 3 0 918596 Personal DaqViewXL User s Guide Microsoft Excel Book ka File Edit View Insert Format Tools Chart Window Help JO sc E S6R kmaslo Bel 447 oeel 42 EH TH Dl E N GS od A a
11. Invalid file open mode DerrFileOpenError 67h 103 Unable to open file DerrFileWriteError 68h 104 Unable to write file DerrFileReadError 69h 105 Unable to read file DerrInvClockSource 6Ah 106 Invalid acquisition mode DerrInvEvent 6Bh 107 Invalid transfer event DerrTimeout 6Ch 108 Time out on wait DerrInitFailure 6Dh 109 Unexpected result occurred while initializing the hardware DerrBufTooSmall 6Eh 110 Unexpected result occurred while initializing the hardware DerrInvType 6Fh 111 Invalid acquisition wait dac mode DerrArraySize 70h 112 Used as a catch all for arrays not large enough DerrBadAlias 71h 113 Invalid alias names for Vxd lookup DerrInvCommand 72h 114 Invalid command DerrInvHandle 73h 115 Invalid handle DerrNoTransferActive 74h 116 Transfer not active DerrNoAcgActive 75h 117 Acquisition not active DerrInvOpstr 76h 118 Invalid operation string used for triggering DerrDspCommFailure 77h 119 Device with DSP failed communication DerrEepromCommFailure 78h 120 Device with EEPROM failed communication DerrInvEnhTrig 79h 121 Device using enhanced trigger detected invalid trigger type DerrInvCalConstant 7Ah 122 User calibration constant out of range DerrInvErrorCode 7Bh 123 Invalid error code DerrInvAdcRange 7Ch 124 Invalid analog input voltage range parameter DerrInvCalTableType 7Dh 125 Invalid calibration table type DerrInvCalInput 7Eh 126 Invalid calibration input s
12. M Overange Protection Frequency ce Trigger Tab Selected Post Trigger Tab Selected Configure Acquisition As can be seen in the previous figure it is relatively simple to configure an acquisition Tabs allow you to select each of the three trigger aspects Trigger Pre Trigger and Post Trigger for configuration Averaging The Averaging section of the dialog box is used to enable a block averaging mode and to select the size of the scan block Block averaging is enabled by using the Type list box available selections are None or Block Averaging Averaging is available in scan blocks of 2 4 8 16 and 32 The block number is chosen from the Count pull down list When enabled the selected block averaging is applied to each of the scan group s analog input channels Note that programmers can enable averaging via the dagAdcSetFilter function with filterType set to Daft SWAvg For additional information you can refer to daqAdcSetFilter in Appendix B 4 16 Personal DaqView 989394 Personal Daq User s Manual Acquisition Parameters The lower section of the Configure Acquisition box is used for adjusting the scan rate as well as enabling or disabling Continuous Calibration and Overrange Protection modes Each of these categories is discussed below Scan Rate Period and Frequency The lower region of the dialog box displays the maximum scan rate and the actual scan rate This section of the dialog box allows you to set t
13. Personal Dac User s Manual 1998 2005 by lOtech Inc USB Data Acquisition Modules Personal Daq 54 Personal Daq 55 Personal Daq 56 PDQ1 PDQ2 IOtech Inc 25971 Cannon Road Cleveland OH 44146 1833 Phone 440 439 4091 Fax 440 439 4093 e mail Product Information sales iotech com e mail Technical Support productsupport 1otech com Internet http www iotech com Personal Daq User s Manual p n 491 0901 rev 6 0 878695 Printed in the United States of America ii Warranty Information Your Otech warranty is as stated on the product warranty card You may contact IOtech by phone fax machine or e mail in regard to warranty related issues Phone 440 439 4091 fax 440 439 4093 e mail sales iotech com Limitation of Liability Otech Inc cannot be held liable for any damages resulting from the use or misuse of this product Copyright Trademark and Licensing Notice All IOtech documentation software and hardware are copyright with all rights reserved No part of this product may be copied reproduced or transmitted by any mechanical photographic electronic or other method without Otech s prior written consent IOtech product names are trademarked other product names as applicable are trademarks of their respective holders All supplied IOtech software including miscellaneous support files drivers and sample programs may only be used on one installation You may make arch
14. a Select single ended differential Differential Analog Input Frequency Pulse Input Digital Input Output a es ee W POIADIL v1 volts Dn 10 238441 10 0 to 10 0 Single ended jee Differential Single ended 110 me 1 0 POW ADH Y2 volts On 10 051863 10 0 to 10 0 y Single ended 110 ms 1 0 0 0 POI A02 V3 Thermo On 3 321 Type J T Differential 110 ms 1 0 0 0 POI A03 PD1_A03 On 7 142 Type J T Differential 110 ms 1 0 0 0 POI A04 FPD1_A04 On 12 265 Type K T Differential 110 ms 1 0 0 0 P01 A05 PD1_A05 On 18 534 Type T T 110 ms 1 0 0 0 POI A06L PO1_ADEL On 4 964451 10 0 to 10 0 y Single ended 110 ms 1 0 0 0 PO1_A06H PD1_A06H On 3 333019 10 0 to 10 0 single ended 110 ms Channel Configuration Window Selected for Analog Input Spreadsheet Range Displays the range and provides access to a pull down list of available voltage ranges as well as a list of available thermocouple types In addition to voltage analog input can be selected for thermocouple types J K T E R S B and N Note that the range and units columns are interrelated For example selecting a thermocouple from the range list will automatically bring up the default unit indicated in Preferences Measurement Units in the View pull down menu Units Displays units and allows the user to key in different units when the cell is selected Units may be V mV uV or created
15. chan gains amp ChanCount amp e VBdagAdcSetAcqg amp handle amp mode amp preTrigCount amp postTrigCount amp e VBdagAdcTransferSetBufferSingle amp ByVal handle amp buf ByVal ScanCount amp ByVal transferMask amp e VBdagAdcTransferStart amp handle amp e VBdaqwaitForEvent amp handle amp dagEvent amp This program will initialize the Personal Daq hardware then take readings from the analog input channels in the base unit not the expansion channels The functions used in this program are of a lower level than those used in the previous section and provide more flexibility Dim buf 80 handle amp ret amp flags amp The following function defines the channel scan group The function specifies a channel scan group from channel 1 through 8 with all channels being analog unipolar input channels with a gain of x1 Specifying this configuration uses PgainX1 in the gain parameter and the DafAnalog value in the flags parameter The flags parameter is a bit mask field in which each bit specifies the characteristics of the specified channel s Although each channel can set up independently and different from the others in this example we will set them all the same ret amp VBdagAdcSetMux amp handle amp 1 8 Pgainx1 amp DafAnalog amp DafDifferential amp DafMeasDuration610 amp Next set the internal sample rate to 10 Hz ret amp VBdagAdcSetRate amp handle amp
16. chertwrea a eee cee ne ee a L Temperature vs Time 5 80 00 2 60 00 40 00 T 20 00 o oo es ne ere MeN ae Time 3 Pant eat ene eager rong ane 11 Type Type Ko zy ype K Type K T E S Personal DaqView Plus Chart Display oO x a ae a a Ta en ee aaa r E a E a E a Peretti te Teter a wa C oz co l 189877 C div a ans n 4 49 9854 Center H UD sage H C tdi PS Sheet Ready 49 9854 Center H L aa HC idi A gec r div Tere ae nes Personal DaqViewXL Spreadsheet with Toolbar and Displays WPersonal DagviewsL oolbar Personal DaqViewXL Configure Devices Configure Channels Configure Acquisition Go Manual Trigger Chart Display Bar Graph Meters Analog Meters Digital Meters 0 Use Data Destination 1 Set Data Destination Cell 2 Use Data Header Personal DaqViewXL User s Guide 918596 491 0905 rev3 0 9 Configuring an Acquisition To set up your configuration once Personal DaqViewXL has been installed complete the following steps 1 Enter Excel Microsoft Excel Book _ 5 x hil File Edit wiew Insert Format Tools Data Accounting Window Help x OSGR SGRAY BBS o m BS E MM 4 10 B E Sa Dl a ad Sd J l O A Channel Ranta Of x Control 2 aco gt a 5 E PDI ADI G ere 6 TO STES Analog Input Frequency Pulse Input Digital Input Output pee
17. daqAdcSetMux Set a contiguous scan sequence using single gain polarity and channel flag values Trigger Options After the scan is set the trigger needs to be set If a software trigger is selected the start time of the scan depends on the application calling daAdcSoftTrig DagAdcSetTrigEnhanced Configures the device for enhanced triggering Multiple Scan Timing If the acquisition is to have multiple scans and the trigger mode is one shot the pacer clock needs to be set with one of the following functions dagAdcSetRate Set Get the specified frequency or period for the specified mode dagAdcSetFreq Set the pacer clock to the given frequency A D Acquisition A D acquisition settings are not active until the acquisition is armed dagAdcArm Arm an A D acquisition using the current configuration If the trigger source was set to be immediate the acquisition will be triggered immediately daqAdcDisarm Disarm the current acquisition if one is active This command will disarm the current acquisition and terminate any current A D transfers daqAdcSetAcq Define the mode of the acquisition and set the pre trigger and post trigger acquisition counts if applicable dagAdcAcgGet Stat Return the current state of the acquisition as well as the total number of scans transferred thus far as well as the trigger scan position if applicable A D Data Transfer After the acquisition is started the data needs
18. gt Scan Period Time Example 2 Initial automatic calibration followed by scans and more than one calibration per scan Initial Calibration Scan Scan Scan Scan Scan Scan 0 i l gt Time Scan Period Example 3 Initial automatic calibration followed by scans and no further calibrations Three Examples of Calibration Scan Arrangements Thermocouple Measurements Personal Daq provides effortless thermocouple TC measurements The unit includes built in cold junction compensation CJC which is automatically invoked when you select TC measurements The Personal Daq automatically converts acquired voltage readings into compensated linearized temperature readings A Personal Daq system can make thermocouple and volts measurements concurrently Personal Daq User s Manual 878595 General Information amp Specifications 2 7 Frequency Measurements Not applicable to Personal Daq 54 Each frequency pulse input channel can measure from DC to 1 MHz offering pulse count totalize frequency and duty cycle type readings The input voltage range is 15 to 15 VDC absolute maximum TTL sense levels Schmitt trigger inputs lt 1 3 V low gt 3 8 V high Note that each frequency channel can measure pulses that are due to closures of a contact between the input terminal and the Lo terminal This is because an internal pull up resistor places the input at 5V when the contact is open and allows the input to go to OV when the contact is closed Freq
19. server mode supports transactions with client applications such as Excel Note that you must close Excel prior to using Personal DaqView again as a Stand alone application e When you acquire data into a worksheet some of the data may be displayed as a string of pound characters HHH Excel will use these characters when a column is not wide enough to display all the digits of a given number Sufficient widening of the column will eliminate the symbols You can widen columns using the Format Column Auto Fit Selection menu command Clicking on this menu item automatically adjusts column widths to accommodate the data e Personal DagViewXL does not have to be used as an Excel Add In it can also be loaded as a workbook To do so open pDaqView xla using the File Open dialog box The Personal DaqViewXL toolbar and menu items will be added to Excel e When loading the Personal DaqViewXL add in manually Excel does not automatically create a blank workbook To create a workbook access the File New menu item after Excel loads with Personal DaqViewXL Note When you load Personal DaqViewXL as a workbook it will not automatically load the next time you run Excel However it will appear in the recently used list at the bottom of the File menu making it easy to load the next time you run Excel e You can arm an acquisition from an Excel macro as shown in the following VBA code example Sub GoMacro Dim cbpMenu
20. value IO value read DerrNoError No error See Also daqIOReadBit daqIOWrite daqIOWriteBit Program References DIGEX1 C DAQEX FRM VB DAQEX PAS Delphi All devices except Personal Daq 54 daqIORead allows you to read the specified port on the selected device The read operation will return the current state of the port in the value parameter Normally if the selected port is a byte wide port the port state will occupy the low order byte of the value parameter Digital IO channels for the port correspond to each bit within this low order byte If the bit is set it indicates the channel is in a high state If the bit is not set the channel is indicated to be in a low state Description B 22 API Commands Appendix B 887095 Personal Daq User s Manual daqiIOReadBit DLL Function daqIOReadBit DaqHandleT handle daqIODeviceType devType daqiIODevicePort devPort DWORD whichDevice daqIOExpansionPort whichExpPort DWORD bitNum PBOOL bitValue C daqIOReadBit DaqHandleT handle DaqIODeviceType devType Daq IODevicePort devPort DWORD whichDevice DaqIOExpansionPort whichExpPort DWORD bitNum PBOOL bitValue Visual BASIC VBdaqIOReadBit amp ByVal handle amp ByVal devType amp ByVal devPort amp ByVal whichDevice amp ByVal whichExpPort amp ByVal bitNum amp bitValue amp Delphi daqIOReadBit handle DaqHandleT devType daqIODeviceType dvPort daqIODevicePort whichDevice DWORD whichExpPort daqIOExpansio
21. 25 C 24 ARR Nae 22 Time gt 1 sample per division 1 sample per 3 divisions samas 1 sample per 4 divisions Examples of Under Sampling The above figure depicts three signals from the same temperature fluctuations Under Sampling aliasing is evident in two of the signals Elaboration follows Signal 1 This signal based on 1 sample per division is represented by a heavy solid line and sample points designated by polygon symbols The signal represented is a fairly accurate portrayal of the actual temperature fluctuations Signal 2 This signal based on sample every 3 divisions is represented by a heavy dotted line and sample points designated by squares Under sampling has resulted in a distortion in effect a lower amplitude than that exhibited by the first signal even though each measured point is accurate Signal 3 This signal based on 1 sample every 4 divisions is represented by a dotted dashed line and sample points designated by plus signs Fewer samples a greater degree of under sampling has resulted in a further distortion and lowering of signal amplitude From these examples it should be realized that more samples will result in a more accurate representation of the actual signal and that under sampling will tend to lower the amplitude of the signal exhibiting a trend toward a flat line state As state
22. 4 10 Personal DaqView 989394 Personal Daq User s Manual Personal Dag Terminal Block Partial V1 and V2 are Single Ended Inputs V3 is a Thermocouple and is a Differential Input Single Ended and Differential Connections to Analog Inputs In Personal Daq applications thermocouples should not be connected single ended Doing so can result in noise and false readings This is especially true when acquiring other high amplitude signals in conjunction with thermocouple signals that are connected single ended Measurement Duration Column Indicates the amount of time used for sampling a channel s input signal The measurement durations range from very slow 610 milliseconds sample to very fast 12 5 milliseconds sample Some related terms are defined as follows Sample rate Samples per second The sample rate is the number of samples that take place per second With a slow measurement duration of 610 milliseconds there will only be 1 6 samples per second With a very fast measurement duration of 12 5 milliseconds there will be 80 samples per second Resolution Bit RMS The number of reliable data bits that exist for a signal s measurement The greater the resolution the more detailed the reading for example with increased resolution a reading of 5 12 V could become 5 11896 V Personal Daq actually provides for 24 bits of data information however the accuracy of the least significant bits becomes less as the
23. API Custom Program Models Appendix B API Commands Appendix C Removed Appendix D Custom Labels Note The information in appendices A and B pertains to the Applications Programming Interface API This information is not necessary for users of Personal DaqView who plan to do no programming Synopsis of Appendices Appendix A API Custom Program Models provides information for creating custom software to satisfy your specific data acquisition requirements The appendix explains how to combine API functions to perform typical tasks Appendix B API Commands describes the entire command set for the Personal Daq Syntax parameters interpretation and error codes are explained Sections on the individual commands include their parameters types typical use and related information Appendix C Removed Appendix D Custom Labels provides blank labels and a Personal Daq channel layout reference The appendix also pertains to pDaq_CustomLabels doc The file is located in the target directory Program Files pDaqview The file document provides blank labels in table format that you can write in edit and print from your PC Personal Dag User s Manual 887595 A i Personal DaqView User s Manual API Custom Program Models A Overview A 1 Data Acquisition Environment A 1 Application Programming Interface API A 1 Hardware Capabilities and Constraints A 2 Signal Environment A 2 Prog
24. CRET 4 2 Main Control Window 4 3 Toolbar Buttons 4 3 Pull Down Menus 4 3 Channel Configuration Window 4 6 Channel Configuration Window Toolbar 4 6 Channel Configuration Window Pull down Menus 4 6 Common Spreadsheet Columns 4 7 Analog Input Spreadsheet 4 10 Frequency Pulse Input Spreadsheet 4 12 Digital Input Output Spreadsheet 4 14 Configure Acquisition Dialog Box 4 15 Configure Data Destination amp File Converter Preferences 4 18 Sequential Destinations Auto Rearm 4 19 Bar Graph Analog amp Digital Meters 4 20 Meter Toolbars 4 20 Meter Pull Down Menus 4 21 Meters Configuration Menu 4 21 Configuring a Meter 4 22 Bar Graph Meters 4 24 Analog Meters 4 25 Digital Meters 4 26 Chart Display 4 27 A Note Regarding Standard Plus and XL Version Software 4 27 Groups Charts amp Channels 4 27 Chart Display Window 4 27 Pull Down Menus 4 28 Toolbar Items 4 29 Chart and Channel Information Regions 4 30 Accessing the Display Configuration Setup Box AOE 4 31 Editing a Chart Display Configuration 4 32 Manually Configuring a Chart Display 4 34 Chart Setup Wizard 4 37 Introduction 4 37 Automatic Display Setup using the Chart Setup Wizard 4 38 Bypassing Automatic Chart Setup 4 39 Personal DaqViewXL p n 491 090
25. Chart pull down menu or by clicking of the Chart Setup button in the Chart Display Window toolbar This method does not use the Chart Setup Wizard and does not reset your chart display configuration setup e Activating the Chart Setup Wizard will reset your chart Display Configuration Setup e Activating the Chart Setup Wizard will not reset your Channel configuration The Chart Setup Wizard window will appear when you attempt to run Personal DaqgView charts for the very first time as well as when a configuration file does not exist and you attempt to run charts When a configuration file already exists you can easily access the Chart Setup Wizard by selecting Wizard in the Chart pull down menu or by clicking on the Chart Setup Wizard button located in the Chart Display Window s toolbar It is important to realize that running the Chart Setup Wizard will result in a reset of your display setup it will not however change your channel configuration with the exception of new display channels now enabled The chart setup determines how your Personal DaqView Chart Display Window will appear in regard to the following e number of chart groups available for viewing e number of charts shown for each selected group e the number of overlapping channels in each chart not to exceed 4 You can choose to manually create a configuration or have one created automatically The automatic setup method offers three choices Simple Moderate and Adv
26. DarmFrequency amp DaasPostTrig amp 10 actual The acquisition mode needs to be configured to be fixed length acquisition with no pre trigger scan data and 10 scans of post trigger scan data The mode is set to DaamNShot amp which will configure the acquisition as a fixed length acquisition that will terminate automatically upon the satisfaction of the post trigger count of 10 ret amp VBdagAdcSetAcqg amp handle amp DaamNShot amp 0 10 Personal Dag User s Manual Appendix A 878495 API Custom Program Modules A 5 The acquisition begins upon detection of the trigger event The trigger event is configured with dagAdcSetTrigEnhanced The next line defines the trigger event to be the immediate trigger source This is the source that will start the acquisition immediately The variable DatsImmediate amp isa constant defined in PDAQX BAS Since the trigger source is configured as immediate the other trigger parameters are not applied but the arrays adcRanges and trigSense must still be initialized For i 0 To ChanCount 1 trgSrc amp i DatsImmediate amp adcRanges amp i 0 trigSense amp i 0 levels i 0 hysteresis i 0 Next i ret amp VBdagAdcSetTrigEnhanced amp handle amp trgSrc amp gains amp adcRanges amp trigSense amp levels hysteresis chans amp 0 A buffer now is configured to hold the A D data to be acquired Since this is to be a fixed length transf
27. E iStart the First time I use Personal DaqviewyL Personal DaqViewXL Start up Options Dialog Box 7 If you want to start Personal DaqView as soon as Excel is opened a Click the Personal DaqViewXL selection located in Excel s Tools pull down menu b Choose Options the Options Dialog Box appears c Select Start as soon as I open Excel d Click OK Note After you have launched Excel and Personal DaqViewXL has been activated the following dialog box appears if Personal DagqView is not running If this is the case click Yes to start Personal DaqViewXL Personal Dag iewxXL Ea Personal DagvView is not curently running Do you want to start it mow Personal DaqView Startup Confirmation The following figure shows a partial screen capture of a Microsoft Excel spreadsheet In the figure the Personal DaqViewXL item has been selected from the Tools pull down menu Personal DaqViewXL s toolbar can also be seen in the figure Microsoft Excel Book2 Eile Edit View Insert Format Tools Data Accounting Window Help OSEH amp a id b amp Personal DagviewxXL gt New Configuration AB A Arial s k k Spelling Open Configuration AutoCorrect Save Configuration 3 TH tt F FS E DS a Tn Save Configuration As ee nd u ae Share Workbook Track Changes Configure Devices Merge Workbooks Configure Channels Protection Configure Acqu
28. STRING or FLOAT for property parameters B 30 daqGetDeviceProperties 2 General I O Definintions Digital I O Port Connection devPort daqIODevicePort B 30 Doestorasniyio I O Port Type davType daqIODeviceType Personal Daq 54 I O Operation Code whichExpPort daqIOExpansionPort I O Operation Code daqlOOperat ionCode 3 Event Handling Definitions Transfer Event Definitions daqTransferEvent B 31 Transfer Event Wait Mode Definitions daqWaitMode Hardware Version Definitions daqHardwareVersion B 31 Analog Gain Definitions Identifies gain codes for Personal Daq base unit B 31 Trigger Source Definitions daqAdcTriggerSource B 31 daqEnhTrigSensT Miscellaneous Definitions Scan Flag Definitions daqAdcFlag B 32 Frequency vs Period daqAdcRateMode Acquisition Mode Definitions daqgAdcAcqMode Transfer Mask Definitions daqAdcTransferMask File Open Mode Definitions daqAdcOpenMode Acquisition Transfer Active Flag Definitions daqAdcActiveFlag Acquisition State daqAdcAcqState BufferTransfer Mask dagAdcBufferXferMask 8 Setting Options optionType B 32 optionValue 9 API Error Codes Identifies API errors by number and description B 33 Personal Dag User s Manual Appendix B 887095 API Commands B 29 Table 1 daq Device Property Definitions daqGetDeviceProperties deviceType Main Chassis Device Type Definition DWORD basePortAddress N
29. Set Limits E 1 Limits Show Limits aL Misc High 4 096 Low 4 096 Meters Configuration Menu T Show Limits Cancel Apply More gt gt Set Limits Dialog Box Meter Configuration Menu and Related Dialog Boxes Personal Daq User s Manual 989394 Personal DaqView 4 21 Configuring a Meter L 2 3 Bring up the desired meter group Bar Graph Analog or Digital Place the mouse cursor over the meter which you desire to reconfigure Click on the right mouse button A Meters Configuration Menu similar to that in the above previous figure will appear Note The Show Peak Hold Indicator Reset Peak Hold Indicator selections are not an option for Digital Meters and do not appear on the configuration window for digital meters Select the desired option from the meter configuration menu If a dialog box is required for example to change a limit simply enter in the new value in the appropriate parameter box and press Apply or OK Pressing Apply implements your changes but keeps the dialog box open allowing you to make additional changes Pressing OK implements your changes and closes the dialog box Note If you desire to give two or more meters the same attributes you can click on the More gt gt button to activate the meters extension box then highlight the meters for which you want the attributes to apply This feature only applies to meters that are of the sam
30. Track Changes gt Configure Devices Merge Workbooks Configure Channels 1 Confi gure Devices Protection gt Configure Acquisition 2 C o nfi g ure C h anne s Goal Sesk Go 3 Configure Acquisition Scenarios Manvel WHager F as 4 Go 2o fini Update Digital outputs 5 Manual Tri er saa Save Power up Settings 99 7 6 Chart Display Macro gt l Add Ins me ease 7 Bar Graph Meters A Bar Graph Meters Display Anal M Cations a Analog Meters Display 8 nalog eters Wizard n i Digital Meters Display 9 Digital Meters v Use Data Destination 10 Use Data Destination Set Data Destination Cell 11 Set Data Destination Cell v Use Data Header 12 Use Data Header Options Preferences About Help Personal DaqViewXL Menu Options Personal DaqViewXL Toolbar Options Personal DaqViewXL User s Guide 918596 491 0905 rev3 0 3 After Personal DaqViewXL is installed in this manner it will automatically load whenever you run Excel 6 If you want to start Personal DaqView when Personal DaqgViewXL is used for the first time a Click the Personal DaqViewXL selection located in Excel s Tools pull down menu b Choose Options the Options Dialog Box appears c Select Start the first time I use Personal DaqgViewXL d Click OK Personal Dag iewXL Options ziz ersonal Dagview Server Start up K Start as soon as I open Excel sbegeee Barranco cise A A P E E E et acai T Cancel
31. and you should never touch connector pins or circuit components unless you are following ESD guidelines in an appropriate ESD controlled area Such guidelines include the use of properly grounded mats and wrist straps ESD bags and cartons and related procedures Use Personal Daq s screw terminals to connect channel inputs to your Personal Daq system Note that the terminal blocks are detachable for ease in making connections The main module Personal Daq 54 Personal Daq 55 and Personal Daq 56 and optional PDQ expansion modules PDQ1 and PDQ2 have labels which clearly identify each input type and channel number Each Analog Input channel can be configured for single ended or differential volts or for differential thermocouple inputs The non analog channels are designated as Frequency Pulse Input F and Digital I O D Note Personal Daq 54 does not accept frequency pulse input or digital I O Note Personal Daq 54 does not support expansion modules Reference Note Connections for single ended and differential modes are depicted in the figure on page 1 8 Reference Note Specifications are provided in Chapter 2 Connecting Thermocouple Wires Thermocouple wires are to be connected in differential mode only In Personal Daq applications thermocouples should not be connected single ended Doing so can result in noise and false readings This is especially true when acquiring other high amplitude signals in conjunction w
32. chans amp i amp DcofChannel DcotpDaqDebounceTime DcovDebounce 0 ret amp VBdaqgSetOption handle amp chans amp i amp DcofChannel DcotpDaqMinFreq 0 ret amp VBdaqSetOption handle amp chans amp i amp DcofChannel DcotpDaqMaxFreq 1000 ret amp VBdaqSetOption handle amp chans amp i amp DcofChannel DcotpDaqgFreqRes 1 ElseIf 14 lt i And i lt 16 Then Frequency input channels configured for pulse count chans amp i startChan 2 i 14 flags amp i CtrFlags ret amp VBdagSetOption handle amp chans amp 1i amp DcofChannel DcotpDagqPulses DcovPulseCount ret amp VBdagSetOption handle amp chans amp i amp DcofChannel DcotpDaqgRising DcovEdgeRising ret amp VBdagSetOption handle amp chans amp 1 amp DcofChannel DcotpDaqDebounceTime DcovDebounce O End If gains i PGainxl1 Next 1 The VBdaqAdcSetDataFormat function is used to configure the driver to return the raw data in floating point format which is a requirement for Personal Daq software Post acquisition data will be presented as raw data ret amp VBdaqAdcSetDataFormat amp handle amp DardfFloat amp DappdfRaw The scan group consisting of multiple channels must be configured using the VBdaqAdcSetScan function ret amp VBdagAdcSetScan amp handle amp chans amp gains amp flags amp ChanCount amp The arrays used to specify the parameters of the trigger event are initialized prior
33. daqAdcRdN 1 channel e VBdagAdcRdSingle amp ByVal handle amp ByVal chan amp sample ByVal gain amp ByVal flags amp e VBdagAdcRdNSingle amp ByVal handle amp ByVal chan amp buf ByVal ScanCount amp ByVal triggerSource amp ByVal rising amp ByVal level S ByVal Freq ByVal gain amp ByVal flags amp o VBdaqAdcRdScanSingle amp ByVal handle amp ByVal startChan amp ByVal endChan amp buf ByVal gain amp ByVal flags amp At this point the data is in the buffer provided by the user in binary format daqAdcRdScan Read 1 sample from multiple channels ae this point the data is in the buffer provided by the user in binary format This program will initialize the Personal Daq hardware then take readings from the analog input channels in the base unit not the expansion module For transporting data in and out of the Personal Daq driver arrays are dimensioned Dim sample 1 buf 80 handle amp ret amp flags amp gain amp The following code assumes that the Personal Daq device has been successfully opened and the handle amp value is a valid handle to the device All the following one step functions define the channel scan groups to be analog unipolar input channels Specifying this configuration uses the DafAnalog value in the flags parameter The flags parameter is a bit mask field in which each bit specifies the characteristics of the channel s specified In this case
34. devType daqIODeviceType dvPort daqIODevicePort whichDevice DWORD whichExpPort daqIOExpansionPort value DWORD Parameters handle Handle of the device to perform an IO write operation devType IO device type devPort IO device port selection whichDevice IO device selection whichExpPort IO device expansion port address value Value to write DerrNoError No error daqiORead daqIOWriteBit daqIOReadBit Program References DIGEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With All devices except Personal Daq 54 Description daqIOWrite allows you to write to the specified port on the selected device The write operation will write the settings indicated in the value parameter to the selected port The value written will depend on the width of the selected port Normally for byte wide ports only the low order byte of the value parameter will be written The IO channels for the port correspond to each bit within the value written If the channel is to be driven to a high state then the corresponding bit should be set Likewise if the channel is to be driven to a low state then the corresponding bit should not be set Personal Dag User s Manual Appendix B 887095 API Commands B 23 daqiOwriteBit DLL Function daqIOWriteBit DaqHandleT handle daqiIODeviceType devType daqIODevicePort devPort DWORD whichDevice daqIOExpansionPort whichExpPort DWORD bitNum BOOL bitValue C daqIOWriteBit DaqHandleT handle
35. 1 DiodpPdaqPowerUpPort2 Power up Setting for Local Port 2 DiodpPdaqPowerUpExpPort1 12h Power up Setting for Exp Port 1 DiodpPdaqPowerUpExpPort2 Power up Setting for Exp Port 2 e escription DiodtPdaqDigIO Och For all units except Personal Daq 54 en las YaiucS at T 4 F h Y d lt I lLLGILJSO V LCE T Re e e Pe l O Operatior Personal Daq Device Value Yescriptior See daqOpenList function i 0 Field ignored for Personal Daq DioocReadByte DioocWriteByte Note daglOOperationCode does not DioocReadWord apply to Personal Daq 54 DioocWriteWord DioocReadDWord DioocWriteDWord B 30 API Commands Appendix B 887095 Personal Dag User s Manual Table 3 Event Handling Definitions Transfer Event Definitions Transfer Event Wait Mode Definitions daqTransferEvent daqwaitMode DteAdcData 0 DwmNoWait DteAdcDone 1 DwmWaitForAny DteDacData 2 DteDacDone 3 DteIOData DteIODone 5 Table 4 Hardware Version Definitions daqHardwareVersion Definition Value PersonalDaq56 100H PersonalDaq55 Note 101H Note Includes NE version Table 5 ADC Gain Definitions Base Unit Combination Parameters Voltage Range Pgainxl 0 4to 4V PgainX2 1 2to 2V Pgainx4 16 1to 1V Pgainx8 17 500 to 500 mV Pgainx16 18 250 to 250 mV Pgainx32 19 125 to 125 mV Pgainx64 20 62 5
36. 1 E Chart 1 Avallable Channels Add LEAFD_A0 E Chart 2 LEAPD1 A02 Group 2 HE Chart 1 Selected Channels Estas Fe Po1_A03 PO _A05 PDI ADE Category Voltage Type 4 096 Units W Adding Channels to Group 2 Chart 2 Another variation of the Display Configuration Setup box appears when you highlight a channel In the following figure channel PD1_AO1 of Chart 1 Group 1 was selected resulting in a new screen image From this screen you can edit the channel setup 4 32 Personal DaqView 989394 Personal Daq User s Manual Display Configuration Setup Deselect all channels E E Elon ELOFF Select all channels of the same type EHA Display Data Type E Group 1 Category Voltage Type 4 096 Unita Y Channel Settings L ral j Fe PDI Ad feelin filed ie Units Full Scale El Group 2 Units Division Ed Chart 1 Trace Color Blue Ea PD1_A03 ao a Y hax 4 096 part 08 Y Min 4 036 FPE A06 ale EFD Units Division 7123 Changing the Configuration of Channel PD1_A01 Personal DaqView data channels can operate in one of two modes Units Full Scale or Units Div The mode is selected by radio button Units Full Scale When Units Full Scale is selected as depicted in the above figure you can alter Y Max and Y Min These are the upper and lower limits of the Channel as they will appear on the chart when the channel is selected When you change either parameter Y Cen
37. 5 DE or 10 SE 5 DE 8 Personal Dag 55 with PDQ1 15 DE or 30 SE 15 DE 24 Personal Daq 55 with PDQ2 25 DE or 50 SE 25 DE 8 Personal Daq 56 Systems Volts Inputs TC Inputs Digital I O Freq Pulse Inputs Personal Daq 56 10 DE or 20 SE 10 DE 16 4 Personal Daq 56 with PDQ1 20 DE or 40 SE 20 DE 32 4 Personal Daq 56 with PDQ2 30 DE or 60 SE 30 DE 16 4 DE Differential Mode SE Single Ended Mode Personal Daq User s Manual 878695 Signal Management 5 3 Signal Acquisition Measurement Duration Sample Rate and Resolution Measurement Duration per channel the amount of time used for sampling a channel s input signal For Personal Daq the measurement durations range from very slow 610 milliseconds sample to very fast 12 5 milliseconds sample Sample rate Samples per second The sample rate is the number of samples that take place per second With a slow measurement duration of 610 milliseconds there will only be 1 6 samples per second With a very fast measurement duration of 12 5 milliseconds there will be 80 samples per second Resolution Bits RMS The number of reliable data bits that exist for a signal s measurement The greater the resolution the more detailed the reading for example with increased resolution a reading of 5 12 V could become 5 11896 V Personal Daq actually provides for 24 bits of data information however the accuracy of the least significant bits becomes less as the measurement duration
38. 80 sec Notes 1 Each channel can have independent measurement duration and resolution 2 The sample rates and resolutions shown were obtained with a 10 channel scan and with continuous self calibration disabled 3 Duration does not include the use of CJC measurements Personal Daq User s Manual 878595 General Information amp Specifications 2 9 Analog Specifications Each channel can be individually configured for single ended or differential volts or thermocouple inputs Personal Daq 54 configurable for 10 single ended 5 differential volts or TC channels Personal Daq 54 does not accept expansion modules Personal Daq 55 configurable for 10 single ended 5 differential volts or TC channels Personal Daq 56 configurable for 20 single ended 10 differential volts or TC channels PDQ1 Expansion Module configurable for 20 single ended 10 differential volts or TC channels PDQ2 Expansion Module configurable for 40 single ended 20 differential volts or TC channels Input Voltage Range Relative to Analog Common COM 10 to 20 VDC Input Voltage Ranges Programmable Voltage Ranges RMS Noise pV typical Medium 50 60 Hz Rejection 10 V to 20 V Single ended only 20 V to 20 V Differential only 10 V to 10 V 35 35 5 V to 5 V 7 7 0 4 V to 4 V 4 4 5 2 5 V to 2 5 V 4 5 8 2 V to 2 V 4 4 4 2 2 3 1 Vto 1 V 2 2 3 625 mV to 625 mV 3 5 3 5 4 5 10 15 50 500
39. ByVal regRate ByRef e vVBdagAdcTransferSetBufferSingle amp ByVal handle amp buf ByVal ScanCount amp ByVal transferMask amp The definitions below will be used to specify the channel count scan count data buffer size starting channel and acquisition clock frequency respectively This model assumes the use of a Personal Daq 56 device on which there are 10 analog input channels 2 digital I O ports and 4 frequency input channels available that will be configured for use in the same scan sequence The acquisition will consist of 10 scans per channel The first channel in the channel sequence array is 1 The rate at which channel scans are collected is 0 1 Hz Const ChanCount amp 16 Const ScanCount amp 10 Const TotalCount amp Const startChan 1 Const Freq 0 1 ScanCount amp ChanCount amp We define constants for the various flags that will be placed in the flag sequence array The flags that are ultimately placed in the array depend on the channel type of the channel specified in the same subscript of the channel sequence array Const CtrFlags amp DafCtrPulse Or DafScanDigital Const DigFlags amp DafScanDigital Const FreqFlags amp DafCtrFreq Or DafScanDigital Const AnaFlags amp DafAnalog Or DafDifferential Or DafMeasDuration610 A 10 API Custom Program Modules Appendix A 878495 Personal Dag User s Manual The handle amp variable will be assigned a handle to an opened Pers
40. Channel Configuration Window s reading column Does not affect the Column recording of data to disk 17 Disable Readings Column Stops the Channel Configuration Window s reading column Does not affect the recording of data to disk 878395 Personal Dag User s Manual Channel Configuration The Channel Configuration Window first opens with the Analog Input screen selected You can change from one configuration screen to another by selecting the appropriate tab More information regarding Personal DaqView appears in Chapter 4 of this manual You can configure channels from the three configuration screens as indicated in the following table Channel Type User Configurable Parameters Analog Input User Label On Range Units Single Ended Differential Measurement Duration Scale Offset Frequency Pulse Input User Label On Type Units Edge Debounce Min Value Max Value Resolution Settling Time Scale Offset Frequency Pulse Input does not apply to Personal Daq 54 Digital Input Output User Label On Input Output Output State Power Up State Digital I O does not apply to Personal Daq 54 Note With the mouse cursor positioned in the desired spreadsheet cell you can Single click with the left mouse button to open an associated pull down list for the applicable cell from which a selection can be made This pull down list appears just below the toolbar Double click with
41. Dag requires that the rawFormat parameter be set to DardfFloat This format indicates that the driver should return the raw data in floating point format In this case the floating point data returned will be indicative of the type of channel configured For instance if the channel is configured as a volts mvolts uvolts channel then the floating point value returned for the channel will be in volts If the channel is configured as temperature thermocouple then the floating point value returned for that channels will be in degrees C The postProcFormat parameter specifies the format for which post acquisition data will be presented This format is used by the one step functions of the form daqAdecRd The default value is DappdfRaw where the post acquisition data format will follow the rawFormat parameter dagAdcSetDiskFile DLL Function dagqAdcSetDiskFile DaqHandleT handle LPSTR filename daqAdcOpenMode openMode DWORD preWrite C daqAdcSetDiskFile DaqHandleT handle LPSTR filename DaqAdcOpenMode openMode DWORD preWrite Visual BASIC VBdagAdcSetDiskFile amp ByVal handle amp ByVal filename ByVal openMode amp ByVal preWrite amp dagqAdcSetDiskFile handle DaqHandleT filename PChar openMode daqAdcOpenMode preWrite DWORD Parameters handle Handle to the device for which direct to disk ADC acquisition is to be performed filename String representing the path and name of the file to place the raw ADC acquisition data
42. Frequency Channels 9 C 10 10 Analog 1 la t j i L Rf al a 7 J L HiIn GI b A j M lrst LETH afd ls Eee Analog In Single ended inputs are used with analog signals that share the same common low such as multiple batteries which have their negative sides connected in common Differential inputs are required when signals do not share the same common low such as in the typical use of thermocouples Note that the analog low common references are 10 to 20 Volts Analog low commons COM are located on the same terminal blocks as are the analog channel connections and should not be confused with the frequency lows Lo discussed later Personal Daq User s Manual 878595 General Information amp Specifications 2 13 In Personal Daq applications thermocouples should not be connected single ended Doing so can result in noise and false readings This is especially true when acquiring other high amplitude signals in conjunction with thermocouple signals that are connected single ended Personal Daq units include built in cold junction compensation CJC which is automatically invoked when you select TC measurements The Personal Dag automatically converts acquired voltage readings into compensated linearized temperature readings A Personal Daq system can make thermocouple and volts measurements concurrently Frequency pulse These input channels can measure from DC to 1MHz Readings can be in pulse count totalize
43. Functions used include e VBdaqOpen amp daqName daqSetErrorHandler Setup error handling optional e VBdaqSetErrorHandler amp errHandler amp e VBdaqClose amp handle amp jeer Cade daqClose Close the session A 2 API Custom Program Modules Appendix A 878495 Personal Dag User s Manual All Visual Basic programs should include the PDAQx BAS file into their project The PDAQX BAS file provides the necessary definitions and function prototyping for the DaqX driver DLL handle amp VBdaqOpen amp PDAQ123456 ret amp VBdaqClose handle amp The PersonalDagq device is opened and initialized with the daqOpen function daqOpen takes one parameter the name of the device to be opened The device name is the device serial pre prended with PDAQ For instance 1f the serial for the Personal Daq is 123456 then the device name to use to open that device would be PDAQ123456 The daqOpen call if successful will return a handle to the opened device This handle may then be used by other functions to configure or perform other operations on the device When operations with the device are complete the device may then be closed using the daqClose function If the device could not be found or opened daqOpen will return 1 The DaqX library has a default error handler defined upon loading However if it is desirable to change the error handler or to disable error handli
44. In cases where API functions return structured information the function wrappers assist in presenting that information to the programmer For vBdaqGetDeviceList the information in the byte array returned by the DLL is transferred to a standard VB string array that is easier to work with on the programming end It is important to note that while every API function supported in Visual Basic has at least one associated wrapper the API functions that include buffer references have two different associated wrappers dependent on the buffer s data type For example consider the daqAdcTransferSetBuffer function The prototype has a buffer parameter declared as type Any See previous wrapper code Data acquisition buffers can contain either integers 16 bit numbers or single precision floating point numbers Single data type VBdagAdcTransferSetBuffer would be used to call the dagAdcTransferSetBuffer function with a buffer containing integers VBdagqAdcTransferSetBufferSingle would be used for a buffer containing single precision floating point numbers The only difference between the VBdagAdcTransferSetBuffer and VBdagqAdcTransferSetBufferSingle functions is that the buf parameters consist of different data types for each wrapper The following table lists buffer related API functions and associated wrappers API Function Integer Wrapper Floating Point Wrapper Personal Dag User s Manual BdagAdcTransferSetBuffer BdagAdcTransfe
45. Users of the standard software package should be able to use this material without difficulty The most noticeable difference in software pertains to charts as discussed in the next paragraph Aside from the chart related differences the Plus version has built in support for up to 100 Personal Daq devices attached to one PC see following note Note Driver support for multiple devices is included with every Personal Daq For this reason Personal DaqViewPlus is not required for multiple device applications inwhich the user writes his own program While the standard version of Personal DaqView is limited to one group and to one channel per chart Personal DaqView Plus permits the use of multiple groups with up to four overlapping channels per chart In addition Personal DaqView Plus allows you to make changes via a Chart Properties dialog box The Chart Properties box is discussed on page 4 28 Another distinction of the Plus version can be seen when using the Chart Setup Wizard feature The Plus version can make use of Simple Moderate or Advanced automatic chart creation functions of the wizard however the standard version is resricted to use of Simple mode Discusssion of the Chart Setup Wizard begins on page 4 37 If you do not have Personal Dag View Plus but are interested in its expanded features please contact your service representative for detailed information Note that Personal DagqView Plus can only be activated b
46. amp Specifications 878595 Personal Daq User s Manual Automatic Calibration The Personal Daq module contains a built in source for performing automatic self calibrations These calibrations can be performed between scans periodically throughout the measurement process as indicated in the following figure Such calibration ensures accurate measurements even in environments that experience significant temperature fluctuations With exception of an automatic initial calibration Personal Daq s self calibrations are optional and may be discontinued automatically if the maximum sampling rate is used This is because the time between scans can become too short to permit calibration In this instance the PC can initiate calibration immediately prior to the measurement process see example 3 in the following figure Note The continuous calibration feature is selected or deselected from the Configure Acquisition dialog box See Chapter 4 for more information Channel Ch 1 Ch 2 Ch3 Ch 4 Ch 5 Resolution 22 bit 15bit 21 bit 19 bit 15 bit Measurement Duration 610ms 12 5ms 130ms 40ms 12 5ms es Initial Calibration a Optional ol aia Calibration om Calibration Son Calibration i D i gt Tim Scan Period y Example 1 Initial automatic calibration followed by scan calibrate scan calibrate pattern Initial Calibration Optional tional O al tional Scan calibration Calibration Scan Calibration Celibration lt
47. and Digital Input Output channels page 4 14 depending on which tab is selected 10 Update All Indicators Starts all on screen indicators with a display of up to date data Has no affect on the recording of data to disk Auto Rearm even if selected will not occur when using this control This button is also used to pause all indicators 11 Display Scrolling Charts Displays data graphically in a scrolling chart Discussion of Chart Display begins on page 4 27 12 Display Bar Meters Displays data in a bar graph format Discussed on page 4 24 13 Display Analog Meters Displays data displayed in a dial gage format Discussed on page 4 25 14 Display Digital Meters Displays data in a digital meter format Discussed on page 4 26 15 View Data Launches an independent post data acquisition program such as eZ PostView Refer to the Post Acquisition Analysis PDF included on your CD for detailed information Personal Daq User s Manual 989394 Personal DaqgView 4 3 Pull Down Menus Aside from using the toolbar buttons to perform various program functions you can select functions from pull down lists as indicated by the following table Pull Down Menu Function File New Ctrl N Provides a means to create a new file Open Ctrl O Provides a means to open an existing file Save Ctrl S Saves the current file under its present filename Save As Copies the current file and saves it under a different filename Autho
48. appropriate to your application The important factor is that your labels correspond to the actual channel designations These designations are clearly visible on the Personal Daq products and are also illustrated on page D 3 for easy reference The labels are twice as wide as and slightly longer than the label slots on the Personal Dag device The double width allows you to fold the labels for extra rigidity The extra length and rigidity make the insertion and removal of the labels easier Note that when properly positioned the shaded areas of a label will extend beyond the edge of the label slots Personal Dag User s Manual 878695 Appendix D Custom Labels D 1 This side of the label page is intentionally blank D 2 Custom Labels Appendix D Personal Dag User s Manual Personal Dagq 54 Inserting a label ZS Oo Shaded cells of label extend from slot for easy removal Personal Daq 55 LP Digital I O and Frequency Channels Digital I O and Frequency Channels Channel Connection Layouts Page 1 of 2 Personal Dag User s Manual 878695 Appendix D Custom Labels D 3 Digital I O Analog PDQ2 Expansion Module Analog Channels Channel Connection Layouts Page 2 of 2 D 4 Custom Labels Appendix D Personal Daq User s Manual
49. are going to install a PDQ expansion module 1 Ensure that no power cable or USB cable is connected to the main unit 2 Plug the expansion module into the DB25 connector end of the Personal Daq main unit 3 Lock the modules together with two locking clips provided Refer to the previous figure Connect Personal Dag to Host PC When using a power adapter with your Personal Dag system be sure to supply power from the adapter to the Personal Daq before connecting the USB cable This allows Personal Daq to inform the host computer upon connection of the USB cable that the unit requires minimal power from the computer Use an approved high speed USB cable to connect the Personal Daq system to one of the host computer s USB ports There is no need for an additional power source in this setup since the power pins of the PC s USB connection supply 500 mA at 4 to 5 25 V Additional setup examples are described in Chapter 3 some of which involve USB hubs and or power adapters Personal Daq USB Cable Connection of a Simple Personal Dag System to a Computer USB Port Certain notebook computers require the use of a power adapter with your Personal Daq Personal Dag User s Manual 878395 Unit Startup 1 5 Connect Channel Signal Inputs The discharge of static electricity can damage some electronic components Semiconductor devices are especially susceptible to ESD damage You should always handle components carefully
50. daqCloseList DaqHandleT handle Visual BASIC VBdagqCloseList amp ByVal handle amp daqCloseList handle DaqHandleT Delphi daaCloseiist handle DagiandleM SSS Retuns permorrror Moer O OOOO O Used with Personas SSS Description daqCloseList is used to close a list of PersonalDaq devices opened with the daqOpenList function After the specified device list has been closed no subsequent communication with the devices can be performed To re establish communications with any closed devices you must open the devices with daqOpen or daqOpenList daqCvtRawDataFormat DLL Function daqCvtRawDataFormat PVOID buf daqAdcCvtAction action DWORD lastRetCount DWORD scanCount DWORD chanCount C daqCvtRawDataFormat PVOID buf DaqAdcCvtAction action DWORD lastRetCount DWORD scanCount DWORD chanCount Visual BASIC VBdaqCvtRawDataFormatSingle amp buf ByVal action amp ByVal lastRetCount amp ByVal ScanCount amp ByVal ChanCount amp daqCvtRawDataFormat buf PWORD action daqAdcCvtAction lastRetCount DWORD scanCount DWORD chanCount DWORD Parameters buf Pointer to the buffer containing the raw data action The type of conversion action to perform on the raw data lastRetCount The last retCount returned from dagAdcTransferGetStat scanCount The length of the raw data buffer in scans chanCount The number of channels per scan in the raw data buffer Returns DerrNoError No error See Also
51. desired default units for the Channel Configuration Window s spreadsheet Note that scale and offset automatically reset to a pre designated default according to the unit selected Note Changing the measurement unit defaults does not immediately affect the Channel Configuration Window s spreadsheet columns For example If you set your voltage default to uV but the channels are set with V units they will retain the V units However changing these channels to temperature then back to voltage would result in the default units uV and the associated scale amp offset The new default units are also applied to all channels when a new configuration file is created Acquire Arm Arms the trigger and stores acquisition data to a designated disk file If Auto Rearm is selected activating this funtion will put Auto rearm into effect Disarm Disarms and stops the data acquisition Manual Trigger Device Update Digital Outputs Used to trigger the device when the mode of trigger is set to Manual Note that the Manual Trigger can not be activated until after the trigger has been armed Updates digital output channels regardless of whether their output state is closed or opened see page 4 14 Save Power up Settings Tools Convert Binary Data Saves power up state settings of Personal Daq s internal switches see page 4 14 The Convert Binary Data menu option allows you to convert raw binary data
52. fe 34 po 2 Arial 10 BZU ZERA th 58 45 b r Beko ae ie as Filter Width amp Personal Daq iew Plus Chart Display fc a D Chat Control View Timestamps r C 500216 Center H f 33 5161 E Ch div sei 50028 Center F 23 5161 H G diw J000 1864861 18 45306 15 ame cal i aE ES RH Sheeti Ready Personal DaqViewXL Real Time Charting Personal DaqViewXL User s Guide 918596 491 0905 rev 3 0 11 Data Header Personal DaqViewXL s optional data header supplies the global acquisition parameters and the configuration of each channel and places this information directly in the spreadsheet along with acquired data Examples of frequently used header information include channel gain thermocouple type units and channel label To activate Data Headers select the Use Data Headers icon in the Personal DaqViewXL toolbar 12 491 0905 rev 3 0 x Microsoft Excel Book ikia File Edit wiew Insert Format Tools Data Accounting Window Help IO ol Say dh BS B SF ohe ae E fe A 3 a P 100 BS TA De E ed ES fa co ES Ready COo T a T T 3 Personal DaqViewXL Data Header 918596 Personal DaqViewXL User s Guide Hints and Tips e If Personal DaqView is running as a stand alone application when you start to use Personal DaqViewXL Personal DaqView will switch to a special server mode This
53. files in a variety of formats including but not limited to DIAdem R32 ASCH TXT DADiSP DAT DASYLab DDF and PostView Binary IOT formats The File Converter also allows you to add timestamps to the ASCII Text files Note If you plan to use PostView it is important that PostView Binary and or ASCII is selected Note Parameters can not be altered while the acquisition is in progress Note The file s data format is selected in the View pull down menu of the Main Control Window under Preferences Data Convert DIAdem R32 is selected by default If you want to use PostView to view your data Ensure ASCII TXT or PostView Binary IOT is selected 4 18 Personal DaqView 989394 Personal Daq User s Manual You can select Convert Binary Data from the Tools pull down menu to bring up the following dialog box This allows you to select a file for conversion The Formats button accesses the File Converter Preferences Dialog Box a Select Filefs To Convert x Look in BIN test Sl ee Fer Mame CSC oefe Mode Test_529 bin BRE Binar D 5 29 01 8 42 28 AM Source File s Formats Target Directory F BIN_test Lsorivet Data files are placed in format speciic subdirectories of the target directory Browse E sit The Select Files to Convert Dialog Box Accessed from the Tools Pull down Menu Sequential Destinations Auto Rearm The right hand portion of the Configure Data Destinati
54. frequency or duty cycle Input voltage range is 15 to 15 VDC with the logic threshold at lt 1 3V low and gt 3 8V high Frequency and pulse measurements can be scanned along with analog input measurements with resolution up to 7 digits Frequency low connections Lo are not to be confused with the analog commons COM Frequency Los are located next to F1 and F3 channel connections The connection points labeled Lo serve as a common reference for frequency inputs Frequency pulse channels do not apply to Personal Daq 54 Digital I O You can program each digital I O line individually as input or output The digital I O lines do not make use of the Lo or COM connections Digital output lines do make use of special digital return lines designated by the letters RTN Digital I O channels do not apply to Personal Daq 54 o R Digital VO D PDOI Expansion Module PDQ2 Expansion Module Digital input lines can be read as part of the analog scan sequence and can be scanned over 100 times per second Digital input voltage may range from 0 to 15V with the logic threshold at lt 1 3V low and gt 3 8V high Digital values outside of the O to 15V range are not permitted Digital output lines can be updated at any time prior to or during an acquisition sequence or can be automatically updated over 100 times per second Digital outputs share a common return RTN In the output mode each output is an open col
55. from Personal DaqViewXL s toolbar Note that some of the pull down items have no toolbar equivalent 9 Menu Item New Configuration Open Configuration Save Configuration Save Configuration As Configure Devices Configure Channels Configure Acquisition Go Manual Trigger Personal DaqViewXL User s Guide Personal DaqViewXL Toolbar Function Opens the Select Active Devices window Opens the Channel Configuration Spreadsheet lf the window is already open pressing this button gives the window focus Opens the Configure Acquisition Dialog Various acquisition parameters can be set from this dialog Starts an acquisition and inserts the data into the current spreadsheet destination cell Pressing the button again stops the acquisition Manually triggers the acquisition when applicable Opens the Chart Display where data is displayed in graphical in a chart format If Chart Display is already open pressing this button gives the window focus Opens the Bar Graph Meters where data is displayed in a bar graph format If Bar Graph Meters is already open pressing this button gives the window focus Opens the Analog Meters Display where data is displayed in an analog meter format If Analog Meters Display is already open pressing this button gives the window focus Opens the Digital Meters Display where data is displayed in a digital meter format If Digital Meters is already open pressing this button g
56. information region i eee 2 Baines 2 cee e 0 000 Center zee a E a 1 sec J div Channel Information Region Item Description 9 Chart Maximum Scale The value at the upper grid limit line This is the value at the high end of the scale Value Grid Limit Line 10 Channel Selection Used to select the channel of chart group s available channels for which the information will be displayed Displays the label of the channel for which information is being displayed 11 Present Value The real time value of the selected channel 12 Center Used to display and change the value of the selected channel s chart centerline Changing the value of center results in an automatic change of the chart s high and low end values items 9 and 14 and possibly an automatic change of the units div item 13 Aside from using the center spinner controls to change center you can change the center value by placing the mouse cursor in or tabbing over to the field and then either typing in the desired value or using the PC keyboard up and down arrow control keys 13 Units Division Provides The units in units div can be C F K R uV mV V KHz or Hz The division the vertical increment of referenced is one vertical grid In the example above for PD1_A02 each vertical one grid box grid increment represents 4 876 V per division Changing the units division spinner controls A W will result in an automatic adjustment of
57. list to add the channel to the display e Double click on a channel in the selected channels list to remove the channel from the display e Hold down the keyboard s Shift Key and use the left hand mouse button to select a block of consecutive available channels up to 4 then click the Add button Example PD1_A03 PD1_A04 PD1_A05 PD1_A06 e Hold down the keyboard s Ctrl button and use the left hand mouse button to select up to 4 available channels these can be non consecutive then click the Add button Example PD1_A01 PD1_A03 PD1_A05 PD1_A07 Note You can also remove channels in a similar manner by highlighting a channel s in the Selected Channels box and then clicking on the Remove button Personal Dag User s Manual 989394 Personal DaqView 4 35 Note When a chart contains overlapping channels and the channels share values such that their traces reside on top of each other then the channels that are listed lower in the display list the most recently added channels will obscure the channels higher in the list those which were added first 9 In the display area on the left hand side of the screen click on a channel to check the channel s configuration and to re configure the channel if desired The Display Configuration Setup Window will appear similar to that in the following figure Note Changing the display configuration does not change the existing channel configuration setup It only changes how the ch
58. locate the file ppDaqView xla This file is located in the install directory specified by the setup program Click OK Browse i Fa Look in _ Personal DagviewsL EaypDaqview xla Cancel e Advanced Eino _Newsearch_ Find files that match these search criteria File name Text or property Eind Mow Files of byoe Add Ins CP sdat Fl Last modified any time New Search 1 Files Found Browse Option Dialog Box 4 Select Personal DaqViewXL from the Add Ins Available list Make sure there is a check next to Personal DaqgViewXL and then click OK Add Ins H E dd Ins available MS Query Add in For Excel 5 Compatib T ODBC Add In f aes Y Personal DagVviewxL M Report Manager R I Small Business Financial Manager shai a M Solver Add In Template Utilities I Template Wizard with Data Tracking Update Add in Links I Web Form Wizard F ersonal DagviewsL Make a connection with Personal Dagview and acquire data directly into your worksheet Add Ins Dialog Box with Personal DaqViewXL Selected 5 Excel loads the add in creating a Personal DaqViewXL item in the Tools pull down menu and a toolbar Tools Data Accounting Window Help i Personal DagviewsL Personal DagviewxXL gt New Configuration vif Spelling Ez Open Configuration AutoCorrect Save Configuration Save Configuration 4s Share Workbook
59. low 0 In this state digital output is closed to ground When the digital output will be used to switch an external load such as a relay the output may be up to 5V hi and Personal Daq s internal switch should be set to 1 Open In this use of the digital output the circuit is not closed to ground Note that since the reading column is for input values the applicable reading cell is shaded out when output state is selected 414 PersonalDaqView ges Personal Dag User s Manual When an active On channel is selected to Output State the Update Digital Outputs button on the I gt Main Control Window becomes active This button is used to update the digital output channels regardless of whether their output state is closed 0 or open 1 Note The update of changed output settings will not actually take place until the Update Digital Outputs button is pressed After selecting the digital output channels to the desired state open or closed click on the Update Digital Outputs button to actually set the indicated output states Power Up State Column This column allows you to set Personal Daq s physical internal switches to be open or closed during power up on a per channel basis After setting the state you can save them internal to the device by opening the Main Control Window s Device pull down menu and selecting Save power up settings When the device is unplugged or losses power its internal switches will
60. minimum frequency range for the specified channel DcotpDaqMaxFreq Configures the maximum frequency range for the specified channel DcotpDagFreqRes Configures the resolution of the specified frequency channel DcotpDaqOverrangeProtect Enables the overrange protection mode dagqSetTimeout DLL Function daqSetTimeout DaqHandleT handle DWORD mSecTimeout Visual BASIC VBdaqSetTimeout amp ByVal handle amp ByVal mSecTimeout amp Delphi daqSetTimeout handle DaqHandleT mSecTimeout DWORD Parameters handle Handle to the device for which the event time out is to be set mSecTimeout Specifies time out ms for events DerrNoError No error See Also Program References Description dagqSetTimeout allows you to set the time out for waiting on a single event or multiple events This function can be used in conjunction with the daqWaitForEvent and daqWaitForEvents functions to specify a maximum amount of time to wait for the event s to be satisfied The mSecTimeout parameter specifies the maximum amount of time in milliseconds to wait for the event s to occur If the event s do not occur within the specified time out the daqWaitForEvent and or daqWaitForEvents will return Personal Dag User s Manual Appendix B 887095 API Commands B 27 daqwaitForEvent DLL Function daqwaitForEvent DaqHandleT handle daqTransferEvent dagEvent daqwaitForEvent DaqHandleT handle DaqTransferEvent dagEvent V
61. modes system noise and includes a brief discussion of channel control and expansion Chapter 6 Calibration explains how to perform periodic calibrations using the Windows based program UserCal Chapter 7 Troubleshooting and Customer Assistance Appendices Appendix A API Custom Program Models explains the program models supplied on the release disk Appendix B API Commands describes the entire command set for Personal Daq Syntax parameters interpretation and error codes are explained Sections on the individual commands include their parameters types typical use and related information Appendix C N A removed from manual Appendix D Custom Labels provides blank labels and a Personal Daq channel layout reference The appendix also pertains to the pDaq_CustomLabels doc The file is located in the target directory Program Files pDaqView It provides blank labels in a table format that you can write in edit and print out from your PC Personal Dag User s Manual 887695 vV vi 887695 Personal Dag User s Manual Table of Contents 1 Personal Daq Unit Startup Overview 1 1 Inspect Your System 1 1 Install Software 1 2 Install Hardware 1 2 Mount Personal Dag Modules to DIN Rail option 1 2 Connect PDQ Module option 1 4 Connect Personal Daq to Host PC 1 5 Connect Channel Signal Inputs 1 6 Start Personal DaqView 1 7 Configure Syste
62. msg Pointer to a string to return the error text Returns DerrNoError No error See Also daqSetDefaultErrorHandler daqSetErrorHandler daqProcessError daqGetLastError daqDefaultErrorHandler Program References None Used With All devices Description dagFormatError returns the text string equivalent for the specified error condition The error condition is specified by the daqError parameter The error text will be returned in the character string pointed to by the msg parameter The character string space must have been previously allocated by the application before calling this function The allocated character string should be at minimum 64 bytes in length For more information on specific error codes refer to the AP Error Codes on page page B 33 B 20 API Commands Appendix B 887095 Personal Dag User s Manual daqGetDeviceCount DLL Function daqGetDeviceCount DWORD deviceCount daqGetDeviceCount DWORD deviceCount Visual BASIC VBdaqGetDevice deviceCount amp Delphi daqGetDeviceCount deviceCount PDWORD Parameters deviceCount Pointer to which the device count is to be returned DerrNoError No error See Also daqGetDeviceList daqGetDeviceProperties Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DIGEX1 C INITEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With All devices Description daqGetDeviceCount returns the number of currently configured devices This funct
63. not apply to Personal Daq 54 3 Ensure the desired channels are enabled Double click in a channel s On Off cell to enable or disable a channel as applicable 4 Ifyou want to record data to disk click on button 4 Arm Trigger for Disk Recording The data acquisition begins and data is stored to a disk file as indicated in the Data Destination Window Note that the default destination including the default file name of PDAQ BIN is as follows C PROGRAM FILES PDAQVIEW PDAQ BIN You can of course specify a different location 5 To see real time readings on the Channel Configuration Window click on button 10 Update All Indicators or button 16 Enable Readings Column The location of button 16 is indicated on page 1 8 6 If you want to read data but not record to disk click on button 10 or 16 but not button 4 In addition to the Channel Configuration Windows reading column you can click on one or more display icon buttons 11 12 13 or 14 to see your data in the form of a chart or meter You can view all display types or a combination of them at the same time Display options listed as button number followed by display type are o 11 scrolling charts 12 bar graph meters 13 analog meters 14 digital meters O O 30 Personal Daq User s Manual 878395 Unit Startup 1 11 Personal Daq iew Untitled cfg File View Acquire Device Tools Indicators Help Channel Configuration Control Tur c
64. of events which represents the list of events to wait on eventCount Number of defined events to wait on eventSet Pointer to an array of Booleans indicating if the events have been satisfied waitMode Specifies the mode for the wait DerrNoError No error Returns Used With All devices Description SOS daqWaitForEvents allows you to wait on specific Personal Daq events to occur on the specified devices This function will wait on the specified events and will return based upon the criteria selected with the waitMode parameter A time out for all events can be specified using the daqSet Timeout command Events to wait on are specified by passing an array of event definitions in the events parameter The number of events is specified with the eventCount parameter See the Transfer Event Definitions table for events parameter definitions Also see the Transfer Event Wait Mode Definitions table for waitMode parameter definitions B 28 API Commands Appendix B 887095 Personal Dag User s Manual API Reference Tables These tables provide information for programming with the Personal Daq Application Programming Interface Information includes channel identification and error codes as well as valid parameter values and descriptions The tables are organized as follows API Parameter Reference Tables Sub Title Parameter Description 1 daq Device Property Definitions Identifies the format DWORD
65. points Show Limits Displays limits by adding color red for high blue for low to the scale regions which equal and exceed the set limit values For Digital Meters reaching or exceeding the high limit is indicated by red numbers and an upper red bar reaching or exceeding the low limit in the negative direction is indicated by blue numbers and a lower blue bar In addition for Bar Graphs the indicator tip turns red for high limits and blue for low limit conditions For Analog Meters the dial arm s pivot point displays red or blue to indicate high or low limit respectively 6 Properties Allows setting and showing limits as well as opening the Scale dialog box 7 More gt gt The More gt gt button brings up a meters extension box This allows you to select 4 22 Personal DaqView several channels for which you want to assign the same meter attributes Without this feature each meter would have to be adjusted individually This feature only applies to meters that are of the same type e g meter attributes of a Bar Graph Meter will not carry over to attributes of an Analog or Digital Meter 989394 Personal Daq User s Manual Configure Meter Settings Function Descriptions Bar Graph Meters Mi Control View r m c 5 mjm 100 00 Note 1 5 00 90 00 29 00 0 00 4 1 PD1_A01 85 36 C Three Meters with High and Low Limits Set Analog Meters Control View MERNEK
66. scroll rate set in the chart s Properties box al ECSR ea Limit Lines Allows limit lines marking the upper and lower limits of the chart to be displayed as solid or dotted lines and provides a means of turning the limit lines off Timestamp Off Absolute Relative Properties Box Exits the Chart pull down menu Acquire Start Charts Starts the scrolling chart display Does not affect the recording of data to disk Display Stop Charts Stops the scrolling chart display Does not affect the recording of data to disk Display 4 28 Personal DaqView 989394 Personal Daq User s Manual View Grid Limit Lines Used to show or hide the grid limit lines Grid Lines Used to show or hide the grid lines Timestamp Absolute Ctrl F4 Selects absolute time for the timestamp Relative Ctrl F5 Selects relative time for the timestamp Off Ctrl F6 Turns the timestamp off Note Many of the menu functions can be achieved by using the appropriate toolbar buttons These buttons are discussed in the following text Toolbar Items Button Function 1 Group Select Indicates the current chart group Clicking on the down arrow W reveals other available groups To select a different chart group simply pull down the group list and select the desired group The group list can be obtained by any of the control options a clicking the down arrow W b using Ctrl G on the keyboard c using the k
67. should be set to 0 B 10 API Commands Appendix B 887095 Personal Daq User s Manual dagAdcSetFilter DLL Function dagqAdcSetFilter DaqHandleT handle DagAdcFilterType filterType DWORD filterWindow C daqAdcSetFilter DaqHandleT handle DagAdcFilterType filterType DWORD filterWindow Visual BASIC VbdagAdcSetFilter amp ByVal handle amp ByVal filterType amp ByVal filterWindow amp a nn DagAdcGetScan handle DaqHandleT filterType DaqAdcFilterType f1lterWindow DWORD Parameters handle Handle to the device for which to get the current scan configuration filterType Specifies the type of analog filtering to be performed currently DaftSWAvg filterWindow Specifies the number of scans over which to filter Returns DerrNokrror No error al refer to API Error Codes on page page B 33 See Also S O Program References Used With PersonalDag S Description daqAdcSetFilter sets the driver to perform filtering for analog channels The filterType parameter specifies the filter method to be used Once this function is set filtering will be performed on all analog channels in the scan group Note that the ilterWindow parameter specifies the number of scans over which the filtering method is to be applied daqAdcSetFreq Delphi dagAdcSetFreq handle DagHandleT freq single o O Parameters Handle Handle to the device for which the ADC acquisition frequency is to be set Freq Th
68. special by the user as in the B volts example page 4 9 In addition when a thermocouple type is selected from the range pull down list units of C F K or R are possible Also see Scale amp Offset page 4 7 Single ended Differential Identifies the channel mode as single ended or differential and is used to change the mode configuration When changing from differential to single ended mode a new channel row is added as well as a new default label For example Changing the mode of channel PD_1A01 Personal Dag Unit 1 Analog Channel 01 from differential to single ended results in two channels with default Physical Channel labels and User Labels of PD_1AO1L and PD_IAOIH Single ended inputs are typically used with signals that share the same common low COM such as multiple batteries which have their negative sides connected in common For Personal Daq applications the single ended mode is not to be used for thermocouples Differential inputs are required when signals do not share the same common low such as in the typical use of thermocouples A simple example showing two single ended inputs V1 and V2 and a differential input V3 follows Note that V1 V2 and V3 from the following figure correspond with the first three channels on the previous screen shot In the screen capture V1 and V2 are shown to have V for units and are single ended V3 a thermocouple with units of C and is shown to be Differential
69. speeds up Ata measurement duration of 610 milliseconds the last two bits are considered unreliable resulting in a resolution of 22 bits At a very fast measurement duration 12 5 milliseconds the nine most least significant bits are unreliable resulting in 15 bit accuracy Speed vs Resolution Speed Designation Measurement Maximum Resolution Duration _ Sample Rate Bits RMS per channel Samples sec 4 V to 4 V range Very Slow 50 60 Hz rejection 1 6 sec Slow 50 Hz rejection 2 2 7 sec Slow 60 Hz rejection 3 2 sec Medium 50 Hz rejection 7 7 sec Medium 60 Hz rejection 9 2 sec Medium 25 sec Fast 2 48 sec Very Fast 2 2 80 sec Each channel can have independent measurement duration and resolution The sample rates shown were obtained with a 10 channel scan and with continuous self calibration disabled Duration does not include the use of CJC measurements When you select the measurement duration you also determine the sample rate and resolution for the applicable channel For Personal Daq s analog input applications sample rates range from 1 6 samples sec up to 80 samples sec and corresponding resolution ranges from 22 to 15 bits Under Sampling and Aliasing When you select the measurement duration you also determine the sample rate and resolution for the applicable channel As shown in the previous table sample rates range from 1 6 samples sec up to 80 sampl
70. the acquisition frequency the acquisition trigger and the acquisition mode When configured the acquisition is then armed by calling the dagAdcArm function dagqAdcSetMux DaqAdcSetRate dagqAdcSetAcq DaqAdcSet TrigEnhanced Define a channel scan group Set the sampling rate Configure a counted acquisition for 10 post trigger scans Set the trigger event to be immediate Configure an ADC transfer data buffer to be 10 scans long and terminate once the end of the buffer is reached Initiate a transfer into the configured buffer At this point the Personal Daq device trigger is armed and A D acquisition will begin upon trigger detection If the trigger source has been configured to be DatsImmediate amp A D data collection will begin immediately Arm the acquisition Since trigger source is immediate This example will retrieve 10 samples from ur the acquisition begins now channels 1 through 8 triggered immediately with a 10 Hz sampling frequency and unity gain for Personal Daq Functions used include Wait for the acquisition to complete e VBdagAdcSetMux handle Process the data startChan amp endChan amp gain amp flags amp e VBdagAdcSetRate amp handle amp Mode amp acqState amp regRate actualRate e Function VBdagAdcSetTrigEnhanced handle amp adcRanges amp trigSense amp levels hysteresis opstr triggerSources amp
71. the cell has a given parameter list such as those in the On Range and Measurement Duration columns the parameter will change with each double click allowing you to cycle through all possible selections Note that these selections are repetitive in other words you will eventually advance to the same selection you started with Type in cells such as User Label Scale and Offset can be selected on double click for easy editing e Single click left then Single click right to write enable a cell Completing this action with the mouse buttons while having the cursor on a cell such as Scale or Offset allows you to use you PC s keypad to type the desired value into the field e Single click left single click right then single click left again to open an associated pull down list for the applicable cell from which a selection can be made This pull down list appears in the selected cell s row Note Although each type of channel configuration spreadsheet analog frequency and digital is discussed separately the common columns are presented in this section to avoid redundancy Note You can use your PC s keypad arrow keys to select new active cells in the spreadsheet Physical Channel automatically identifies the Personal Daq device and channel The user cannot change the Physical Channel nomenclature A few examples are PD1_A01 Personal Dag unit 1 Analog Input chann
72. the max scale and min scale values items 9 and 14 Aside from using the units div triangular controls to change the value you can change units div by placing the mouse cursor in or tabbing over to the field and then either typing in the desired value or using the PC keyboard arrow control keys 14 Chart Minimum Scale The value at the lower grid limit line This is the value at the low end of the scale Value Grid Limit Line 4 30 PersonalDaqView sea Personal Dag User s Manual 15 Multiply x2 and The Multiply x2 push button increases the size of the selected channel s chart by a 16 Divide 2 factor of 2 while automatically adjusting the chart s high and low values Aside from clicking on the Multiply Divide controls you can use your keyboard spacebar to control this feature once the button 15 or 16 is selected Selection may be with mouse or by tabbing over to the control Making changes to a channel s chart parameters does not affect the parameters of the other channels with the following exception Holding the keyboard s control key down while adjusting either spinner A V for center item 12 or spinner for units div item 13 causes the parameter change to apply to all channels for the chart not just the currently selected channel display This feature applies to the spinners and keyboard up and down arrow keys but not to the text input 17 Scrolling Time Scrolling Time is turned On or Off from the Ti
73. to 62 5 mV Pgainx128 21 31 to 31 mV PgainX1 PgainDiv5 0 8 20 to 20 V PgainX2 PgainDiv5 1 8 10to 10V PgainX4 PgainDiv5 16 8 5to 5V Pgainx8 PgainDiv5 17 8 2 5t0 2 5V Pgainx16 PgainDiv5 18 8 1 25 to 1 25 V PgainX32 PgainDiv5 19 8 312 to 312 mV PgainX64 PgainDiv5 20 8 156 to 156 mV PgainX128 PgainDiv5 21 8 62 to 62 mV PgainDiv5 8 Table6 Trigger Source Definitions daqAdcTriggerSource daqEnhTrigSensT DatsImmediate 0 DetsRisingEdge 0 DatsSoftware 1 DetsFallingEdge 1 DatsSoftwareAnalog 6 DatsDigitalChannel 8 DatsPulseCount DatsPulseTotalize 11 DatsAnalogSELow 12 DatsAnalogSEHigh 13 m O i DatsDigitalChannel DatsFrequency DatsPulseCount and DatsPulseTotalize do not apply to Personal Daq 54 Personal Dag User s Manual Appendix B 887095 API Commands B 31 Table 7 ADC Miscellaneous Definitions ADC Flag Definitions dagAdcFlag Analog High Speed Digital Flag Single Ended Differential Flag Single Ended Channel Flag DafAnalog 00h DafSingleEnded 00h DafSingleEndedLow 0000h DafScanDigital ts oih DafDifferential 08h DafSingleEndedHigh 1000h Digital Frequency Channel Types Thermocouple Types DafMeasDuration610 000000h DafDioDirect 00000h DafTcTypeJ DafMeasDuration370 100000h DafCtrPulse i 20000h DafTcTypeK DafMeasDuration310 200000h DafCtrTotalize 40
74. to be transferred to the application buffer Three routines are used DagAdcTransferSetBuffer Configure a buffer for A D transfer Allows configuration of the buffer for block and single reading update modes as well as linear and circular buffer definitions DagAdcTransferStart Start a transfer from the Personal Dag device to the buffer specified in the dagqAdcTransferSetBuffer command DaqAdcTransferStop Stop a transfer from the Personal Dag device to the buffer specified in the dagqAdcTransferSetBuffer command To find out whether a background A D transfer is complete or to stop transfers use the following function DaqAdcTransferGetStat Return current A D transfer status as well as a count representing the total number of transferred scans or the number of scans available Digital Functions Does not apply to Personal Daq 54 After the digital group is configured the ports can be read or written a byte at atime Note that low high and digital I O are accessed a nibble at a time A single bit of a digital channel can be read or written using the following routines daqIOReadBit _ Return indicated bit from selected channel daqIOWriteBit Send indicated bit to selected channel A 14 API Custom Program Modules Appendix A 878495 Personal Dag User s Manual API Commands B Overview This appendix includes information regarding type sensitive API function wrappers for Visual Basic Personal Daq dri
75. to individual ports of a self powered USB hub In addition the self powered hub is connected to a downstream USB powered hub which is also connected to three Personal Daq units and optional PDQ modules Notice that the Personal Daqs connected to the self powered hub have no adapters connected to them This is because the hub receives external power in addition to the PC supplied USB power which is capable of supporting the downstream devices connected directly to it In comparison the three Personal Daqs connected to the USB powered hub each require their own power adapter As in example 2 the power adapters used must be capable of supplying at least 500 mA and have a voltage rating of 6 to 16 VDC Note USB port locations vary from PC to PC 3 6 Hardware Setup 878695 Personal Daq User s Manual Personal DaqView 4 Overview 4 2 Standard Plus and XL Version Software 4 2 Main Control Window 4 3 Toolbar Buttons 4 3 Pull Down Menus 4 3 Channel Configuration Window 4 6 Channel Configuration Window Toolbar 4 6 Channel Configuration Window Pull down Menus 4 6 Common Spreadsheet Columns 4 7 Analog Input Spreadsheet 4 10 Frequency Pulse Input Spreadsheet 4 12 Digital Input Output Spreadsheet 4 14 Configure Acquisition Dialog Box 4 15 Configure Data Destination and File Converter Preferences 4 18 Sequential Destinations Auto Rear
76. to the invocation of the VBdagAdcSetTrigEnhanced function which will use the parameters to configure a trigger event for the acquisition Based on the parameters below the acquisition will trigger immediately upon arming The adcRanges amp trigSense amp levels and hysteresis arrays are initialized but the values will not affect the trigger event configuration as DatsImmediate configures an immediate trigger For i 0 To ChanCount 1 trgSrc amp i DatsImmediate amp adcRanges amp i DarBiMinus5Sto5V trigSense amp 1 DetsRisingEdge amp levels i 0 hysteresis i 0 Next 1 ret amp VBdagAdcSetTrigEnhanced handle amp trgSrc amp gains amp adcRanges amp trigSense amp levels hysteresis _chans amp ChanCount amp Next the acquisition mode is characterized as one that continues until the previously defined scan count has been satisfied ret amp VBdagAdcSetAcg amp handle amp DaamNShot amp 0 ScanCount amp The post trigger scan rate is configured using the previously defined Freq value and the actualRate variable is passed by reference to hold the actual rate for which the device was configured in the event that the requested rate could not be configured ret amp VBdagAdcSetRate amp handle amp DarmFrequency DaasPostTrig Freq actualRate In VisualBASIC there are two different function wrappers for the VBDagAdcTransferSetBuffer function one of
77. total length of the buffer in scans transferMask Configures the buffer transfer mode Returns DerrNoError No error See Also daqAdcTransferStart daqAdcTransferStop daqAdcTransferGetStat daqAdcSetAcq daqAdcTransferBufData Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With All devices Description dagAdcTransferSetBuffer allows you to configure transfer buffers for ADC data acquisition This function can be used to configure the specified user or driver allocated buffers for subsequent ADC transfers If a user allocated buffer is to be used two conditions apply The buffer specified by the buf parameter must have been allocated by the user prior to calling this function The allocated buffer must be large enough to hold the number of ADC scans as determined by the current ADC scan group configuration The scanCount parameter is the total length of the transfer buffer in scans The scan size is determined by the current scan group configuration Refer to the daqAdcSetScan and daqAdcSetMux functions for further information on scan group configuration The character of the transfer can be configured via the transferMask parameter Among other things the transferMask specifies the update layout usage and allocation modes of the buffer The modes can be set as follows e DatmCycleOn Specifies the buffer to be a circular buffer in buffer cycle mode allows the transfer to continu
78. will be placed scanCount The number of scans to be read Valid values 1 65536 triggerSource The trigger source see table at end of appendix rising Boolean flag to indicate the rising or falling edge for the trigger source level The trigger level if an analog trigger is specified Valid values 0 4095 freq The sampling frequency in Hz Valid values 100000 0 0 0002 gain The channel gain See tables at end of appendix flags Channel configuration flags in the form of a bit mask Returns DerrInvGain Invalid gain DerrInvChan Invalid channel DerrInvTrigSource Invalid trigger DerrInvLevel Invalid Level DerrFIFOFull Buffer Overrun Used With All devices Description daqAdcRdScanN reads multiple scans from multiple A D channels This function will configure the pacer clock arm the trigger and acquire count scans consisting of each channel starting with startChan and ending with endChan The gain setting will be applied to all channels The freq parameter is used to set the acquisition frequency See ADC Flags Definition table for channel flags parameter definition B 8 API Commands Appendix B 887095 Personal Daq User s Manual dagqAdcSetAcq DLL Function dagqAdcSetAcq DaqHandleT handle daqAdcAcqMode mode DWORD preTrigCount DWORD postTrigCount C daqAdcSetAcq DaqHandleT handle DaqAdcAcqMode mode DWORD preTrigCount DWORD postTrigCount Visual BASIC VBdagqAdcSetAcg amp ByVal handle amp ByVal mode amp ByV
79. with the channel flags specified Arm the trigger Acquire count scans from the specified A D channel See ADC Flags Definition table in ADC Miscellaneous Definitions for channel flags parameter definition B 6 API Commands Appendix B 887095 Personal Daq User s Manual daqAdcRdScan DLL Function dagqAdcRdScan DaqHandleT handle DWORD startChan DWORD endChan PVOID buf Pen daqAdcGain gain DWORD flags daqAdcRdScan DaqHandleT handle DWORD startChan DWORD endChan PVOID buf ke DaqAdcGain gain DWORD flags Visual BASIC VBdaqAdcRdScanSingle amp ByVal handle amp ByVal startChan amp ByVal endChan amp buf ByVal eo etl gain amp ByVal flags amp dagqAdcRdScan handle DaqHandleT startChan DWORD endChan DWORD buf pointer es const gain dagAdcGain flags DWORD Parameters Handle Handle to the device from which the ADC scan is to be acquired StartChan The starting channel of the scan group EndChan The ending channel of the scan group Buf An array where the A D scans will be placed Gain The channel gain Flags Channel configuration flags in the form of a bit mask DerrInvGain Invalid gain DerrInvChan Invalid channel DerrNoError No error See Also dagAdcRdScanN daqAdcSetMux dagqAdcSetClock daqAdcSetTrig Used With All devices Description daqAdcRdScan reads a single sample from multiple channels This function will use a software trigger to immediately trigger and acquire
80. 000h DafTcTypeT DafMeasDuration130 300000h DafCtrFreq i 80000h DafTcTypeE DafMeasDuration110 400000h DafCtrDutyLo gt 100000h DafTcTypeN DafMeasDuration40 500000h DafCtrDutyHi i 200000h DafTcTypeS DafMeasDuration20 600000h DafTcTypeR DafMeasDuration12_5 700000h DafTcTypeB Frequency vs Period ADC Acquisition Mode Definitions ADC Transfer Mask Definitions daqAdcRateMode daqAdcAcqMode dagAdcTransferMask DarmPeriod 0 DaamNShot DatmCycleOff 00h DaamNShotRearm DatmCycleOn oih DaamInfinitePost DatmUpdateBlock 00h DaamPrePost DatmUpdateSingle 02h DatmUserBuf 00h DatmSavePreTrig 20h DatmIgnoreOverruns 10h DatmDriverBuf ADC Clock Source Definitions ADC File Open Mode Definitions ADC Acquisition Transfer Active Flag Definitions dagqAdcClockSource dagqAdcOpenMode dagAdcActiveFlag DaomAppendFile DaafAcgqActive DaomWriteFile 1 DaafAcqTriggered DaomCreateFile 2 Daafransferactive om ADC Acquisition State ADC Buffer Transfer Mask daqAdcBufferxferMask ADC Filter Type daqAdcAcqState daqAdcSetFilter DaasPreTrig 0 DabtmWait DaasPostTrig 1 DabtmRetAvail DabtmNoWait DabtmRetNotDone DabtmPreTrigBlock 10h Table 8 Setting Options optionType DcotpdaqDebounceTime 1 Sets the debounce time for the Freg Pulse Channel DcotpdaqMinFreq Sets the min freq range for the Freq Channel DcotpdaqMaxFreq Sets the max freq range for the Freq Channel Dco
81. 03 in units of C F K R mV V Hz or kHz depending on the BelPD1_A04 configuration When starting the program with no configuration file present E Char 2 Personal DaqView creates a display configuration of one group E P01_A05 one chart and one channel the first active channel found You fea PD1_A6 can change your chart display configuration through use of a dialog box or Chart Setup Wizard See pages 4 31 and 4 37 respectively Chart Display Window The Chart Display Window allows you to view scrolling charts for selected channels in real time You can access this window by selecting the Display Scrolling Charts button located in the toolbar of the Main Control Window The Chart Display window contains four Pull down menus a toolbar chart region and channel information region Personal Daq User s Manual 989394 Personal DaqView 4 27 E Personal Dag iew Chart Display Pale x Char Acquire View Timestamp Lainie Liini53 Liinise Li1 02 03 ay 1 sec r div 18 Personal DaqView s Chart Display Window Note A discussion of the numbered buttons and regions begins on page 4 29 Pull Down Menus Pull Down Menu Function Chart Wizard Ctrl W Opens Chart Setup Wizard for manual or automatic configuration of the chart display Detailed discussion of the Chart Setup Wizard begins on page 4 37 Setup Ctrl D Accesses the Display Configuration Setup dialog box for normal editing of the curr
82. 2 USB Hubs and Power Adapters 3 3 Connecting Your Personal Daq Acquisition System 3 4 Connecting a PDQ Expansion Module to a Personal Dag 3 4 Connecting Various Hardware Setups 3 4 Example 1 Direct Connection to Computer USB Port s 3 4 Example 2 Connection to USB Powered Hub 3 5 Example 3 Connections to Self Powered and USB Powered Hubs 3 5 The discharge of static electricity can damage some electronic components Semiconductor devices are especially susceptible to ESD damage You should always handle components carefully and you should never touch connector pins or circuit components unless you are following ESD guidelines in an appropriate ESD controlled area Such guidelines include the use of properly grounded mats and wrist straps ESD bags and cartons and related procedures Never connect an expansion module to or remove it from a Personal Daq main unit while the main unit is connected to a power source Such action may result in EEPROM errors and loss of calibration data Never remove a USB cable from an active Personal Dag device while an acquisition is in progress An active device is any device that is currently open and has channels configured for scanned input Such disconnection may require you to exit and then re launch Personal DaqView after the USB cable has been connected When using Personal Daq modules to acquire data computer energy save modes can cause false data
83. 25 male connector to avoid damaging Personal Daq s expansion connector A properly made harness will also ensure good pin contact See following figure HI connected to Analog Input 2H LO connected to Analog Input 2L DC Volts Calibrator Connector Harness Not Supplied Personal Daq 55 Use pins 13 and 24 to measure voltage From multimeter to pin 13 From multimeter SS lt to pin 24 Harness made from Personal Daq oe male DB25 Expansion Port i Measuring Voltage at Personal Daq s Expansion Port 20 Connect the multimeter positive lead to pin number 24 and the negative lead to pin number 13 note the harness in the preceding figure Measure the reference voltage at Personal Daq s expansion port and note the value for use in the following step 2i Using the keypad of your PC or laptop enter the reference value obtained from step 20 Select Next UserCal now calculates calibration constants and stores them in Personal Daq s serial EEPROM UserCal displays a brief calibration report Personal Daq User s Manual 878395 Calibration 6 5 22 Disconnect the calibration equipment from the Personal Daq e VDC Calibrator Harness and multimeter copper short remove from Analog In 2L and Personal Daq common low COM The calibration procedure is complete You may now return your Personal Daq system to its data acquisition status 6 6 Calibration 878395 Personal Daq Use
84. 394 Personal DagView 4 5 Help Contents and Index Accesses the program s Help file Contents include Introduction Setting Up Personal DaqView Taking an Acquisition Viewing Your Data Frequently Asked Questions Troubleshooting About Personal DaqView Provides the program s software version number Channel Configuration Window You can bring up the Channel Configuration Window by using the Configure Channel Settings button 9 on the Main Control Window toolbar or by selecting Channel Configuration from the Main Control Window s View pull down menu The Channel Configuration Window contains a Control pull down menu and a 2 button toolbar The window displays any one of three tabbed spreadsheets for selecting the type of channel to be configured The tabs are labeled Analog Input Frequency Pulse Input and Digital Input Output W Channel Configuration Of x Control 3601 ngie endedditterential Differential Analog Input Frequency Pulse Input Digital Input Output Physical single ended Measurement PD1_Adt 2 477280 10 0 to 10 0 Differential 110 ms FD1_A02 T 70 337 Type Differential 110 ms iD 0 PDI_AD3L On 2290454 4 00 to 4 00 7 Single ended 110 ms 1 0 0 0 PO1_A03H On 2 645321 4 00 to 4 00 y Single ended 110 ms 1 0 0 0 PDI A04 1PO1 A04 On 4 142167 5 00 to 5 00 Y Differential 110 ms 1 0 0 0 zl Channel Configuration Window Selected for Analog Input Spreadsheet Channel Config
85. 5 vii 5 Signal Management Overview 5 1 Channel Control and Expansion 5 3 Signal Acquisition 5 3 Measurement Duration Sample Rate and Resolution 5 3 Under Sampling and Aliasing 5 3 Triggering 5 5 Input Isolation 5 5 Signal Modes 5 6 System Noise 5 7 Averaging 5 7 Analog Filtering 5 7 Input and Source Impedance 5 7 Crosstalk 5 7 6 Calibration Introduction 6 1 Required Equipment 6 2 Calibration Procedure 6 2 7 Troubleshooting amp Customer Assistance Radio Frequency Interference 7 1 Electrostatic Discharge ESD 7 1 Troubleshooting 7 2 Customer Assistance 7 5 Appendices A API Custom Program Models B API Commands C NA removed from manual D Custom Labels viii 887695 Personal Dag User s Manual Unit Startup 1 Overview 1 1 Configure System 1 8 Inspect Your System 1 1 Channel Configuration 1 9 II Sof 1 2 Acquisition Configuration 1 9 nstall Software 7 Data Destination Configuration 1 10 Install Hardware 1 2 Collect Data 1 10 Mount Personal Daq Modules to DIN Rail eet ee ae et option 1 2 Quick Start for Personal DaqView 1 11 Connect PDQ Module option 1 4 Connect Personal Daq to Host PC 1 5 Connect Channel Signal Inputs 1 6 Start Personal DaqView
86. AQEX FRM VB DAQEX PAS Delphi Used With All devices Description daqGetDriverVersion allows you to get the revision level of the driver currently in use daqGetLastError DLL Function _if daqGetLastError DaqHandleT handle daqError errCode C daqGetLastError DaqHandleT handle DaqError errCode Delphi daqGetLastError handle DaqHandleT var errCode daqError Parameters handle Handle to the device Returned last error code Returns DerzNoError No error UsedWith Alidevcss OOS Description dagqGetLastError allows you to retrieve the last error condition registered by the driver daqiORead DLL Function daqIORead DaqHandleT handle daqiIODeviceType devType daqIODevicePort devPort DWORD whichDevice daqIOExpansionPort whichExpPort PDWORD value daqIORead DaqHandleT handle DaqiIODeviceType devType DaqIODevicePort devPort DWORD whichDevice DaqIOExpansionPort whichExpPort PDWORD value Visual BASIC VBdaqiORead amp ByVal handle amp ByVal devType amp ByVal devPort amp ByVal whichDevice ByVal whichExpPort amp value amp daqiIORead handle DaqHandleT devType daqIODeviceType dvPort daqIlODevicePort whichDevice DWORD whichExpPort daqIOExpansionPort var value DWORD Parameters Handle to the device to perform the IO read devType IO Device type devPort IO port selection whichDevice IO device instance to read from whichExpPort IO device expansion port to read from
87. As CommandBarPopup Dim cbButton As CommandBarButton Get the Personal DaqViewXL menu object Set cbpMenu CommandBars Tools Controls Personal DaqViewXL Get the Go command button object Set cbButton cbpMenu Controls 8 Execute the button s command if the button is enabled If cbButton Enabled Then cbButton Execute End Sub This is equivalent to clicking Go on the Personal DaqViewXL menu or toolbar Any of the other commands on the Personal DagViewXL menu may be executed in a similar manner e If Personal DaqView cannot connect to your hardware on start up it will automatically switch to the Simulated Instrument mode when loaded from Personal DaqViewXL Personal DaqViewXL User s Guide 918596 491 0905 rev3 0 13 Note 14 491 0905 rev 3 0 g96 Personal DaqViewXL User s Guide Signal Management 5 Overview 5 1 System Noise 5 7 Channel Control and Expansion 5 3 Averaging 5 7 Signal Acquisition 5 4 Measurement Duration Sample Rate and Analog Filtering 5 8 Input and Source Impedance 5 8 Crosstalk 5 8 Resolution 5 4 Under Sampling and Aliasing 5 4 Triggering Input Isolation Signal Modes Overview This chapter pertains to signal management the use of different types of signals and how to reduce common noise problems The final portion of the chapter contains basic troubleshooting tips This table defines data a
88. Buf Specifies that the driver allocate the acquisition buffer as a circular buffer whose length is determined by the scanCount parameter with current scan group configuration This option allows the driver to manage the circular acquisition buffer rather than placing the burden of buffer management on the user This option should be used with the daqAdcTransferBufData to access the acquisition buffer The daqAdcTransferStop or the daqAdcDisarm function will stop the current transfer and de allocate the driver supplied ADC acquisition buffer The default setting is DatmUserBuf The DatmUserBuf option specifies a user allocated acquisition buffer Here buffer management must be done in user code This option should be used with the daqAdcTransferStart function to perform the data transfer operation Personal Dag User s Manual Appendix B 887095 API Commands B 17 dagAdcTransferStart DLL Function daqAdcTransferStart DaqHandleT handle Delphi daqadoTransferStart handle DagHandleT o lt O Handle Handle to the device to initiate an ADC transfer DerrNoError No error Used With Alldevices Description daqAdcTransferStart allows you to initiate an acquisition transfer The transfer will be performed under the current active acquisition If no acquisition is currently active the transfer will not initiate until an acquisition becomes active via the daqAdcArm function The transfer will be characterized by th
89. Configuration Note For Digital Meters Configure the Digital Meters settings by first clicking the right mouse button anywhere within the digital meter display area A pop up menu will appear allowing you to reconfigure the meter in regard to scale limits channel selection etc Refer to the Configure Meter Settings page 4 21 for more detail 4 26 Personal DaqView 989394 Personal Daq User s Manual Chart Display Reference Note For your very first chart display setup or when the configuration file has been deleted refer to the Chart Setup Wizard section beginning on page 4 37 A Note Regarding Standard Plus and XL Software Versions Personal DaqgView Plus permits the use of multiple groups with up to four overlapping channels per chart The standard version of Personal DaqView is limited to one group and to one channel per chart Another distinction of the Plus version can be seen when using the Chart Setup Wizard feature The Plus version can make use of Simple Moderate or Advanced automatic chart creation functions of the wizard however the standard version is resricted to use of Simple mode Discusssion of the Chart Setup Wizard begins on page 4 37 If you do not have Personal Daq View Plus but are interested in its expanded features please contact your service representative for detailed information Note that Personal DaqView Plus can only be activated by use of an authorized registration number Per
90. Daq IODeviceType devType DaqIODevicePort devPort DWORD whichDevice DaqIOExpansionPort whichExpPort DWORD bitNum BOOL bitValue Visual BASIC VBdaqiOWriteBit amp ByVal handle amp ByVal devType amp ByVal devPort amp ByVal whichDevice amp ee ByVal whichExpPort amp ByVal bitNum amp ByVal bitValue amp daqiOWriteBit handle DaqHandleT devType daqIODeviceType dvPort daqiIODevicePort whichDevice DWORD whichExpPort daqIOExpansionPort bitNum DWORD bitValue longbool Parameters handle Handle of the device to perform an IO write to devType IO device type devPort IO device port selection whichDevice IO device selection whichExpPort IO device expansion port address bitNum Bit number to write bitValue Bit value to write TRUE high FALSE low DerrNoError No error See Also daqIOWrite daqIORead daqiOReadBit Program References DIGEX1 C DAQEX FRM VB DAQEX PAS Delphi All devices except Personal Daq 54 Description daqIOWriteBit allows you to write a specified bit on the selected device and port The write operation will write the specified bit value to the bit selected The selected bit specified by the bitNum parameter corresponds to the channel on the port for the IO to be driven The bitValue parameter should be set to TRUE to drive the channel to a high state or FALSE indicating a low state daqOnline Delphi daqOnline handle DaqHandleT var online longbool S SCS Par
91. If a step does not apply to your unit simply go on to the next one Note 1 Note 2 gt Expansion Module User Customized Label oe Optional amp 16V SOO mA Max Label Slot Shaded cells of label 7 extend from slot for easy removal Connect High Speed USB Cable from host computer to the Personal Dag USB port Note The external power port is not used for the simple system setup discussed in this chapter Refer to Chapter 3 ee l PPE for examples of multiple unit systems screw Terminal Block P that make use of this connector Removable Personal Dag 36 Personal Dag 35 with PDO Expansion Module Note 1 Label slots are included on Personal Daq 55 and 56 The slots are not included on Personal Daq 54 Note 2 An expansion module PDQ1 or PDQ2 can be added to Personal Dag 55 and 56 units Although an expansion module can physically connect to a Personal Daq 54 it will not function with the unit Personal Daq 54 does not include expansion functionality For 54 devices the 25 pin port is used only for calibration as discussed in chapter 6 1 2 Unit Startup 878395 Personal Dag User s Manual Mount Personal Daq Modules to DIN Rail Option The optional PDQ10 DIN Rail Mounting Kit contains a base BR 24 two feet FE 8 and an installation guide The information found in the guide has been repeated here for user convenience 1 Mount Personal Daq Module to Base BR 24 Note If your Perso
92. NS 0 4744 Starting Index z File Ending Index PDAG BIN 46 toad Starting File PO AG_5 BIN Browse Conversion Formats Ending File POAG_46 B1N Cancel Data Destination Window Collect Data 1 10 Unit Startup Click the Enable Readings Column button 16 see page 1 8 or the Update All Indicators button 10 see following figure to start the acquisition The data acquisition begins and the readings column becomes active However data is not recorded to disk Clicking the Arm Trigger for Disk Recording button 4 will send the data to disk lt 3 Personal Dag iew Untitled cig File View Acquire Device Tools Indicators Help Click one of the toolbar s display icon buttons 11 12 13 or 14 to see your data in the form of a chart or meter Display options are as follows 11 is scrolling charts 12 is bar graph meters 13 is analog meters and 14 is digital meters Note that you can view all display types or a combination of them at the same time Note 1 For scrolling charts a Chart Setup Wizard is used to set up the desired chart display Channels not set up in the display can still be enabled and read on the channel configuration window Note 2 Chapter 4 is devoted entirely to the Personal DaqgView program and its Chart Setup Wizard feature 878395 Personal Dag User s Manual Quick Start for Personal DaqView Once your Personal Daq system has been properly c
93. POT_ AO ne Digital Meters Shown with 5 Meters Selected for Viewing Note Due to transducer and transient noises the accuracy of voltage readings is 0 02 Temperature accuracy varies depending on thermocouple type with type J having 0 5 C for a range of 100 C to 760 C For your application please refer to the proper specifications including thermocouple type when applicable Double clicking the left mouse button in a meters scale area brings up a channel selection pop up menu see Bar Graph Meters item H A single click with the right mouse button in this same area brings up a configuration pop up menu see Bar Graph Meters item I Both of these pop up menus are discussed in the section Meters Configuration Menu page 4 21 Note that Meter 1 for PD1_A01 in the above figure is displaying a trend indicator in the increase direction and also shows that the reading 91 45 is in high limit region The number 91 45 is red and contains a red bar over it The items in the above figure as follows A Start Stop n a Stay on Top Print Rows x Columns Select the number of Meters to be displayed orup Note You can activate a Channel Selection box by double clicking left mouse button in a meter s scale area You can activate a Configuration Pop Up Menu with a single click of the right mouse button in a meter s scale area Both of these pop up menus are discussed in the section Meters Configuration Menu page 4 21
94. RANGE Temperature out of CJC range DerrTCE_VRANGE Voltage out of TC range DerrTCE_PARAM Unspecified parameter value error DerrTCE_NOSETUP DerrNotCapable Background DerrOverrun 2Bh 43 dacTCConvert called before dacTCSetup Device is incapable of function A buffer overrun occurred 2Dh 45 Unspecified parameter value error DerrZCNoSetup dac convert Called before dac Setup DerrInvCalFile DerrMemLock 2Fh 47 Cannot open the specified cal file Cannot lock allocated memory from operating system DerrMemHandle DerrNoPreTActive Personal Dag User s Manual 31h 49 32h 50 Cannot get a memory handle from operating system No pre trigger configured Appendix B 887095 API Commands B 33 API Error Codes DerrTooManyHandles 60h 96 No more handles available to open DerrInvLockMask 6lh 97 Only a part of the resource is already locked must be all or none DerrAlreadyLocked 62h 98 All or part of the resource was locked by another application DerrAcqArmed 63h 99 Operation not available while an acquisition is armed DerrParamConflict 64h 100 Each parameter is valid but the combination is invalid DerrInvMode 65h 101 Invalid acquisition wait dac mode DerrInvOpenMode 66h 102
95. User s Manual 878595 General Information amp Specifications 2 5 2 6 At a measurement duration of 610 milliseconds the last two bits are considered unreliable resulting in a resolution of 22 bits At a very fast measurement duration 12 5 milliseconds the nine most least significant bits are unreliable resulting in 15 bit accuracy Speed vs Resolution Speed Designation Measurement Duration Maximum Sample Rate Resolution Bits RMS per channel Samples sec 4 V to 4 V range Very Slow 50 60 Hz rejection 610 ms 1 6 sec 22 Slow 50 Hz rejection 370 ms 2 7 sec 22 Slow 60 Hz rejection 310 ms 3 2 sec 22 Medium 50 Hz rejection 130 ms 7 7 sec 21 Medium 60 Hz rejection 110 ms 9 2 sec 21 Medium 40 ms 25 sec 19 Fast 20 ms 48 sec 17 Very Fast 12 5 ms 80 sec 15 Notes 1 Each channel can have independent measurement duration and resolution 2 The sample rates and resolutions shown were obtained with a 10 channel scan and with continuous self calibration disabled 3 Duration does not include the use of CUC measurements Note When measuring variable input signals as opposed to relatively steady input signals the variable signals will require more samples sec to obtain a realistic signal representation Available sample rates range from 1 6 samples per second up to 80 samples per second as indicated in the preceding table General Information
96. You will need to use an Authorization Code the first time you launch Personal DaqViewXL The code is provided when the application is purchased Note 1 The following steps assume that Personal DaqView has already been installed Note 2 If you are replacing Personal DaqViewXL with a newer version you should remove the older version prior to installing the new application To install the Personal DaqViewXL application 1 Run Personal DaqView 2 Select Authorization from the File pull down menu An Authorization dialog box will appear 3 Type in the code as it appears on your Authorization Sheet 4 Click the lt Apply Code gt button First Time Use Personal DaqViewXL is an Excel add in that must be loaded into the Excel environment before it can be used Perform the following steps to load Personal DaqViewXL into Excel 1 Start Excel refer to Microsoft documentation as needed 2 Select the Tools menu and click on Add Ins This will open the Add Ins dialog box as shown below Add Ins EI Add Ins available 4nalwsis ToolPak P Analysis ToolPak VB4 e Sutosave W Conditional Sum wizard File Conversion Wizard MS Query Add in For Excel 5 Compatityig 5 Query Add in For Excel 5 Compatibility Work with Microsoft Query to gather external data Excel s Add Ins Dialog Box 2 491 0905 rev 3 0 918596 Personal DaqViewXL User s Guide 3 Click the Browse button and
97. a time It is important to understand that other channels those not in the display setup maintain their existing configuration status They are not affected by the edit of the configuration display You can enable additional channels from the Channel configuration window Enabling additional channels allows you to acquire more data however it will not change your display on Personal DaqView s Chart Display Window In other words you can also acquire data from channels which you do not monitor Personal Daq User s Manual 989394 Personal DaqgView 4 33 Manually Configuring a Chart Display If you plan to have a chart setup which is not weighted evenly 1 e different numbers of channels per chart and different numbers of charts per group you may want to manually setup your chart display from scratch that is without beginning from a pre existing display configuration This method is arrived at from the Chart Setup Wizard window by clicking on the Manual Chart Setup Create Charts button When this button is clicked the program exits the Chart Setup Wizard and enters the manual method of Display Configuration Setup Although this method is referred to as manual it still contains some automatic elements such as Automatically Add Groups to the Setup Note Even if an unevenly distributed chart display is desired you can always edit a pre existing chart setup or create a new setup by one of the Chart Setup Wizard s automatic metho
98. a bold mono spaced Courier font to distinguish characters and avoid ambiguity dagqAdcAcqGetStat DLL Function daqAdcAcqgGetStat DaqHandleT handle PDWORD active PDWORD preTrigCount PDWORD postTrigCount PDWORD totalAvail PDWORD bufCycles DWORD bufPosition C daqAdcAcqGetStat DaqHandleT handle PDWORD active PDWORD preTrigCount PDWORD postTrigCount PDWORD totalAvail PDWORD bufCycles DWORD bufPosition Visual BASIC VBdaqAdcAcqGetStat amp ByVal handle amp ByRef active amp ByRef preTrigCount amp ByRef postTrigCount amp ByRef totalAvail amp ByRef bufCycles amp ByRef bufPosition amp daqAdcAcqGetStat handle DaqHandleT var active DWORD var preTrigCount DWORD var postTrigCount DWORD var totalAvail DWORD var bufCycles DWORD var bufPosition DWORD Parameters handle Handle of device from which to obtain status active Indicates the current state of the acquisition preTrigCount Indicates the number of pre trigger scans acquired postTrigCount Indicates the number of post trigger scans acquired totalAvail Indicates the total number of available scans bufCycles Indicates the number of buffer cycles processed BufPosition Indicates the buffer position Returns DerrNoError No error None Used With All devices Description daqAdcAcqGetStat allows you to retrieve the current state of the acquisition in terms of the number of pre trigger and post trigger scans acquired the total amount of acquired scans available
99. aamInfinitePost amp which will configure the acquisition as having indefinite length and as such will be terminated by the application In this mode the pre and post trigger count values are ignored ret amp VBdagAdcSetAcqg amp handle amp DaamInfinitePost amp 0 0 Next set the internal sample rate to 3 Hz ret amp VBdagAdcSetRate amp handle amp DarmFrequency amp DaasPostTrig amp 3 actual The acquisition begins upon detection of the trigger event The trigger event is configured with daqAdcSetTrigEnhanced The next line defines the trigger event to be the immediate trigger source which will start the acquisition immediately The variable DatsSoftwares amp is a constant defined in PDAQX BAS Since the trigger source 1s configured as immediate the other trigger parameters are not needed TrigSource amp DatsSoftware amp For i 0 To 7 trgSrc amp i DatsSoftware amp adcRanges amp i 0 trigSense amp i 0 levels i 0 hysteresis i 0 Next 1 ret amp VBdagAdcSetTrigEnhanced handle amp trgSrc amp gains amp adcRanges amp trigSense amp levels hysteresis channels amp 0 A buffer now is configured to hold the A D data to be acquired This buffer is necessary to hold incoming A D data while it is being prepared for disk I O Since this is to be an indefinite length transfer to a circular buffer the buffer cycle mode should be turned on with DatmC
100. ae Type K Differential Type K Differential Type K Differential 10 0 to 10 0 Differential 10 0 to 10 0 Differential Err Jal Ready E a el Personal DaqView Channel Configuration Screen within Excel 2 Configure acquisition settings using the Configure Devices Configure Channels and Configure Acquisition toolbar buttons or tool pull down menu selections These steps launch Personal DaqgView s configuration screens Note that the Personal DaqView configuration information found in the Personal Daq User s Manual still applies to Personal DaqViewXL Also see the section in this user s guide Configuration Reference beginning on page 5 10 491 0905 rev 3 0 918596 Personal DaqViewXL User s Guide Real Time Charting Personal DaqViewXL provides a real time strip chart window as in Personal DaqView for graphical presentation of data You can select up to 16 channels of data with one channel assigned to each graph The strip chart representation is continuous while data is being collected All 16 charts are synchronized and have an adjustable scrolling speed that can be set independent of the sampling rate Selecting the Charts icon in the Personal DaqViewXL toolbar will activate the following window The chart selection must be made prior to initiating an acquisition selecting the Go icon Microsoft Excel Book I File Edit view Insert Format Tools Data Accounting Window Help rA SAY s BAS o n gt
101. al preTrigCount amp ByVal postTrigCount amp daqAdcSetAcq handle DaqHandleT mode daqAdcAcqMode preTrigCount DWORD postTrigCount DWORD Parameters handle PostTrigCount Number of post trigger ADC scans to be collected Returns DerrNoError Noerror OC COCCC NNNNCCW d Used With sf All devices daqAdcSetAcq allows you to characterize the acquisition mode and the pre and post trigger durations The mode parameter describes the style of data collection The preTrigCount and postTrigCount parameters specify the respective durations or lengths of the pre trigger and post trigger acquisition states Acquisition modes can be defined as follows e DaamNShot Once triggered continue acquisition until the specified post trigger count has been satisfied Once the post trigger count has been satisfied the acquisition will be automatically disarmed DaamInfinitePost Once triggered continue the acquisition indefinitely until the acquisition is disabled by the daqgAdcDisarm function DaamPrePost Begin collecting the specified number of pre trigger scans immediately upon issuance of the daqgAdcArm function The trigger will not be enabled until the specified number of pre trigger scans have been collected Once triggered the acquisition will then continue collecting post trigger data until the post trigger count has been satisfied Once the post trigger count has been satisfied the acquisition will be automatically d
102. ameters handle Handle of the device to test for online online Boolean indicating whether the device is currently online Returns DerrNoError No error daqopen daqClose Used With All devices Description daqOnline allows you to determine if a device is online The device handle must be a valid device handle which has been opened using the daqOpen function The online parameter indicates the current online state of the device TRUE device online FALSE device not online B 24 API Commands Appendix B 887095 Personal Daq User s Manual daqOpen DLL Function daqOpen LPSTR_daqNane Visual BASIC VBdaqOpen amp ByVal daqName Delphi daqopen devName PChar String representing the name of the device to be opened Returns A handle to the specified device Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DIGEX1 C INITEX1 C DAQEX FRM VB DAQEX PAS Delphi Description daqOpen allows you to open an installed Personal Daq device for operation The daqOpen function will initiate a session for the device name specified by the daqName parameter by opening the device initializing it and preparing it for further operation The daqName specified must reference a currently configured device daqOpen should be performed prior to any other operation performed on the device This function will return a device handle that is used by other functions to reference the device Once the device has been opene
103. amp handle amp active amp retCount amp Code may be placed here which will process the buffered data or perform other application activities At some point the application needs to determine the event on which the direct to disk acquisition is to be halted and set the acqTermination flag Loop While acqTermination amp 0 At this point the application is ready to terminate the acquisition to disk The following line will terminate the acquisition to disk and will close the disk file ret amp VBdagAdcDisarm amp handle amp The acquisition as well as the data transfer has been stopped We should check status one more time to get the total number of scans actually transferred to disk ret amp VBdagAdcTransferGetStat handle amp active amp retCount amp The specified disk file is now available The retCount amp parameter will indicate the total number of scans transferred to disk Personal Dag User s Manual Appendix A 878495 API Custom Program Modules A 9 Multiple Channel Types This section demonstrates how to configure multiple channels on a Personal Daq and acquire data using these channels in the Same scan sequence After all of the prior code has been executed the transfer can be started and the acquisition can be armed in the same manner as shown in the other models Functions used include e VBdaqgGetDeviceList amp ByRef deviceList As String ByRef deviceCount amp e VBdaqGetDevic
104. an be done from the Start menu by navigating as follows Start Settings Control Panel System Hardware Device Manager Depending on the operating system access to the Device Manager might be obtained directly from System b Scroll down the list and look for pDaq or Personal Daq If neither is found look for Unknown Device The latter will have a yellow question mark next to it c Select the device found in step b and remove it by clicking on the lt Remove gt button d Unplug the USB cable from the Personal Daq e If you have not already done so install Personal DaqView on the computer f Reconnect the USB cable to the Personal Daq This should start the driver install process and the Personal Daq should now show up in the Device Manager list 5 Personal DaqView appears to run fine with one Personal Daq but not with two or more You need to have the Plus version of Personal DaqView if you want to use more than one Personal Daq device To see whether or not you have the Plus version check the blue title bar at the top of the Personal DaqView screen If it does not indicate Personal DaqView Plus you will need to order it from the factory Otherwise it will not be possible to run Personal DaqView with multiple devices 6 When running Personal DaqView under Windows 2000 or Windows XP the computer blue screens when the Personal Daq is connected and the driver is loade
105. an support only one expansion module PDQ1 modules add 20 single ended or 10 differential inputs to the Personal Daq 55 or 56 PDQ2 modules add 40 single ended or 20 differential inputs to the Personal Daq 55 or 56 Measurement Duration Sample Rate and Resolution In relation to sampling analog input the terms measurement duration sample rate and resolution have the following meanings Measurement duration per channel the amount of time used for sampling a channel s input signal You can independently set the measurement duration for each channel The measurement durations for Personal Daq s analog channels range from very slow 610 milliseconds for one sample to very fast 12 5 milliseconds for one sample Sample rate Samples per second The sample rate is the number of samples that take place per second With the very slow measurement duration of 610 milliseconds there will only be 1 6 samples per second With the very fast measurement duration of 12 5 milliseconds there will be 80 samples per second Resolution Bit RMS The number of reliable data bits that exist for a signal s measurement The greater the resolution the more detailed the reading for example with increased resolution a reading of 5 12 V could become 5 11896 V Personal Daq actually provides for 24 bits of data information however the accuracy of the least significant bits becomes less as the measurement duration speeds up Personal Dag
106. anced Note Youcan use Chart Setup Wizard to quickly set up a large number of charts You can then fine tune the layout manually via the Manual Chart Setup feature A Manual Chart Setup Create Charts button allows you to bypass the Chart Setup Wizard and enter a manual mode This option makes use of Personal DaqView s Display Configuration feature discussion on manually creating a chart display begins on page 4 34 Manual Chart Setup allows you to vary the number of assigned channels per chart as well as vary the number of charts per group Note The standard version of Personal DaqView has a Chart Setup Wizard that in regard to Automatic Chart Creation 1s restricted to the Simple mode Personal Daq User s Manual 989394 Personal DaqView 4 37 Chart Setup Wizard Chart Setup Wizard Automatic Chart Creation Selector Channels Manual Chart Setup Create Charts PO1_A0 Charts with one channel Create l assigned per chart Start with POT 401 b The number of Instrument Data Channels available is 30 The above setup will assign 1 channels starting from channel Create Charts Chart Setup Wizard Simple Mode Chart Setup Wizard Automatic Setup Options Group Setup Chart Setup Channel Setup Type for Chart Groups Simple 1 group only Up to 16 charts 1 channel per chart Moderate 1 group only Up to 16 charts Up to 4 overlapping channels per chart
107. andle amp VBdaqOpen amp PDAQ123456 ret amp VBdagqSetErrorHandler amp handle amp 100 On Error GoTo ErrorHandler The On Error GoTo command in Visual Basic allows a user defined error handler to be provided rather than the standard error handler that Visual Basic uses automatically The program uses On Error GoTo to transfer program control to the routine ErrorHandler if an error is encountered Personal Daq errors will send the program into the error handling routine This is the error handler Program control is sent here on error ErrorHandler errorString S ERROR in ADC1 errorString S errorString amp Chr 10 amp BASIC Error StrS Err If Err 100 Then errorString errorString S amp Chr 10 amp DaqBook Error HexS daqErrno MsgBox errorStringS Error End Sub Personal Dag User s Manual Appendix A 878495 API Custom Program Modules A 3 This section shows the use of several one step analog input routines These Coen commands are easier to use than low level commands but less flexible in scan At this point the data is in configuration These commands provide a single function call to configure the buffer provided by the and acquire analog input data This example demonstrates the use of four user in binary format Personal Daq one step ADC functions Functions used include Foreground Acquisition with One Step Commands m s 1 sample from Read multiple samples from
108. andler Call the default error handler B 20 B 20 daqFormatError Return text string for specified error daqSetTimeout Set the time out value for the Personal Dag operation daqWaitForEvent Wait for specified Personal Daq device event daqwaitForEvents Wait for multiple specified Personal Dag device events Utility Functic daqGetDriverVersion Return the software version B 22 daqAdcSetMux Configure a scan specifying start and end channels Al wit Irol y e daqSetOption Set options for a device s channel signal path configuration B 27 daqAdcSetScan Configure up to 256 channels making up an A D or HS digital input scan _daqAdcGetScan Read the current scan configuration ustom ADC Acquisition Prototy jgel daqAdcSetTrigEnhanced Configure an A D trigger with multiple trigger event conditions uUStOM AVC Acquisition Frototypes i daqAdcSetRate Configure the ADC scan rate with the mode parameter B 12 daqAdcSetFreq Configure the pacer clock frequency in Hz B 11 dagqAdcGetFreq Read the current pacer lock frequency TEE a Set SEMIS TERETE TTEEREEE E T Specity direct to disk transfers TEYA S EEE ETE B 4 daqAdcDisarm Disarm an acquisition daqAdcAcqGetStat Returns curr ate of acqu ent st isition B 3 daqAdcTransferBufData Transfer scans from driver allocated buffer to user specified buffer B 15 daqAdcTransferSetBuffer Setup a destination buffer fo
109. ange 0 10 V 2 Resolution 10 uV 3 Peak to peak noise 600 uV The digital voltmeter or digital multimeter used to verify calibration voltage accuracy must meet the following criteria 1 Minimum Resolution 6 1 2 digits 2 Minimum DC Accuracy 0 005 full scale Failure to comply with these requirements can result in faulty equipment performance and necessitate additional services of an authorized metrology lab Never connect an expansion module to or remove it from a Personal Dag main unit while the main unit is connected to a power source Such action may result in EEPROM errors and loss of calibration data Allow at least 1 hour warm up time for the VDC Calibrator Digital Multimeter and each Personal Daq unit including expansion module that is to be calibrated If a cold cell device is used allow the cell to warm up in accordance with device operator s manual Personal Daq User s Manual 878395 Calibration 6 1 Required Equipment You will need the following items to perform Personal Daq calibration Ensure the equipment meets the specifications listed in the cautions on the preceding page Equipment for Equipment for Voltage Portion of Calibration Thermocouple Portion of Calibration VDC Calibrator 0 C Temperature Reference Cold cell or ice bath T type Thermocouple T type T C wire Digital Voltmeter Copper Short 2 Pin Connector Harness made from DB25 Male Connector see figure on page 6 5 Note
110. art groups charts and channels will be displayed The following figure shows two radio buttons on the screen These buttons allow you to select the method of adjusting the display mode From this screen you need to choose Units Full Scale or Units Div Display Configuration Setup ale o lon j LELOFF EHP Display Et Group 1 EEE Chart 1 Data Type Category Voltage Type 4 096 Unita W Channel Settings Units Full Scale Units 7 Division Trace Color Be x Max 4 096 Display Mode Y Center j Y Min 4 096 m Me O 7123 Adjusting Channel Setup for Channel 1 Remember you can enable additional channels from the Channel configuration window Enabling additional channels allows you to acquire more data however it will not change your chart display on Personal DaqView s Chart Display Window In other words you can acquire data from channels which you do not monitor 4 36 Personal DaqView 989394 Personal Daq User s Manual Chart Setup Wizard m Introduction Chart Setup Wizard is a feature used by many programs including Personal DaqView and PostView The feature allows you to set up your initial chart display configuration using an automated method or manually create a new display configuration The following points are important in regard to the Chart Setup Wizard e You can edit the chart display by accessing the Display Configuration Setup dialog box from the
111. ata Destination is discussed on page 4 18 You can access the Configure Acquisition dialog box by using the Configure Acquisition button icon with the image of three slide bars This button is located on the toolbar the Main Control Window The Configure Acquisition dialog box contains three tabs Pre Trigger Trigger and Post Trigger When first opened the dialog box defaults to the Trigger tab selection In addition to the trigger related aspect the dialog box contains two other sections These are labeled Averaging and Acquisition Parameters Personal Daq User s Manual 989394 Personal DaqView 4 15 The Trigger Section The following figure depicts the parts that make up an acquisition Together the pre trigger and post trigger make up a trigger block Trigger Stop Event Pre trigger By duration or number of scans Post trigger by duration number of scans or manual stop Trigger Block Contant Aa Pre T rigger Trigger Post Trigger Pre Trigger Trigger Post T rigger Source Manual Channel z Duration 0 Scans Condition Rising PoS Threshold 0 eal Husteresis g Pre Trigger Tab Selected foe ME zj Acquisition Parameters Mas Rate 80 0000Hz Min Rate 0 000 Hz Scan Rate 27 2650 Hz i Continuous Calibration f Period Averaging Type Count Contigure Acquisition Pre T rigger Trigger Post Trigger oo a Duration 100 Scans
112. ates digital outputs for all digital channels that are selected to output state also see Digital Input Output Spreadsheet in Chapter 4 Does not apply to Personal Daq 54 Configure Data Destination Accesses the Configure Data Destination window Note that this window provides a means of selecting sequential destinations through an auto rearm feature Configure Acquisition Accesses the Configure Acquisition window Configure Channel Settings Brings up the Channel Configuration window From this window you can configure channels for Analog Input Frequency Pulse Input and Digital Input Output channels depending on which tab is selected 10 Update All Indicators Starts all on screen indicators with a display of up to date data Has no affect on the recording of data to disk Auto Rearm even if selected will not occur when using this control This button is also used to pause all indicators 11 Display Scrolling Charts Displays data graphically in a scrolling chart 12 Display Bar Meters Displays data in a bar graph format 13 Display Analog Meters Displays data displayed in a dial gage format 14 Display Digital Meters Displays data in a digital meter format 15 View Data Launches an independent post data acquisition program such as eZ PostView Refer to the Post Acquisition Analysis PDF included on your CD for detailed information 16 Enable Readings Activates the
113. bath or cold cell device at 0 C b Connect red thermocouple wire to channel 1L c Connect blue thermocouple wire to 1H d Daisy chain stripped T type T C wire to all analog channels as follows e red wire to each analog Lo channel except channel 2L e blue wire to each analog Hi channel except channel 2H The following two figures illustrate these connections for a Personal Daq 55 with a PDQ1 expansion module 6 2 Calibration 878395 Personal Dag User s Manual Thermocouple T Type T C Wire at 0 C ft PDQ1 Expansion Module gt Personal Daq 55 Cold Cell or Simulator P stabalized at 0 C PDQ1 Expansion Module Personal Daq 55 Daisy Chain of Analog High Channels with Exception of 2H Daisy Chain of Analog Low Rela Channels with Exception of 2L on ay Se From T Type Thermocouple CJC Calibration Thermocouple is connected with red wire to 1L and blue wire to 1H Analog Highs and Lows are daisy chained as indicated Note that 2L and 2H are left open for voltage related connections as discussed in step 7 Example of Connections for CJC Calibration It is important to perform calibration in a controlled still air environment at 23 2 C Personal Dag User s Manual 878395 Calibration 6 3 Calibration 7 Make the following 3 voltage related connections see following figure 10 11 12 13 14 15 16 17 f DC Volts Calibrato
114. ble Readings Activates the Channel Configuration Window s reading column Does not affect the Column recording of data to the destination spreadsheet 17 Disable Readings Stops the Channel Configuration Window s reading column Does not affect the Column recording of data to the destination spreadsheet Channel Configuration Window Pull down Menu The channel configuration window contains one pull down menu labeled Control This menu provides a means of enabling and disabling the readings column as do toolbar items 16 and 17 Personal DaqViewXL User s Guide 918596 491 0905 rev 3 0 7 Auto Load Function Excel s Add Ins dialog box has a check box for enabling v or disabling an automatic loading of Personal DaqViewXL each time you run Excel To enable or disable the auto load feature refer to the following two paragraphs as needed Disabling Auto Load If you want to avoid an automatic loading of Personal DaqViewXL each time you run Excel perform the following steps 1 Start Excel 2 Select the Tools menu and click on Add Ins The Add Ins dialog box opens 3 Locate the Personal DaqViewXL line in the Add Ins Available list box and click on it This should remove the checkmark next to the item 4 Click OK Personal DaqViewXL will no longer auto load with Excel See the following paragraph for simple steps on enabling the Personal DaqViewXL auto load feature Enabling Auto Load
115. blinking means that an acquisition is in progress Ready LED on solid means that the unit has power has USB communications established and is ready to acquire data PDQ Expansion Modules Does not apply to Personal Daq 54 You can connect either of two PDQ expansion modules PDQI or PDQ2 to the Personal 55 and Personal 56 units Module specifications are listed in the preceding chapter With exception of the end faces the PDQ modules have the same physical appearance as Personal Daq 56 The above figure includes an illustration of a PDQ2 module connected to a Personal Daq 55 Two locking clips are used to hold the units together The clips ensure a good connection is maintained Personal Daq 54 does not accept expansion modules 3 2 Hardware Setup 878695 Personal Daq User s Manual USB Hubs and Power Adapters With the use of USB hubs you can connect up to 100 Personal Daq units to one PC USB hubs can be of the self powered type or of the USB powered type Both types of hubs are available from a variety of vendors however if you encounter any difficulty in obtaining a USB hub please contact your service representative Power Adapters Power adapters also referred to as auxiliary power packs are required for some self powered hubs and for Personal Daq modules that are powered from USB powered hubs In addition Personal Daq units will require the use of a power adapter when used with certain laptops When using a pow
116. ce BOOL rising FLOAT level FLOAT freq DaqAdcGain gain DWORD flags Visual BASIC VBdaqAdcRdNSingle amp ByVal handle amp ByVal chan amp buf ByVal ScanCount amp ByVal triggerSource amp ByVal rising amp ByVal level ByVal Freq ByVal gain amp ByVal flags amp daqAdcRdN handle DaqHandleT chan DWORD buf pointer scanCount DWORD triggerSource daqAdcTriggerSource rising longbool level single freq single const gain dagAdcGain flags DWORD Parameters Handle Handle to the device for which the ADC channel samples are to be acquired Chan A single channel number Buf An array where the A D scans will be returned ScanCount The number of scans to be taken Valid values 1 32767 TriggerSource The trigger source Rising Boolean flag to indicate the rising or falling edge for the trigger source Level The trigger level if an analog trigger is specified Valid values 0 4095 Freq The sampling frequency in Hz 100000 0 to 0 0002 Gain The channel gain Flags Channel configuration flags in the form of a bit mask DerrFIFOFull Buffer overrun DerrInvGain Invalid gain DerrIncChan Invalid channel DerrInvTrigSource Invalid trigger Program References Used With All devices Description daqAdcRdN is used to take multiple scans from a single A D channel This function will Configure the pacer clock Configure all channels with the specified gain parameter Configure all channel options
117. ch more complex system is one that contains 100 Personal Daq 56 units 100 PDQ expansion modules and a combination of USB powered and self powered hubs Despite the wide range of possibilities in between use of the following examples should enable you to properly connect your system Note In the examples that follow the USB hubs have four external ports downstream ports The USB hubs used in your system may have more Connections can be adjusted accordingly When using a power adapter with your Personal Dag system be sure to supply power from the adapter to the Personal Daq before connecting the USB cable This allows Personal Dag to inform the host computer upon connection of the USB cable that the unit requires minimal power from the computer 3 4 Hardware Setup 878695 Personal Daq User s Manual Example 1 Direct Connection to Computer USB Port s Example I Direct Connection to Computer USB Port s In example 1 two Personal Daqs and optional PDQ modules are connected by cable to each of the computer s USB ports The number of USB connectors may vary from PC to PC When you connect Personal Daq units directly to a USB connector in this manner no additional power source is required since the computer s USB connector power pins supply the Personal Daq and associated PDQ expansion module with adequate power 500 mA at 4 to 5 25 V The use of certain notebook computers may require the use of a power adapter with your P
118. char opStr dagAdcSetTrigEnhanced DaqHandleT handle DaqAdcTriggerSource trigSources DagAdcGain gains DaqAdcRangeT adcRanges DagEnhTrigSensT trigSensitivity PFLOAT level PFLOAT hysteresis PDWORD channels DWORD chanCount char opStr Visual BASIC VBdagAdcSetTrigEnhanced amp ByVal handle amp ByRef triggerSources amp ByRef gains amp ByRef adcRanges amp ByRef trigSense amp ByRef levels ByRef hysteresis ByRef chan amp ChanCount amp opstr daqAdcSetTrigEnhanced handle DaqHandleT trigSource daqAdcTriggerSourceP gains dagAdcGainP adcRanges daqAdcRangeTP trigSensitivity daqEnhTrigSenstTP level PSINGLE hysteresis PSINGLE channel PDWORD chanCount DWORD opStr PCHAR Parameters handle Handle to the device for which the ADC acquisition trigger is to be configured triggerSource A pointer to an array of trigger sources for each defined trigger channel gains A pointer to an array of gains for each defined A D trigger channel levels A pointer to an array of A D analog trigger levels for each defined A D trigger channel hysteresis A pointer to an array of hysteresis values for each defined A D trigger channel trigSense A pointer to an array of trigger sensitivity flags for each defined A D channel trigger source adcRanges A pointer to an array of polarity flag definitions for each defined A D channel channels A pointer to an array of trigger channels represent
119. cquisition terms as used in this manual Data Acquisition Terms and Meanings Acquisition A collection of scans acquired at a specified rate Aliasing Analog A type of error that results from having a scan rate set too low for a given variable input signal Depending of the amount of aliasing a sign wave may appear jagged flat or as a sign wave at a different frequency A signal of varying voltage or current that communicates data Typical analog signals have the form of sine waves Analog to Digital Converter ADC A circuit or device that converts analog values into digital values such as binary bits for use in digital computer processing API Application Program Interface The interface program within the Personal Daq system s driver that includes function calls specific to Personal Daq hardware and can be used with user written programs several languages supported Buffer Buffer refers to a circuit or device that allows a signal to pass through it while providing isolation or another function without altering the signal Buffer usually refers one of the following a A device or circuit which allows for the temporary storage of data during data transfers Such storage is often necessary to compensate for differences in data flow rates A FIFO First In First Out buffer is one in which the data that is stored first is also the first data to leave the buffer b A follower stage w
120. d This problem should not be seen if you are using a current driver If you are experiencing a blue screen when the driver is being loaded verify that you are installing the latest driver Personal Dag User s Manual 878495 Troubleshooting amp Customer Assistance 7 3 7 Personal DaqView runs fine with analog inputs but blue screens with frequency inputs When sampling frequency channels have at least one analog input channel active This will prevent the blue screen state 8 The Personal DaqView window stays minimized If this happens the Personal DagView window is actually restored but its position is off the screen You can resolve this problem as follows a Run Personal DaqView b In the task bar right click on the Personal DaqView icon Note that Restore is probably grayed out c Select Move with a left click and without moving the mouse take your hand off the mouse d Press any one of the 4 arrow keys on your keyboard then move the mouse until you see the window or possibly the outline of the window positioned where you want it e Left click The window should be back to normal f Resize and relocate the window as desired g Select Save from the File menu to save your configuration including the new window location and size Note If you need to open up the Channel Configuration window you can do so by going to the View pull down menu and selecting Channel Config
121. d the device handle should be used to perform subsequent operations on the device Most functions in this manual require a device handle in order to perform their operation When the device session is complete daqClose may be called with the device handle to close the device session daqOpenList DLL Function daqOpenList DaqDeviceListT deviceList PDWORD deviceIndex DWORD deviceCount C daqOpenList DaqDeviceListT deviceList daqName PDWORD deviceIndex DWORD deviceCount Visual BASIC VBdaqOpenList amp ByVal deviceList deviceIndex amp ByVal deviceCount amp daqOpenList var deviceList DaqDeviceListT var deviceIndex PDWORD deviceCount DWORD Parameters DeviceList Array of names that represents the devices to be opened DeviceIndex Array of indexes that represents logical device mapping for the corresponding device name DeviceCount Number of devices in the array to open o A Dandietothe specified Devicebist Rie O22CloseList dagOnline daqOpen dag lose S ee ee Description daqOpenList allows you to open a list of deviceCount installed Personal Daq devices The daqgOpenList function will initiate a session for the device names specified by the deviceList parameter by opening the devices initializing them and preparing them for further operation Once initialized all devices in the list will be referenced via the same handle and all operations performed on that handle will affec
122. d as active devices include a serial number as part of their identification If the data is awkward when coming from a real device have the device calibrated according to the instructions in chapter 6 of the user s manual A PDF version of the document is included on the data acquisition CD If the calibration fails see page 7 5 in regard to customer assistance 7 2 Troubleshooting amp Customer Assistance 878495 Personal Daq User s Manual 3 There is a blue screen or an error message when connecting the Personal Daq to the PC Many notebook computers fail to meet the 500 mA current that is specified by the USB standard and in fact will not even supply the 400 mA that is required by the Personal Daq If this is the case you will need to use an auxiliary power supply as follows a Unplug the USB cable from the Personal Daq b Obtain a power adapter that provides an output voltage of 6 to 16 VDC and a maximum current output of 500 mA c Connect the adapter s power in line to a suitable power source d Connect the adapter s power out line to the Personal Daq s External Power connector e Reconnect the USB cable to the Personal Daq 4 Personal DaqView was not installed prior to the hardware Personal DaqView should have been installed before connecting and installing the hardware If you installed the hardware first you will need to complete the following steps a Access the Windows Device Manager This c
123. d earlier the more variability a signal has the more samples that are needed to accurately portray it Triggering controls an acquisition cycle Once the system is armed a trigger is required to collect the data Typically three data collection parameters are specified the pre trigger count the post trigger scan count and the trigger source The user must determine the triggering requirement based on the nature of the measurement and the amount of data needed to satisfy the system s purpose Immediate Key Hit External TTL Channel Value Rising Type of Triqger Source Fallin Pre Trigger Scan Count LY Trigger Event Post Trigger Scan Count scan Group gt Time Scan Period Personal Daq User s Manual 878695 Signal Management 5 5 e The pre trigger scan count specifies the number of scans that are to be collected before the trigger point If the pre trigger scan count is greater than zero the system will continuously collect data until the trigger is satisfied If no pre trigger scans are required the system sits idle until the trigger then it collects the post trigger scans before it disarms e The post trigger scan count specifies the number of scans to be collected after the trigger point After the trigger the post trigger scans will be collected as programmed and then the system will disarm itself e The trigger source can be a software command an external TTL input etc An analog input channel on reach
124. dagqAdcSetDataFormat Used With All devices S O Description daqCvtRawDataFormat allows the conversion of raw data to a specified format This function should be called after the raw data has been acquired See the transfer data functions daqAdcTransfer for more details on the actual collection of raw data The buf parameter specifies the pointer to the data buffer containing the raw data Prior to calling this function this user allocated buffer should already contain the entire raw data transfer Upon completion this data buffer will contain the converted data the buffer must be able to contain all the converted data The DacaRotate can be used to reformat a circular buffer into a linear buffer The scanCount parameter specifies the length of the raw buffer in scans Since the converted data will overwrite the raw data in the buffer make sure the specified buffer is large enough physically to contain all of the converted data The chanCount parameter specifies the number of channels in each scan Personal Daq User s Manual Appendix B 887095 API Commands B 19 daqCvtSetAdcRange DLL Function daqCvtSetAdcRange FLOAT Admin FLOAT Admax daqCvtSetAdcRange FLOAT Admin FLOAT Admax Visual BASIC VBdaqCvtSetAdcRange amp ByVal ADmin ByVal ADmax Delphi daqcvtsetadcRange Admin single Admax single S CS Admin A D minimum voltage range Admax A D maximum voltage range Return
125. dcGetScan amp ByVal handle amp channels amp gains amp flags amp chanCount amp dagqAdcGetScan handle DaqHandleT channels PDWORD gains daqAdcGainP flags PDWORD chanCount PDWORD Parameters Handle to the device for which to get the current scan configuration channels An array to hold up to 512 channel numbers or 0 if the channel information is not desired gains An array to hold up to 512 gain values or 0 if the channel gain information is not desired flags Channel configuration flags in the in the form of a bit mask chanCount A variable to hold the number of values returned in the chans and gains arrays PRetums DerrNokrror NoemorSOSOSCSSCS S fUsedWith Alldevicos OOS Description dagqAdcGet Scan reads the current scan group consisting of all channels currently configured The returned parameter settings directly correspond to those set using the dagAdcSetScan function For further description of these parameters refer to daqAdcSetScan See ADC Flags Definition table for channel flag definitions B 4 API Commands Appendix B 887095 Personal Dag User s Manual dagAdcRd DLL Function dagqAdcRd DaqHandleT handle DWORD chan PVOID sample dagAdcGain gain DWORD flags C daqAdcRd DaqHandleT handle DWORD chan PVOID sample DaqAdcGain gain DWORD flags Visual BASIC VBdaqAdcRdSingle amp ByVal handle amp ByVal chan amp sample ByVal gain amp ByVal flags amp daqAdcRd handle DaqHa
126. ds and then edit the setup To manually setup your chart display using the clean slate approach as opposed to editing an existing display perform the following steps 1 Select the Chart Setup Wizard from the Charts pull down menu of Personal DaqView s Chart Display Window The Wizard setup window appears see following figure 2 Click on the Manual Chart Setup Create Charts button The Display Configuration Setup box appears Since the previous display configuration was reset no groups or charts are seen in the display area on the left side of the screen Display Configuration Setup OF m Display Automatically Add Groups to the Setup Add ee Groups to the Setup And create fi Charts in each Group Create Groups Manually Add Groups to the Setup Enter Group name 4dd Display Group Display Configuration Setup A Clean Slate Approach 3 As seen in the previous figure for the Clean Slate approach you have two options at this point Perform 3a or 3b as appropriate Option 3a is typically used 3a Automatically add groups to the setup Enter the number of groups and charts desired by using the cursor and typing in the value or by using the pull down arrows W and making the appropriate selections then click on the Create Groups button 3b Manually add groups to the setup Type in the name of the chart group then click on the Add Display Group button The Disp
127. e Over Voltage Protection 45 V relative to analog common 2 10 General Information amp Specifications 878595 Personal Daq User s Manual Temperature Specifications one year 15 to 35 C Note All temperature specifications assume unit is held in relatively still air environment Thermocouple Types J K T E R S B N Cold Junction Compensation Accuracy Personal Daq 54 0 7 C Personal Daqg 55 0 5 C Personal Daq 56 0 5 C Thermocouple Accuracy In Personal Daq applications thermocouples should not be connected single ended Doing so can result in noise and false readings This is especially true when acquiring other high amplitude signals in conjunction with thermocouple signals that are connected single ended Thermocouple Accuracy C for Personal Daq 54 55 and 56 waai _ 1 3 1 3 3 8 TC Type Temp Very Medium C Slow 50 60 Hz Rejection 0 4 0 4 J 100 0 0 3 0 3 1 1 1 1 3 700 0 3 0 3 0 9 0 9 2 5 1 8 5 1 4 3 9 1 3 3 7 1 6 4 5 1 4 4 1 2 9 1 2 3 4 0 9 2 6 0 7 1 9 5 2 14 8 4 6 13 1 3 9 11 400 1 6 1 6 2 5 6 5 6 16 a 700 1 9 1 5 2 5 2 5 2 14 7 1 3 1 3 2 4 6 4 6 12 8 ras 2 2 22 3 3 7 9 7 9 13 7 B 1 4 1 4 2 4 8 4 8 13 7 100 0 7 0 7 1 2 6 2 6 7 3 n 0 0 6 0 6 0 8 2 2 5 9 700 0 4 0 4 0 6 1 4 1 4 4 Note Thermocouple accuracy excludes cold junction compensation error Personal Dag User s Manual 878595 General Inf
128. e Specifies the requested rate actualRate Returns the actual rate applied This may be different from the requested rate Returns DerrNoError No error dagqAdcSetAcq dagAdcSetTrig daqAdcArm dagAdcSetFreq daqAdcGetFreq Program References DAQEX PAS Delphi ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DAQEX FRM VB Used With ATT devices Description dagqAdcSetRate configures the scan rate using the rate mode specified by the mode parameter Currently the valid modes are e DarmPeriod Defines the requested rate to be in periods sec DarmFrequency Defines the requested rate to be a frequency This function will set the acquisition rate requested by the reqRate parameter for the acquisition state specified by the acqState parameter Currently the following acquisition states are valid DaasPreTrig Sets the pre trigger acquisition rate to the requested rate e DaasPostTrig Sets the post trigger acquisition rate to the requested rate Personal Dag does not allow a pre trigger rate different from the post trigger rate Therefore the pre trigger rate settings will be ignored and the post trigger rate will be used for both the pre trigger and the post trigger scan rates If the requested rate is unattainable on the specified device a rate will be automatically adjusted to the device s closest attainable rate If this occurs the actualRate parameter will return the actual rate for which the device has been pro
129. e channels array adcRanges Defines a pointer to an array of A D ranges for the A D channels defined in the corresponding channels array Note Personal Daq ignores adcRanges parameters hysteresis Defines a pointer to an array of hysteresis values for each corresponding A D channel defined in the channels array levels Defines a pointer to an array of levels for which when satisfied will set the trigger event for the corresponding channel defined in the channels array opStr Defines a string that defines the logical relationship between the individual channel trigger events and the global A D trigger condition Currently the string can be defined as to perform an and operation or to perform an or operation on the individual channel trigger events to formulate the global A D trigger condition Note Personal Daq ignores opStr parameters trigSense Defines an array of trigger sensitivity definitions for satisfying the defined trigger event for the corresponding channel defined in the channels array Currently the valid trigger sensitivity values are as follows DetsRisingEdge Trigger the channel on the rising edge of the signal at the specified level DetsFallingEdge Trigger the channel on the falling edge of the signal at the specified level B 14 API Commands Appendix B 887095 Personal Daq User s Manual dagqAdcSoftTrig DLL Function Visual BASIC Delphi ddagAdcSoft trig handle DaqHandle
130. e current settings for the transfer buffer The transfer buffer can be configured via the dagAdcSetTransferBuffer function dagAdcTransferStop C dagAdcTransferStop DaqHandleT handle Delphi dagAdcTransferStop handle DaqHandleT Returns DerrNoError Noerror C SOC CUS ram References Used With All devices S O Description daqAdcTransferStop allows you to stop a current buffer transfer if one is active The current transfer will be halted and no more data will transfer into the transfer buffer Though the transfer is stopped the acquisition will remain active Transfers can be re initiated with daqAdcStartTransfer after the stop as long as the current acquisition remains active The acquisition can be halted by calling the daqAdcDisarm function daqClose DLL Function Visual BASIC Parameters handle Handle to the device to be closed DerrNoError No error See Also Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DIGEX1 C INITEX1 C DAQEX FRM VB DAQEX PAS Delphi All devices Description daqClose is used to close a Personal Dag device Once the specified device has been closed no subsequent communication with the device can be performed In order to re establish communications with a closed device the device must be re opened with the daqOpen function B 18 API Commands Appendix B 887095 Personal Dag User s Manual daqCloseList DLL Function daqCloseList DaqHandleT handle
131. e ended mode The single ended mode measures a voltage between a signal line and a common reference that may be shared with other channels Also see differential mode Trigger An event to start a scan or mark an instant during an acquisition The event can be defined in various ways e g a TTL signal a specified voltage level in a monitored channel a button manually or mechanically engaged a software command etc Some applications may use pre and post triggers to gather data around an instant or based on signal counts TTL Transistor Transistor Logic TTL is a circuit in which a multiple emitter transistor has replaced the multiple diode cluster of the diode transistor logic circuit typically used to communicate logic signals at 5 V Signal Management 878695 Personal Dag User s Manual Channel Control and Expansion In a Personal Daq system the quantities and types of Personal Daqs used as well as the types and quantities of PDQ expansion cards used determines the system s channel capacity Up to 100 Personal Daqs can be used with one host PC Total channel capacity of a Personal Daq system can be calculated from the following tables Channel Capacities for Various Personal Daq Setups Personal Daq 54 Volts Inputs TC Inputs Digital I O Freq Pulse Inputs NB ee i ga i i a E NA a No Expansion Personal Daq 55 Systems Volts Inputs TC Inputs Digital I O Freq Pulse Inputs Personal Daq 55
132. e sampling frequency in Hz Valid values 100000 0 0 0002 DerrNoError daqAdcGetFreq daqAdcSetRate Program References Used With All devices Description daqAdcSetFreq calculates and sets the frequency of the acquisition clock using the frequency specified in Hz The frequency specified is the rate at which channel scans are collected This rate represents the interval at which each channel scan group is collected The rate specified must be less than or equal to the maximum frequency for which the currently defined channel scan configuration can run The maximum rate can be retrieved via the daqAdcGetFreq or daqAdcSetRate commands If a rate is specified which is greater than the maximum frequency at which the current channel configuration will allow the driver will automatically set the rate to the maximum allowable Personal Daq User s Manual Appendix B 887095 API Commands B 11 dagAdcSetMux DLL Function dagqAdcSetMux DaqHandleT handle DWORD startChan DWORD endChan dagAdcGain gain DWORD flags C daqAdcSetMux DaqHandleT handle DWORD startChan DWORD endChan DagAdcGain gain DWORD flags Visual BASIC VbdaqAdcSetMux amp ByVal handle amp ByVal startChan amp ByVal endChan amp ByVal gain amp ByVal Delphi daqAdcSetMux handle DaqHandleT startChan DWORD endChan DWORD const gain dagqAdcGain flags DWORD Parameters Handle Handle to the device for which to configure the ADC channel scan group StartChan Th
133. e starting channel of the scan group EndChan The ending channel of the scan group Gain The gain value for all channels Flags Channel configuration flags in the form of a bit mask DerrInvGain Invalid gain DerrIncChan Invalid channel DerrNoError No error See Also dagAdcSetScan daqAdcGetScan Program References Used With All devices Description dagqAdcSetMux sets a simple scan sequence of local A D channels from startChan to endChan with the specified gain value This command provides a simple alternative to daqAdcSetScan if only consecutive channels need to be acquired The flags parameter is used to set channel dependent options See ADC Flags Definition table for channel flags definitions dagAdcSetRate DLL Function dagqAdcSetRate DaqHandleT handle daqAdcRateMode mode dagqAdcAcqState acqState FLOAT reqRate PFLOAT actualRate C dagqAdcSetRate DaqHandleT handle DaqAdcRateMode mode DagqAdcAcqgState acqState FLOAT reqRate PFLOAT actualRate Visual BASIC VBdagqAdcSetRate ByVal handle amp ByVal mode amp ByVal acqState amp ByVal reqRate actualRate dagqAdcSetRate handle DaqHandleT mode daqAdcRateMode state daqAdcAcqdState reqValue single actualValue PSINGLE Parameters handle Handle to the device for which to set ADC scanning frequency mode Specifies the rate mode frequency or period acqState Specifies the acquisition state to which the rate is to be applied reqRat
134. e type for example meter attributes of a Bar Graph Meter will not carry over to attributes of an Analog or Digital Meter The preceding figure and following table serve as a quick reference to meters configuration Configure Meter Settings Function Descriptions Function Description 1 Select Channel Select a new channel for display The selected channel will replace the one currently seen in the meter Note that double clicking the left mouse button in the meter region will also bring up a dialog box which allows you to select a new channel 2 Set Scale Set the high and low points of the scale as well as define the decimal place format See following figure 3 Show Peak Places high and low uni directional floating markers on the scale to indicate the Hold Indicators highest and lowest values reached up to the present time This feature does not apply to the Digital Meters selection See following figure Reset Peak Resets the floating markers Upon reset the markers will instantly adjust to indicate Hold the highest and lowest values reached since the time of the reset This feature does not apply to the Digital Meters selection See following figure 4 Show Trend Displays a pointer to indicate the direction of the trend Note that during rapid meter Indicator fluctuations the increase and decrease pointers will appear to blink simultaneously See following figure 5 Set Limits Provides a way of establishing high and low limit set
135. e when the end of the transfer buffer is reached by wrapping the transfer of scan data back to the beginning of the buffer In this mode the transfer buffer will continue to be wrapped until the post trigger count has been reached specified by daqgAdcSetAcq or the transfer acquisition is halted by the application daqAdcTransferStop dagAdcDisarm The default setting is DatmCycleoff e DatmUpdateSingle Specifies the update mode as single sample The update mode can be set to update for every sample or for every block of data The update on single setting allows the transfer buffer to be updated for each sample collected by the Personal Daq The default setting is DatmUpdateSingle e DatmSavePreTrigBuf Specifies that the driver save the pre trigger data once the trigger event has been satisfied This option allows the driver to save pre trigger data in a separate linear buffer once the trigger event has occurred By doing so the pre trigger data buffer can be accessed at any time after the trigger event without having the possibility of the pre trigger data being overwritten by new data being written to the driver buffer When the trigger event occurs the driver writes the specified amount daqAdcSetMode of pre trigger data to an internal pre trigger buffer which the driver allocates The pre trigger data may then be accessed via the daqAdcTransferBufData function This option must be used in conjunction with the DatmDriverBuf option e DatmDriver
136. eProperties amp ByVal daqName deviceProps As DaqDevicePropsT e VBdaqOpen amp ByVal daqName e VBdaqSetErrorHandler amp ByVal handle amp ByVal handler amp e VBdaqgSetOption amp ByVal handle amp ByVal chan amp ByVal flags amp ByVal optionType amp ByVal optionValue e VBdagAdcSetDataFormat amp ByVal handle amp ByVal RawDataFormat amp ByVal PostProcFormat amp e VBdagAdcSetScan amp ByVal handle amp channels amp gains amp flags amp ByVal ChanCount amp e VBdagAdcSetTrigEnhanced amp ByVal handle amp ByRef triggerSources amp ByRef gains amp ByRefadcRanges amp ByRef trigSense amp ByRef levels ByRef hysteresis ByRef chan amp ChanCount amp opstr e VBdaqAdcSetAcq amp ByVal handle amp ByVal Mode amp ByVal preTrigCount amp ByVal postTrigCount amp e VBdaqAdcSetRate amp ByVal handle amp actualRate Obtain list of installed devices DaqGetDeviceList DaqGetDeviceProperties Obtain properties of each device in the device list Is Device a PDAQ56 9 Open the first Personal Daq 56 device found Spe egies Configure acquisition buffer Multiple Channel Types Model for Personal Daq 56 Set channel options Set format of data returned by the transfer functions Configure a scan group of channels Configure the trigger event Configure the acquisition ByVal Mode amp ByVal acqState amp
137. ectric types have high source impedance and should therefore be used with a charge sensitive amplifier of low output impedance As described in the following paragraphs multiplexing can greatly reduce the effective input impedance of an analog to digital converter Crosstalk is a type of noise related to source impedance and capacitance in which signals from one channel leak into an adjacent channel resulting in interference or signal distortion The impact of source impedance and stray capacitance can be estimated by using the following equation T RC Where T is the time constant R is the source impedance and C is the stray capacitance High source transducer impedance can be a problem in multiplexed A D systems When using more than 1 channel the channel input signals are multiplexed into the A D The multiplexer samples each signal and then switches to the next input signal A high impedance input interacts with the multiplexer s stray capacitance and causes crosstalk and inaccuracies in the A D sample A solution to high source impedance in relation to multiplexers involves the use of buffers The term buffer has several meanings but in this case buffer refers to an operational amplifier having high input impedance but very low output impedance Placing such a buffer on each channel between the transducer and the multiplexer prevents the multiplexer s stray capacitance from combining with the high input impedance This use of a b
138. ed for hub internal functions and for the hub s ports Each port of a self powered hub must be capable of supplying 500 mA Personal Dag User s Manual 878695 Hardware Setup 3 3 Connecting Your Personal Daq Acquisition System fa P Review the CAUTIONS and notes presented on page 3 1 prior to connecting or disconnecting components Connecting a PDQ Expansion Module to a Personal Daq 55 or 56 To connect a PDQ expansion module to a Personal Daq 55 or 56 unit 1 Review the CAUTIONS and notes presented on page 3 1 2 Ensure the Personal Dag main unit is not connected to a USB port 3 Ensure the Personal Daq main unit is not connected to a power adapter Plug the expansion module into the DB25 connector on the Personal Daq main unit Lock the two modules together using two locking clips see figure page 3 2 aS av S Connect the Personal Dag main unit to power according to your system setup 3 examples follow When using a power adapter with your Personal Dag system be sure to supply power from the adapter to the Personal Daq before connecting the USB cable This allows Personal Dag to inform the host computer upon connection of the USB cable that the unit requires minimal power from the computer Connecting Various Hardware Setups Personal Daq data acquisition systems range from simple to complex One example of a simple system is that of one Personal Daq 54 connected to a PC s USB connector A mu
139. el a Meter Pull Down Menu Options Meters Configuration Menu A meters configuration menu lower left corner of following figure will appear when you place the mouse pointer over a meter and click the right hand mouse button The menu allows you to access various dialog boxes for changing parameters for an individual meter or simultaneously for a group of meters The steps for configuring a meter are detailed below Note The Show Peak Hold Indicator Reset Peak Hold Indicator selections are not an option for Digital Meters and do not appear on the configuration window for digital meters Note When the Misc Scale or Limits dialog box is active clicking on the More gt gt button causes a meters extension area to be displayed This allows you to extend the assigned meter characteristics to additional meters of the same type An example of the meters extension box is shown in the upper right corner of the following figure Sap m PO1_A02 ee 2 PD1_A02 ee Show Trend Indicator 3 PD1 403 Pod ADG Show Peak Hold Indicators 4 PD1_A04 PD1_A07 Sl Hone PD 408 Cancel Apply kloe sr _ al None PD1_Agg Miscellaneous Dialog Box with Meters Extension Channel Selection Scale Limits Misc i High 4 036 ee Low 085 Format 0 000 Set Scale Show Peak Hold Indicator Reset Peak Hold Indicator Cancel Apply More Show Trend Indicator Set Scale Dialog Box
140. el 1 a differential channel PD1_A0O2L Personal Dag unit 1 Analog Input channel 2 Low a single ended channel low end PD1_A02H Personal Dag unit 1 Analog Input channel 2 High a single ended channel high end PD2_F1 Personal Dag unit 2 Frequency pulse channel 1 PD1_D05 Personal Dag unit 1 Digital channel 5 User Label provides a means of identifying the channel by a user defined descriptive name If no name is specified the program uses the physical channel name as a default The user label appears in the trigger and chart selection lists discussed later in this manual You can change the user label to any alphanumeric designation providing each label is unique channel specific On allows you to enable a channel for data collection When a cell or block of cells in this column is selected a selection box will appear that allows On to enable or Off to disable the channel Double clicking a cell in this column toggles the channel s enable status Reading displays scanning device input readings The column is activated when the acquisition device is triggered The column s values are real time channel values from the instrument and cannot be altered by the user This column will update the readings as fast as the computer will allow Note If you re size the readings column such that it becomes too narrow for all digits to be displayed you may misinterpret the reading For example since the lef
141. ent chart display configuration See page 4 31 Set Up Charts Next Group Selects the next available chart group Ctrl G Faster Ctrl Z Increases the chart scroll rate as does the toolbar s rabbit button Slower Ctrl X Decreases the chart scroll rate as does the toolbar s turtle button Zoom When more than one chart is displayed this feature allows you to zoom in on one of the charts such that only the selected chart is displayed From this zoomed state you can use the feature to return the display to normal Un zoom or to select another available chart Properties Note The Properties box is enabled in PersonalDaq s Plus and Trial Properties of Chart 1 versions only a Grids Turns grid lines on or off for the indicated chart Timestamp Allows selection of absolute or relative timestamps and Grids scroll rate i i ff the ti C oF een provides a means of turning off the timestamp On eae Scroll Rate Sometimes referred to as chart speed Selects the indicated oF chart s scroll rate in time per division Scroll rate can be as fast as 0 1 Sold sec div and as slow as 1 hour div with several other rates to choose ete from The rabbit and turtle buttons and Faster Ctrl Z and Slower Ctrl X commands also affect scroll rate Note The rate indicated in area 18 of the Chart Display figure above is the global scroll rate It is not necessarily the same as OK Cancel noel the
142. er to a linear buffer the buffer cycle mode should be turned off with DatmCycleOff amp The buffer size is set to 10 scans Note The user defined buffer must have been allocated with sufficient storage to hold the entire transfer prior to invoking the following line ret amp VBdagAdcTransferSetBufferSingle amp handle amp buf 10 DatmUpdateBlock DatmCycleOff With all acquisition parameters being configured the acquisition can now be armed Once armed the acquisition will begin immediately upon detection of the trigger event As in the case of the immediate trigger the acquisition will begin immediately upon execution of the daqAdcArm function ret amp VBdagAdcArm handle amp After setting up and arming the acquisition the data is immediately ready to be collected Had the trigger source been anything other than immediate the data would only be ready after the trigger had been satisfied The following line initiates an A D transfer from the Personal Daq device to the defined user buffer ret amp VBdagAdcTransferStart amp handle amp Wait for the transfer to complete in its entirety then proceed with normal application processing This can be accomplished with the daqWaitForEvent command The daqWaitForEvent allows the application processing to become blocked until the specified event has occurred DteAdcDone indicates that the event to wait for is the completion of the transfer ret amp VBdaqwaitForE
143. er adapter with your Personal Dag system be sure to supply power from the adapter to the Personal Daq before connecting the USB cable This allows Personal Dag to inform the host computer upon connection of the USB cable that the unit requires minimal power from the computer Power adapters for use with Personal Daq have a current limit of 500 mA min and a voltage range of 6 to 16 Volts DC These specifications are provided on the end face of the Personal Daq If the computer does not recognize the Personal Daq unit make sure the computer s USB port is properly enabled and is in good working order If the computer still fails to recognize the Personal Daq the use of a power pack may be required In United States use a TR 2 power pack or equivalent In Europe use a TR 2E power pack or equivalent Both the TR 2 and the TR 2E provide 500 mA min 6 to 16 VDC N fel The use of certain notebook computers may require the use of a power adapter with g your Personal Daq USB powered Hubs These hubs draw all power from the host USB connector s power pins The power is used for hub internal functions and for the hub s ports Each port of a USB powered hub must be capable of supplying at least 100 mA Self powered Hubs These hubs draw power from a source other than the host USB connector with exception that they may draw up to 100 mA from their upstream connection for hub internal functions The external power is us
144. eria PD1_A01 gt 30 C and post trigger of one hour Each of the data acquisitions will occur automatically with no need to recreate the acquisition setup or restart the acquisition Disabling Auto Rearm To disable Auto Rearm simply deselect the feature Note that deselected is the default setting of the Auto Rearm function Personal Daq User s Manual 989394 Personal DaqView 4 19 Bar Graph Analog and Digital Meters This section pertains to channel data display screens windows or dialog boxes which are often referred to as DaqMeters In Personal DaqView the meters are accessed from the Main Control Window s toolbar or Main Control Window s Indicators pull down menu It is important to realize that for each type of meter discussed the meter channels selected are independent of the group chart assignments and of the assignments for the other meters Note that when using meters placing the mouse pointer over an item and then hitting Ctrl F1 on the keyboard will cause a help statement to appear for that item if such a statement is available Meter Toolbars The toolbars for the three meter types are identical with exception that the Digital Meters toolbar does not have a Reset Peak Hold button item C in the following figure Control View Meters Toolbar Buttons Item Label A Start B Stop C Reset Peak Hold D Stay on Top E Print F Rows x Columns G Select the number of Meters to display 4 20 Pe
145. ersonal Daq Example 2 Connection to USB Powered Hub Power Adapter USB Example 2 Connection to USB Powered Hub In example 2 four Personal Daqs and optional PDQ modules are connected by cable to individual ports of a single USB powered hub Since the hub receives all its power from the computer s USB the hub cannot supply adequate power to the Personal Daq units Because of this aspect of insufficient power each Personal Daq is connected to its own power adapter Note The power adapters used must be capable of supplying at least 500 mA and have a voltage rating of 6 to 16 VDC Note USB port locations vary from PC to PC When using a power adapter with your Personal Dag system be sure to supply power from the adapter to the Personal Daq before connecting the USB cable This allows Personal Daq to inform the host computer upon connection of the USB cable that the unit requires minimal power from the computer Personal Dag User s Manual 878695 Hardware Setup 3 5 Example 3 Connections to Self Powered and USB Powered Hubs USB Hub PDQ Module a USB Powered ws lt ZS Personal ae LS AA 5 K USB Hub Self Powered Power Adapter Example 3 Connections to Self Powered Hub and to USB Powered Hub Example 3 illustrates a system that makes use of six Personal Daq units and two different style USB hubs Three Personal Daqs and optional PDQ modules are connected by cable
146. es sec and corresponding resolution ranges from 22 to 15 bit for Personal Daq s analog input applications When measuring highly variable input signals as opposed to relatively steady input signals the variable signals will require more samples sec to obtain a realistic signal representation When too few samples are taken the term under sampling is often used Under sampling tends to lower the signal s graphed amplitude This is also known as aliasing In such cases the inadequate number of samples results in a flattening of the signal Gross under sampling can even result in a relatively flat line even though the actual signal is a waveform For best results the sample rate scan rate should be at least 10 times the measurement frequency If possible it is recommended that you set the scan rate to 20 times the frequency of the input signal 5 4 Signal Management 878695 Personal Dag User s Manual Triggering Note Frequency channels will read frequency regardless of the scan rate Personal Daq circuitry reads a pulse count and timer count during each scan The following table provides general advice regarding the selection of measurement duration The concepts are further illustrated by the figure Examples of Under Sampling Analog Input Signal Measurement Sample Resolution Variability Duration Rate Steady or gradual Long low high change Highly variable Short high low unsteady
147. ese two applications have more features than does eZ PostView and are available for purchase They can however be used freely during a 30 day trial period About This Manual Chapter 1 Personal Dag Unit Startup provides information to get your Personal Dag system up and running The chapter includes installation steps basic concepts regarding the Personal DaqView software program and steps for acquiring data Chapter 2 General Information amp Specifications gives a general description of Personal Daq and related hardware including PDQ expansion modules Basic operational concepts and product specifications are included Chapter 3 Hardware Setup provides detailed information regarding Personal Daq and includes information regarding direct connection to PC USB connection to a USB powered hub and connection to a self powered USB hub The chapter also includes instruction for connecting a PDQ expansion module and input signal lines Chapter 4 Personal DaqView explains the ready to use Personal DaqgView software that comes with every Personal Daq Topics include detailed explanations of the program s pull down menus toolbar icons and keypad control options Personal DaqViewXL p n 491 0905 Personal DaqViewXL is an add in software application that provides setup and data acquisition capabilities from within Microsoft Excel The add in is an option that is available for purchase Chapter 5 Signal Management discusses signal
148. eters Configure Acquisition Tri i Post Trigger Max Rate 80 0000H2 Min Rate 0 0007 Hz Pre Trigger Trioger o Scan Rate 27 2550 Hz Y Stop Gri Continuous Calibration t Period ee Banal IY Overange Protection Frequency Diuretic 100 m s Cancel Trigger Tab Selected Post Trigger Tab Selected Configure Acquisition Window Personal Dag User s Manual 878395 Unit Startup 1 9 The Configure Acquisition Window has the following default settings Pre Trigger No duration set i e a duration of 0 scans Trigger Immediate Post Trigger Manual stop Averaging None Acquisition Parameters Set for Maximum scan rate Frequency selected Period not selected Continuous Calibration not selected Overrange Protection selected You can change the acquisition setup as desired Explanations of setup options are discussed in Chapter 4 Functions that can be obtained with Main Control Window toolbar buttons can also be obtained through pull down menus discussed subsequently See Chapter 4 for details Data Destination Configuration The Data Destination window can be accessed by using button 7 From the Data Destination window you can assign a filename and folder location for the acquisition data More detailed information is provided in Chapter 4 El Configure Data Destination Data Destination Dequential Destinations uto Ream Folder i Auto Ream D PROGRAM APPLICATIO
149. eyboard up or down arrow key d using the page up or page down key If using a control option other than a you may need to select the group select box by repeatable pressing the keyboard s Tab key until the group select box is selected When this happens the name of the currently selected group appears in white on a dark background 2 Start Charts Starts the scrolling chart display Does not affect the recording of data to disk Display 3 Stop Charts Stops the scrolling chart display Does not affect the recording of data to disk Display 4 Scroll Faster Buttons 4 and 5 provide a means of changing the chart s scroll rate chart speed These 5 Scroll Slower two buttons do not affect the scan rates of the acquisition device The global scroll rate chart speed is indicated in the lower right hand corner of the Chart Display Window as time div Possible chart speeds are indicated in the table below Note The global scroll rate is not necessarilly the same as the chart s actual scroll rate as set in the chart s Properties dialog box The Properties box is accessed through the Chart pull down menu The table on page 4 28 includes a screen capture Available Chart Speeds Scroll Rates 0 1 sec div 1 sec div 10 sec div 2 min div 30 min div 0 2 sec div 2 sec div 30 sec div 5 min div 1 hr div 0 5 sec div 5 sec div 1 min div 10 min div 6 Setup Charts Accesses a Display Configuration Setup dialog b
150. ferences Opens a dialog box containing two tabs with the following uses General tab Provides a means to select various preference options regarding opening Preferences are exiting and saving files discussed in more detail l on the following page Measurements tab Provides a means of setting default measurement units for voltage temperature and frequency w Personal DagqView Preferences w Personal DagYiew Preferences General Measurement Units General Measurement Units On Open New Personal Dagview Configuration r Default Measurement Units Use Untitled as default configuration name Measurement Type Use Pdag as default configuration name woaye Iv M Save configuration on exit Temperature fc hf Prompt to save configuration on exit Pea B x M Prompt to save configuration on open and new file I Prompt before overwriting configuration files General Tab Selected Measurement Units Tab Selected Preferences Dialog Boxes You can set preferences for Personal DaqView through the Preferences dialog box found under the View pull down menu of the Main Control Window General Allows you to select untitled or pDaq configurations for the default filename used by Personal Daq Note that Personal DaqView automatically loads the last saved configuration file The second part of the General screen pertains to configuration file settings Measurement Units Allows you to set the
151. for transfer the number of buffer processing cycles that have occurred and the current position in the acquisition buffer The active parameter will indicate the current state of the acquisition in the form of a bit mask Refer to the ADC Acquisition Transfer Active Flag Definitions in the ADC Miscellaneous Definitions table for valid bit mask states The preTrigCount and postTrigCount parameters return the total number of pre trigger and post trigger scans acquired respectively The totalAvail and bufCycles parameters indicate the number of available scans and the number of buffer processing cycles that have occurred The bu fPosition parameter indicates the current position in the transfer buffer dagAdcArm Delphi aqAdcArm handle DaqHandleT O OOOO O Returns DerrNoError No error S OSO Used With All devices S Description daqAdcArm allows you to arm an ADC acquisition by enabling the currently defined ADC configuration ADC acquisition will occur when the trigger event as specified by daqAdceSetTrig is satisfied All ADC acquisition configuration information must be specified prior to the daqAdcArm command For a previously configured acquisition the daqAdcArm command will use the specified parameters If no previous configuration was given or it is desirable to change any or all acquisition parameters then those commands relating to the desired ADC acquisition configuration must be is
152. gradual long low high change Highly variable short high low unsteady Frequency Pulse Input Spreadsheet Does not apply to Personal Daq 54 The Frequency Pulse Input spreadsheet allows you to configure the related channels Each row shows a single channel and its configuration Additional information regarding frequency measurement is included in the Help file W Channel Configuration Miel x Control GLI Select channel type Hi Analog Input Frequency Pulse Input Digital Input Output e Ula cet F 1_F On 473 0 Frequency Hz Aising me 0 0 1000 0 1 0 Hz 800 uz PD Fe On 183280 7 Pulses Scan Pulses Fising O ms 0 0 1000000 0 PD1_F3 2 On 211742 Totalize Pulses Aising me 0 0 1000000 0 PDI F4 PD1_F4 Un A Channel Configuration Window Selected for Frequency Pulse Input Spreadsheet The following text provides more detail regarding the frequency pulse channel configuration parameters Note that columns labeled Physical Channel User Label On Off Reading Scale and Offset are discussed in the section Common Spreadsheet Columns Type A block of cells in this column can be selected for convenience of single type selection where type can be Frequency Totalize Pulses per Scan or Duty Cycle High or Low The selected type determines the default units Units Frequency type units can be Hz or kHz Totalize and Pulses per Scan type units are Pulses and Duty Cycle High and Low ty
153. grammed B 12 API Commands Appendix B 887095 Personal Daq User s Manual dagAdcSetScan DLL Function dagqAdcSetScan DaqHandleT handle PDWORD channels dagqAdcGain gains PDWORD flags DWORD chanCount C daqAdcSetScan DaqHandleT handle PDWORD channels DaqAdcGain gains PDWORD flags DWORD chanCount Visual BASIC VBdagqAdcSetScan amp ByVal handle amp channels amp gains amp flags amp ByVal chanCount amp daqAdcSetScan handle DaqHandleT channels PDWORD gains daqAdcGainP flags PDWORD chanCount DWORD Parameters Handle Handle to the device for which ADC scan group is to be configured Channels An array of up to 512 channel numbers gains An array of up to 512 gain values Flags Channel configuration flags in the form of a bit mask ChanCount The number of values in the chans and gains arrays Valid values 1 512 Returns DerrNotCapable No high speed digital DerrInvGain Invalid gain DerrInvChan Invalid channel DerrNoError No error See Also dagqAdcGetScan daqAdcSetMux Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With All devices Description dagAdcSetScan configures a scan group consisting of multiple channels As many as 8192 channel entries can be made in the scan group configuration Any analog frequency counter or digital input channel can be included in the scan group configuration at any valid gain se
154. hannel on otk E r zj Analog Input Frequency Pulse Input Digital Input Output Main Control Window Of x Range Units lere ended Sa gtaet Differential Duration a ue F 366040 10 0 to 10 0 POI Aq Dn FPO1_A02 Dn PO1_Ag3 Dn FD1_A04 Dn Differential 110 me 0 0 56 0185922 10 0 to 10 0 Differential 110 ms ef 0 0 4 488921 10 0 to 10 0 Y Differential 110 mez 1 0 0 0 2 022527 10 0 to 10 0 Y Differential 110 ms 1 0 0 0 Channel Configuration Window with Analog Input Spreadsheet Selected Button Function Open Configuration File Opens a selected configuration file Save Configuration File Saves the current configuration file to disk Select Active Device Provides a means of selecting active devices from the Personal Daq system Rl O M Arm Trigger for Disk Recording Arms the trigger and stores acquisition data to a designated disk file If Auto Rearm is selected clicking this button puts Auto rearm in effect This button is also used to disarm the data acquisition 5 Manual Trigger Used to trigger the device when the mode of trigger is set to Manual Note that the Manual Trigger button can not be clicked until after the trigger is armed for example by first clicking button 4 6 Update Digital Outputs Updates digital outputs for all digital channels that are selected to output state also see Digital Input Output Spreadsheet
155. he scan timing 1 e the rate at which Personal DaqView takes readings It can be set to a frequency number of scans per second or period the time length of one scan value The maximum scan rate depends on the channel configuration and is displayed in the configure acquisition window It is determined by the number of enabled channels and their measurement duration To get the highest scan rate possible e turn off all unused channels e set the measurement duration to its lowest setting on all analog channels These steps can be performed from the Channel Configuration Window when selected for Analog Input Spreadsheet Setting the highest possible scan rate inversly affects the resolution of your analog channel readings When setting the scan rate it is important to be aware of various issues that arise with a low scan rate Among these are under sampling and aliasing Note The scan period can only change by increments of 1 msec If you enter an invalid value Personal DaqgView will automatically convert your entry to the nearest acceptable value Note Aliasing errors can result from having a scan rate that is too low under sampling Continuous Calibration The continuous calibration option is useful in applications that make use of very long acquisitions periods When the continuous calibration box is checked Y Personal DaqView continuously calibrates the unit while the acquisition is in progress Although this provides greater read
156. hich is used to drive a certain number of gates without overloading the proceeding stage c An amplifier which accepts high source impedance input and results in low source impedance output effectively an impedance buffer d Buffer Amplifier see Buffer Amplifier Buffer Amplifier Channel An amplifier used primarily to match two different impedance points and isolate one stage from a succeeding stage in order to prevent an undesirable interaction between the two stages Also see Buffer In reference to Personal Daq channel simply refers to a single input or output entity In a broader sense an input channel is a signal path between the transducer at the point of measurement and the data acquisition system A channel can go through various stages buffers multiplexers or signal conditioning amplifiers and filters Input channels are periodically sampled for readings An output channel from a device can be digital or analog Outputs can vary ina programmed way in response to an input channel signal Common mode voltage Crosstalk Common mode voltage refers to a voltage magnitude referenced to a common point that is shared by 2 or more signals Example Signal 1 is 5VDC referenced to common Signal 2 is 6VDC referenced to common The common mode voltage for the two signals is 5 6 2 or 5 5 VDC Common mode pertains to signals that are identical in amplitude and duration and can be used in reference to
157. hich the option is to be set flags Flags specifying the options to use optionType Specifies the type of option optionValue The value of the option to set Returns DerrNoError No error See Also daqAdcExpSetChanOption Program References PULSEEX1 C MULTEX1 C FREQEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With All devices Description daqSetOption allows the setting of options for a device s channel signal path configuration chan specifies which channel the option applies to flags parameter specifies how the option is to be applied optionType specifies the type of option to apply to the channel optionValue parameter specifies the value of the option Note For more information regarding optionValue and optionType refer to page B 32 Table 8 Note The following information does not apply to Personal Daq 54 daqSetOption must be used to properly configure Personal Daq s frequency input and pulse count channels To configure frequency input and pulse count channels the following option types need to be specified for each frequency input pulse count channel in the scan sequence DcotpDagPulses Configures the specified channel as a pulse count channel DcotpDagRising Configures the rising flag for the pulse channel DcotpDagqDebounceTime Configures the debounce time for the frequency pulse channel The following options must also be specified to configure frequency input channels DcotpDagMinFreq Configures the
158. iceProperties daqName string deviceProps daqDevicePropsTP Parameters daqName Pointer to a character string representing the name of the device for which to retrieve properties DeviceCount Number of devices returned in the device list DerrNoError No error See Also daqGetDeviceCount daqGetDeviceList daqOpen Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DIGEX1 C INITEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With All devices Description daqGetDeviceProperties returns the properties for the specified device as indicated by the daqName parameter This name should be a valid name of a configured device The properties for the device are returned in the deviceProps parameter deviceProps is a pointer to user allocated memory which will hold the device properties structure This memory must have been allocated before calling this function For detailed device property structure layout refer the to daq Device Properties Definition table Personal Dag User s Manual Appendix B 887095 API Commands B 21 daqGetDriverVersion DLL Function daqGetDriverVersion PDWORD version daqGetDriverVersion PDWORD version Visual BASIC VBdaqGetDriverVersion amp version amp daqGetDriverVersion var version DWORD Parameters version Pointer to the version number of the current device driver See Also E ee Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DIGEX1 C INITEX1 C D
159. ignal selection DerrInvRawDataFormat 7Fh 127 Invalid raw data format selection DerrNot Implemented 80h 128 Feature function not implemented yet DerrInvDioDeviceType 81ih 129 Invalid digital I O device type DerrInvPostDataFormat 82h 130 Invalid post processing data format selection DerrdaqStalled 83h 131 Personal Daq low level driver stalled DerrdaqLostPower 84h 132 Personal Daq device has lost power DerrdagqMissing 85h 133 Personal Daq device is not detected DerrdaqScanConfig 86h 134 Scan Configuration is invalid B 34 API Commands Appendix B 887095 Personal Dag User s Manual Custom Labels D This appendix consists of blank user labels and a Personal Dag channel layout reference page D 3 If you have access to Microsoft Word you can create custom labels in your PC since the labels exist in a file pDaq_CustomLabels doc on your installation CD During the installation process the file is automatically copied to the target directory for pDaqView You can change the directory if desired Note You can use a shortcut entitled Custom Labels Template to access pDaq_CustomLabels doc The shortcut will be located in the Personal DaqView program group The labels in the file consist of tables with each cell set to scale The default font is Arial Opt centered This can be changed based on your specific labeling preferences You can orient your label entrees horizontally vertically or upside down as
160. ill return the total number of scans retrieved retCount can return anything from 0 to scanCount the number of scans requested Scan data will be returned in the memory referred to by the buf parameter The driver allocated acquisition buffer must have been allocated prior to calling this function This is performed via the dagAdcTransferSetBuffer Refer to daqAdcTransferSetBuffer for more details on specifying the driver allocated acquisition buffer Personal Dag User s Manual Appendix B 887095 API Commands B 15 dagAdcTransferGetStat DLL Function dagAdcTransferGetStat DaqHandleT handle PDWORD active PDWORD retCount dagAdcTransferGetStat DaqHandleT handle PDWORD active PDWORD retCount VBdagAdcTransferGetStat amp ByVal handle amp active amp retCount amp Parameters handle Handle to the device for which ADC transfer status is to be retrieved active A pointer to the transfer state flags in the form of a bit mask retCount A pointer to the total number of ADC scans acquired or available in the current transfer DerrNoError No error See Also dagAdcTransferSetBuffer dagqAdcTransferStart dagqAdcTransferStop Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With Al devices Description dagAdcTransferGetStat allows you to retrieve the current state of an acquisition transfer The active parameter will indicate the current state of the transfer i
161. in Chapter 4 Digital I O does not apply to Personal Daq 54 7 Configure Data Destination Accesses the Configure Data Destination window Note that this window provides a means of selecting sequential destinations through an auto rearm feature Configure Acquisition Accesses the Configure Acquisition window Configure Channel Settings Brings up the Channel Configuration window From this window you can configure channels for Analog Input Frequency Pulse Input and Digital Input Output channels depending on which tab is selected 10 Update All Indicators Starts all on screen indicators with a display of up to date data Has no affect on the recording of data to disk Auto Rearm even if selected will not occur when using this control This button is also used to pause all indicators 11 Display Scrolling Charts Displays data graphically in a scrolling chart 12 Display Bar Meters Displays data in a bar graph format 13 Display Analog Meters Displays data displayed in a dial gage format 14 Display Digital Meters 15 View Data Displays data in a digital meter format Launches an independent post data acquisition program such as eZ PostView Refer to the PostAcquisition Analysis PDF included on your CD for detailed information 16 Enable Readings Column Activates the Channel Configuration Window s reading column Does not affect the recording of data to dis
162. in gages thermistors and resistance temperature detectors RTDs require a known voltage or current Typically the variation of this signal through the transducer corresponds to the condition measured Gain The degree to which an input signal is amplified or attenuated to allow greater accuracy and resolution Gain can be expressed as xn or dB Isolation Linearization The arrangement or operation of a circuit so that signals from another circuit or device do not affect the isolated circuit In reference to Personal Dag isolation usually refers to a separation of the direct link between the signal source and the analog to digital converter ADC as well as the 500V isolation form the PC Isolation is necessary when measuring high common mode voltage Some transducers produce a voltage in linear proportion to the condition measured Other transducers e g thermocouples have a nonlinear response To convert nonlinear signals into accurate readings requires software to calibrate several points in the range used and then interpolate values between these points Multiplexer MUX Sample reading A device that collects signals from several input channels and outputs them on a single channel The value of a signal on a channel at an instant in time When triggered the ADC reads the channel and converts the sampled value into a designated bit value Scan The channels that are selected for sampling Singl
163. in system configurations make use of USB hubs and power adapters as discussed in Chapter 3 Note 2 Some notebook PCs require that a power adapter be used with your Personal Daq Chapter 3 contains more information regarding power adapters 2 2 General Information amp Specifications 878595 Personal Daq User s Manual Theory of Operation Universal Serial Bus USB The Universal Serial Bus is ideal for data acquisition applications Since USB ports located on the PC provide power only one cable 1s needed to link an acquisition device to the PC In addition USB s high speed data transfer from the data acquisition device to the PC allows for real time display of acquired data while eliminating the need for additional memory in the acquisition device USB supports transfer rates up to 12 Mbytes sec and supports real time data transfer Standard USB connectors can be identified by a USB icon USB Ico Power Line Rejection Personal Dag can take readings while making use of 50 60Hz line cycle rejection 120 dB While in the line cycle rejection mode the maximum sample rate is as follows e 50 Hz rejection 7 7 samples sec e 60 Hz rejection 9 2 samples sec Isolation Power Supply Barrier Power Jack Isolated Analog Power Isolated Digital Power Control Circuits 16 Digital I O peal 2 4 Frequency Inputs 4 Frequency Pulse Count Duty Cycle OOOO v Expansion 20 Analog I
164. ing Storage 20 to 70 C Isolation 500 VDC from PC common USB Power Source PC USB port or se f powered USB hub 500 mA maximum External Power Source Required when used with a bus powered hub 6 to 16 VDC 500 mA Option Notes 1 the TR 2 External Power Supply is a 120 VAC to 9 VDC adapter 2 the TR 2E External Power Supply is a 230 VAC to 9 VDC adapter Vibration MIL Std 810E Dimensions 92 x 182 x 45 mm 3 6 x 7 1 x 1 8 inches Weight Personal Daqg 55 300g 10 5 oz Personal Daq 54 300g 10 5 oz Personal Daq 56 360g 12 5 oz PDQ1 300g 10 5 oz PDQ2 300g 10 5 oz Optional Accessories PDQ10 DIN Rail Mounting PDQ11 4 powered USB Hub with cable PDQ12 USB extender cable 5 meters PDQ13 PCI to dual USB card TR 2 External Power Supply 120 VAC to 9 VDC adapter TR 2E External Power Supply 230 VAC to 9 VDC adapter CN 153 12 Terminal Block USB Cables CA 179 3 3 meter CA 179 5 5 meter 2 12 General Information amp Specifications 878595 Personal Daq User s Manual Channel Connection Layouts The following indicate channel connection layouts for Personal Daq 54 55 and 56 Connection layouts for expansion modules PDQ1 and PDQ2 follow shortly Personal Daq 54 provides no functionality for expansion modules Inserting a label Shaded cells of label extend from slot for easy removal LF Digital 1 0 and Frequency Channels B Digital VO and
165. ing a specified voltage level can be used to trigger the system Input Isolation Three benefits of input isolation are circuit protection noise reduction and the rejection of high common mode voltage e Circuit protection Input isolation separates the signal source from circuits that may be damaged by the signal Voltages higher than about 10 V can distort data or damage chips used in data acquisition High voltage signals or signals with high voltage spikes should therefore be isolated The protection can also work the other way to safeguard a sensitive signal conditioner from a failing device elsewhere in the system e Noise reduction Isolation eliminates ground loops for high gain systems and multi unit systems that are grounded together The chassis for each device can rest at a ground potential slightly different from the other devices These irrelevant currents and the spikes they may have picked up by induction can thus be kept out of the measurement circuit e Rejection of high common mode voltage There is a limit to the amount of voltage a differential amplifier can have applied between ground and the amplifier inputs Fortunately the differential amplifier rejects high common mode voltage signals High common mode voltage and noise spikes are rejected canceled out in in phase signals identical in amplitude and frequency that are present in both the high and low inputs at the same time Signal Modes Personal Daq units o
166. ing accuracy it can result in a lowering of the maximum scan rate For this reason the continuous calibration option has a default setting of disabled unchecked Overrange Protection By default the overrange protection option is enabled This is because certain ranges are slow to recover from overload conditions It should be noted that the slow recovery does not indicate any problem with the unit however if there is such an overload on a channel erroneous readings on other channels may occur If your application presents the possibility of a channel overload then you should keep the overrange protection function enabled Y If using a custom application use the DcotpDaqOverrangeProtect option type setting with the daqSetOption API see Appendix B for additional information regarding dagSetOption Personal Daq User s Manual 989394 Personal DaqView 4 17 Configure Data Destination and File Converter Preferences Conversion of eZ Post View eZ TimeView or eZ Frequency View files is automatic The file converter can be used to convert other data formats Note that Post View is not related to eZ PostView The Configure Data Destination dialog box can be accessed from the View pull down menu or by using the Configure Data Destination toolbar button depicted in the upper left hand corner of the following figure The button is located in the toolbar of the Main Control Window Sequential Destinations Auto Rearn Fo
167. ing the actual A D trigger channels to trigger on chanCount Indicates the number of configured A D channels DerrNoError No error daqAdcSetAcq dagAdcSetTrig daqAdcSetScan ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With Personal Daq 55 and Personal Daq 56 Description dagAdcSetTrigEnhanced configures the device for triggering Trigger configuration allows the device to be configured to detect A D triggering formed with multiple A D channel trigger event conditions The trigger event may be defined as a combination of multiple A D analog level event conditions that are logically and d or ord The trigger event is formulated based on the channel trigger event for each channel in the trigger sequence The total number of trigger channels is defined by the chanCount parameter Each channel trigger configuration parameter definition is a pointer to an array of chanCount length and is defined as follows e channels Defines a pointer to an array of actual device channel numbers for which to configure the corresponding trigger events triggerSources Defines a pointer to an array of trigger sources for which to configure the corresponding trigger events for the corresponding channel in the channels array See the ADC Trigger Source Definitions table for valid triggers gains Defines a pointer to an array of gains corresponding to the actual A D channels in the corresponding A D channel number in th
168. ion channels Programming Models Two types of VB function wrappers exist for the API functions that reference data buffers One type references an integer buffer and the other references a single precision floating point buffer The wrappers that reference single precision floating point buffers have the word Single appended to the function name For example VBdaqAdcTransferSetBufferSingle would be used to set a single precision floating point buffer whereas VBdaqAdcTransferSetBuffer be used to set an integer buffer This section outlines basic programming steps commonly used for data acquisition Consider the models as building blocks that can be put together in different ways or modified as needed As a general tutorial these examples use Visual Basic since most programmers know BASIC and can translate to other languages as needed The following table identifies the API programming models discussed in this appendix Model Type Model Name Page Configuration Initialization and Error Handling A 2 Acquisition Foreground Acquisition with One Step Commands A 4 Counted Acquisition Using Linear Buffers A 5 Indefinite Acquisition Direct To Disk Using Circular Buffers A 7 Multiple Channel Types A 10 Initialization and Error Handling This section demonstrates how to initialize the Personal Daq and use various methods of error handling aai 2 ai r Most of the example programs use similar coding as detailed here
169. ion will return the number of devices currently configured in the system The Personal Daq devices need to be present for this function to operate properly daqGetDeviceList DLL Function DaqGetDeviceList DaqDeviceListT Fdevi celi se DWORD deviceCount s BASIC VbdaqGetDeviceList amp ByRef deviceList As String ByRef deviceCount amp Delphi daqGetDeviceList deviceList DeviceListTP devCount PDWORD Parameters deviceList Pointer to memory location to which the device list is to be returned deviceCount Number of devices returned in the device list daqGetDeviceCount daqGetDeviceProperties daqOpen Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DIGEX1 C INITEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With Ali devices Description daqGetDeviceList returns a list of currently configured devices This function will return the device names in the deviceList parameter for the number of devices returned by the deviceCount parameter Each deviceList entry contains a device name consisting of up to 64 characters The device name can then be used with the daqOpen function to open the specific device daqGetDeviceProperties a Function daqGetDeviceProperties LPSTR daqName daqDevicePropsT deviceProps daqGetDeviceProperties LPSTR daqName DaqDevicePropsT deviceProps vs BASIC VBdaqGetDeviceProperties amp ByVal daqName deviceProps As daqDevicePropsT Delphi s daqGetDev
170. irst click on the Set Up Charts button a Display Configuration Setup box appears A display region shows the configured structure of the groups charts and channels From this box you can select the number of charts to be assigned to a specific group With the use of the mouse cursor you can also select a chart or channel for additional editing In addition to the text presented in the following sub sections Normal Edit and Manually Creating a Display you can refer to the Chart Setup Wizard section beginning on page 4 37 Reference Note For your very first chart display setup or when the configuration file has been deleted refer to the Chart Setup Wizard section beginning on page 4 37 The method you use to access the Display Configuration Setup window makes a difference When you use the toolbar button or the pull down menu s Setup selection the Display Configuration Setup window appears with the current chart display configuration intact With this type of access you would simply edit your existing chart display Channel configurations do not change with exception that newly displayed channels will be enabled When you access the Display Configuration Setup from the Chart Setup Wizard the Display Configuration Setup window appears with no existing display This allows for a clean slate approach to creating a chart display as opposed to an editing approach Channel configurations do not change with exception that newly disp
171. isarmed Personal Dag User s Manual Appendix B 887095 API Commands B 9 dagAdcSetDataFormat DLL Function dagqAdcSetDataFormat DaqHandleT handle daqAdcRawDataFormatT rawFormat dagAdcPostProcDataFormatT postProcFormat C daqAdcSetDataFormat DaqHandleT handle DaqAdcRawDataFormatT rawFormat eeN DaqAdcPostProcDataFormatT postProcFormat VBdagqAdcSetDataFormat amp ByVal handle amp ByVal rawFormat amp ByVal postProcFormat amp dagqAdcSetDataFormat Handle DaqHandleT rawFormat daqAdcRawDataFormatT rawFormat postProcFormat daqAdcPostProcDataFormatT Parameters Handle The handle to the device for which to set the option RawFormat specifies the raw data format PostProcFormat Flags specifying the options to use DerrNoError No error See Also daqCvtRawDataFormat daqCvtRawDataFormat Program References Used With All devices Description daqAdcSetDataFormat allows the setting of the raw and the post acquisition data formats which will be returned by the acquisition transfer functions Note Certain devices may be limited to the types of raw and post acquisition data formats that can be presented The rawFormat parameter indicates how the raw data format is to be presented Normally the raw data format represents the data from the A D converter The default value for this parameter is Dard fNative where the raw data format follows the native data format of the A D for the particular device The Personal
172. isition Goal Seek Go Scenarios Manuel TiHager Auditing Update Digital outputs Solver Save Power up Settings Macro Add Ins Customize Chart Display Bar Graph Meters Display Analog Meters Display Options Digital Meters Display Wizard iv Use Data Destination i i Set Data Destination Cell E E i AES i E eee nes i S AEEA iv Use Data Header Options Preferences About ts rr MM Tf 4 Microsoft Excel Spreadsheet showing Personal DaqViewXL Menu Options 4 491 0905 rev3 0 g696 Personal DaqViewXL User s Guide Configuration Reference The following information is intended to serve as a quick reference regarding channel configuration You should refer to the user s manual for more detailed information regarding Personal DaqgView as needed Toolbar Buttons Note The functions that can be obtained through the toolbar can also be obtained through the pull down 10 11 12 menus i Personal DagviewsL Button Configure Devices Configure Channels Configure Acquisition Go Manual Trigger Chart Display Bar Graph Meters Display Analog Meters Display Digital Meters Display Use Data Destination Set Data Destination Cell Use Data Header Tools Pull Down Menu When the Personal DaqViewXL add in is loaded a Personal DaqViewXL menu is added to Excel s Tools pull down menu You can use the menu items to perform all actions that are available
173. isual BASIC VBdaqwaitForEvent amp ByVal handle amp ByVal daqEvent amp Delphi daqwaitForEvent handle DaqHandleT dagEvent daqTransferEvent Parameters handle Handle of the device for which to wait of the specified event dagEvent Specifies the event to wait on Returns DerrNoError No error See Also daqwWaitForEvents daqSetTimout Program References Used With All devices Description daqWaitForEvent allows you to wait on a specific Personal Dag event to occur on the specified device This function will not return until the specified event has occurred or the wait has timed out whichever comes first The event time out can be set with the daqSetTimout function See the Transfer Event Definitions table for event definitions daqwaitForEvents DLL Function daqwWaitForEvents DaqHandleT handles daqTransferEvent dagEvents DWORD eventCount BOOL eventSet daqWaitMode waitMode C daqWaitForEvents DaqHandleT handles DaqTransferEvent daqEvents DWORD eventCount BOOL eventSet DaqWaitMode waitMode Visual BASIC VBdaqwaitForEvents amp handles amp daqEvents amp ByVal eventCount amp eventSet amp ByVal waitModes amp daqwaitForEvents handles DaqHandlePT daqEvents daqTransferEventP eventCount DWORD eventSet PBOOL waitMode daqwaitMode Parameters handles Pointer to an array of handles which represent the list of device on which to wait for the events dagEvents Pointer to an array
174. ith thermocouple signals that are connected single ended Differential connection is made as follows a the red wire connects to the channel s Low L connector b the second color coded wire connects to the channel s High H connector The section entitled Signal Modes in chapter 5 contains additional information Personal Dag Terminal Block Partial V1 and V2 are Single Ended Inputs V3 is a Thermocouple and is a Differential Input Single Ended and Differential Connections to Analog Input Channels Start Personal DaqView From Windows open Personal Daq View by double clicking on the Personal Daq View icon or by using the Windows Desktop Start Icon to access the Personal DaqView program You will find Personal Daq View listed in the desktop s Program group By default the Personal Daq files will install in C Program Applications However you may have chosen a different install setup when prompted during the installation process Once the program is executed the software identifies your Personal Daq device and brings up the Main Control Window This window is discussed briefly in the following text and in more detail in Chapter 4 Personal Daq User s Manual 878395 Unit Startup 1 7 Configure System This step pertains to configuration of channels and acquisition parameters through Personal DaqView software To configure a set of parameters use the appropriate toolbar button or the View pull d
175. ition will begin immediately upon execution of the daqAdcArm function ret amp VBdagAdcArm handle amp A 8 API Custom Program Modules Appendix A 878495 Personal Daq User s Manual After setting up and arming the acquisition data collection will begin upon satisfaction of the trigger event Since the trigger source is software the trigger event will not take place until the application issues the software trigger event To prepare for the trigger event the following line initiates an A D transfer from the Daq device to the defined user buffer and subsequently to the specified disk file No data is transferred at this point however ret amp VBdagAdcTransferStart amp handle amp The transfer has been initiated but no data will be transferred until the trigger event occurs The following line will signal the software trigger event to the driver then A D input data will be transferred to the specified disk file as it is being collected ret amp VBdagAdcSoftTrig amp handle amp Both the acquisition and the transfer are now currently active The transfer to disk will continue indefinitely until terminated by the application The application can monitor the transfer process with the following lines of code acqTermination amp 0 Do Wait here for new data to arrive ret amp VBdaqwaitForEvent handle amp DteAdcData amp New data has been transferred Check status ret amp VBdagqAdcTransferGetStat
176. ival backup copies CE Notice Ce Many IOtech products carry the CE marker indicating they comply with the safety and emissions standards of the European Community As applicable we ship these products with a Declaration of Conformity stating which specifications and operating conditions apply Warnings Cautions Notes and Tips Refer all service to qualified personnel This caution symbol warns of possible personal injury or equipment damage under noted conditions Follow all safety standards of professional practice and the recommendations in this manual Using this equipment in ways other than described in this manual can present serious safety hazards or cause equipment damage This warning symbol is used in this manual or on the equipment to warn of possible injury or death from electrical shock under noted conditions This ESD caution symbol urges proper handling of equipment or components sensitive to damage from electrostatic discharge Proper handling guidelines include the use of grounded anti static mats and wrist straps ESD protective bags and cartons and related procedures This symbol indicates the message is important but is not of a Warning or Caution category These notes can be of great benefit to the user and should be read In this manual the book symbol always precedes the words Reference Note This type of note identifies the location of additional information that may prove helpful References ma
177. ives the window focus Turns the Use Data Destination feature on or off Sets the data destination cell to the active cell in the current workbook Turns the Use Data Header feature on or off Function Provides a means of creating a new configuration from default settings Provides a means of opening an existing configuration file This feature may be used to open configuration files created by the Personal DaqView application Saves the configuration file under its existing filename Note that you can open Personal DaqViewXL files from the Personal DaqView application Copies the current file for saving under a different filename Opens the Select Active Devices window Opens the Channel Configuration Spreadsheet lf the window is already open pressing this button gives the window focus Opens the Configure Acquisition Dialog Various acquisition parameters can be set from this dialog Starts an acquisition and inserts the data into the current spreadsheet destination cell Selecting the item again stops the acquisition Manually triggers the acquisition when applicable 918596 491 0905 rev 3 0 5 6 491 0905 rev 3 0 10 11 12 13 14 15 16 17 18 19 20 21 22 Update Digital Outputs Save Power up Settings Chart Display Bar Graph Meters Display Analog Meters Display Digital Meters Display Use Data Destination Set Data Destination Cell Use Data Header Options Preferences
178. k 17 Disable Readings Column Stops the Channel Configuration Window s reading column Does not affect the recording of data to disk If needed refer to Chapter 4 Personal DaqView for more detailed information 878395 Personal Dag User s Manual General Information amp Specifications 2 General Description 2 1 Personal Daq Specifications 2 9 Channel Capacities 2 1 Analog Specifications 2 10 Features 2 2 Input Voltage Ranges 2 10 Theory of Operation aaan 2 3 Voltage Specifications vee IO Universal Serial Bus USB 2 3 Temperature Specifications 2 11 Power Line Rejection 2 3 Thermocouple Accuracy 2 11 Optical Isolation 9 4 Frequency Specifications 2 12 A D Conversion 9 4 Digital I O Specifications 2 12 Input Ranges 9 4 General Specifications 2 12 Analog Input Configuration 2 5 Optional Accessories 2 12 Measurement Duration Sample Rate and Channel Connection Layouts 2 13 Resolution 9 5 Calibration 2 15 Automatic Calibration 2 7 Thermocouple Measurements 2 7 Frequency Measurements 2 8 Digital I O 2 8 General Description Personal Daqs are compact data acquisition devices that make use of the Universal Serial Bus USB They can be located up to 5 meters 16 4 feet from the host PC allowing the unit to reside close to the point of measurement This
179. l 1 startChan DigFlags 11 PGainx1 2 DigFlags Frequency Input Pulse Count Channels Does not apply to Personal Daq 54 PGainx1l 1 startChan FreqFlags 13 PGainx1 2 FreqFlags 14 PGainx1 3 CtrFlags 15 PGainx1 4 CtrFlags For i 0 To ChanCount If O lt i And i lt 10 Then Analog input channels chans amp i startChan 1 flags amp i AnaFlags ElseIf 10 lt i And i lt 12 Then Digital I O ports chans amp i startChan i 10 flags amp i DigFlags ElseIf 12 lt i And i lt 14 Then Frequency input channels configured for frequency input chans amp i startChan i 12 flags amp i FreqFlags The VBdaqSetOption function is used to set individual channel options The sequence of calls below configures the current channel chans amp i amp to measure 0 pulses per scan DcotpDaqgPulses based on time measurements between the successive rising edges of the input signal disables debouncing sets the minimum and maximum values for the frequency range maximum frequency range value is 1000 Hz and configures the measurement rate to be 1 Hz A 12 API Custom Program Modules Appendix A 878495 Personal Dag User s Manual ret amp VBdaqSetOption handle amp chans amp i amp DcofChannel DcotpDagqPulses DcovPulseCount ret amp VBdaqSetOption handle amp chans amp i amp DcofChannel DcotpDaqgRising DcovEdgeRising ret amp VBdaqSetOption handle amp
180. l POT 016 Dialog Boxes for Moderate and Advanced Modes of Automatic Chart Creation It is a simple task to create chart display configurations using the automatic method The following steps apply to this feature of Chart Setup Wizard 1 Select Wizard from the Chart pull down menu of Personal DaqView s Chart Display Window The Wizard setup window appears 2 Select the desired mode tab Simple Moderate or Advanced 989394 Personal Dag User s Manual 3 Use the pull down arrows W or use the cursor and type in a new value to make selections for the number of groups charts and channels as applicable 4 If you desire to start with a channel other than the default channel first available channel use the pull down arrow and select the desired starting channel number 5 When your setup is complete click on the Automatic Chart Creation Create Charts button A percentage of completion bar will appear followed by the Channel Setup box 6 Make appropriate configuration changes if any are desired including enabling additional channels then click on the OK button After clicking OK the Chart Display Window appears and you can begin running charts Note that the Channel Setup section of this chapter contains related information The channels in the setup you create will be automatically enabled and will appear in chart form on Personal DaqView s Chart Display Window The Channels will overlap on their assigned Chart a
181. l and Measurement Units dialog boxes as described below General Allows you to select untitled or oDaq configurations for the default filename used by Personal Dag Note that Personal DaqView automatically loads the last saved configuration file The lower portion of the General screen pertains to configuration file settings I Prompt to save configuration on exit V Prompt to save configuration on open and new file I Prompt before overariting configuration files Measurement Units Default Measurement Units Measurement Type Voltage Iv Temperature C Frequency Hz Measurement Units Allows you to set the desired default units for the Channel Configuration Window s spreadsheet Note that scale and offset automatically reset to a pre designated default according to the unit selected Changing the measurement unit defaults does not immediately affect the Channel Configuration Window s spreadsheet columns For example If you set your voltage default to uV but the channels are set with V units they will retain the V units However changing these channels to temperature then back to voltage would result in the default units V and the associated scale amp offset The new default units are also applied to all channels when a new configuration file is created T Preferences Screen Captures Condensed Images About Help Provides version information for the acti
182. lay Configuration Setup screen changes to show chart groups and the number of charts for the selected black highlighted chart group From this screen you can change the number of charts in a group as well as change the group name 4 34 PersonalDaqView sea Personal Daq User s Manual rA Display Configuration Setup Display Configuration Setup Ea OF leap Display Humber of charts in 1 the selected Group Group Mame Groupi O Adding one Chart to Group 1 Change the number of charts per group 1f desired Change the group name 1f desired Click on a group to see the chart s assigned to the group In the above example there is one group with one chart Click on a chart to assign channels to the chart A screen similar to the following will appear EHA Display Close a I Group 1 Available Channels POT A402 POI A005 PDI Add POW AOS PO1_ A401 PO1_A0S POT_A05 PO1_A02 Category Voltage Type 4 096 Units ii Assigning Channels to Group 1 Chart 1 Chan Categories All Categories POT A0 E PO1 ADE Selected Channels Hemnave 8 Choose channels for the selected chart You can select up to 4 overlapping channels per chart Add or delete channels as follows e Highlight an available channel using the cursor and left hand mouse button then click the Add button Repeat for each channel to be added e Double click on a channel in the available channels
183. layed channels will be enabled Personal Daq User s Manual 989394 Personal DaqView 4 31 Editing a Chart Display Configuration Close EHA Display Group 1 zl Number of charts in E Chart 1 the selected Group 2 Fs Chart 2 Group Hame Group2 0 Fs Char 1 Fs Chart 2 Display Configuration Setup Dialog Box with an Existing Configuration To explain editing a configuration we make use of an example in which assumes you want to edit Chart 1 In the following figure Chart 1 was highlighted by clicking on it with the cursor The Display Configuration Setup box then changed allowing you to see specific channel types such as volts only or to Show all Types as in the example From this setup box you can add or delete charts and channels You can e use the Shift or Ctrl key in conjunction with the cursor to select several channels for addition or deletion o double click on an available channel to add it to the selected channels e double click on a selected channel to remove it from the selected channels list Note When a chart contains overlapping channels with identical points of measurement the channels that are listed lower in the display will obscure the channels that are listed higher In other words the charted points of newer channels will obscure points of equal value on the older channels Display Configuration Setup Close eee Chan Categories All Categories Gl Group
184. lder W Auto Ream DAPROG RAMVAPPLICA TIONS OAT AS Starting Indes 5 E File Ending Indes E gt PDAG BIN g 46 Starting File PRAO 5 BIN Browse Conversion Formats Ending File POAG_ 46 616 a File Converter Preferences x Data Destination File Format Data File Ext Felder R32 DAT Didier i i E ASCH Text Spreadsheet TaT ASCII Configure Data Destination T DADISP DAT HED DADISP o pASYLab DOF DASYLab E MATLAB MAT DSC Matlab Postview IOT lIOF WPoshyview E Srap Master SMA DAT SM Delete the source data file when done converting Mo Overnsnite existing files when converting data Ask Timestamps Add timestamps to ASCII Text files Note If the tigger date is not known timestamps will be shown as time relative to the trigger point Cancel File Converter Preferences Accessed via the lt Conversion Formats gt button A breakdown of the dialog box follows Folder The Folder text box determines the file s destination folder File The File text box identifies the file by name and raw binary extension BIN Note that these filenames must have a raw binary BIN extension If you omit the extension Personal DaqView will add it to the filename Browse Used to browse existing folders and filenames Conversion Formats This button is used to access the File Converter Preferences dialog box This box provides a means of saving
185. lector capable of sinking up to 150mA for direct drive applications and capable of pull up voltages up to 15 VDC Note that over voltage is rated at 20 VDC for up to 1 minute 2 14 General Information amp Specifications 878595 Personal Daq User s Manual Note The digital output can be written to since the digital output lines are latched Note Appendix D contains blank user custom labels and information regarding pDaq_CustomLabels doc located in the installation target directory of Program Files pDaqView User custom labels allow you to identify Personal Dag channels by user specific nomenclature in addition to the pre existing channel labels indicated on this and the preceding page Calibration Calibration must be completed periodically to ensure your data acquisition device remains accurate You can use UserCal a Windows based program to provide step by step instructions Chapter 6 contains detailed information regarding calibration Note Calibration constants are calculated and stored in the Personal Daq unit s serial EEPROM Note The typical calibration period for Personal Daq is once every year Personal Dag User s Manual 878595 General Information amp Specifications 2 15 This page is intentionally blank 2 16 General Information amp Specifications 878595 Personal Daq User s Manual Hardware Setup 3 Personal Daq System Components 3 2 Personal Daq 3 2 PDQ Expansion Modules 3
186. lues of m and b into the appropriate location using the facilities provided by compatible data acquisition software for example Wave View DaqView Personal DaqView LogView and TempView The software uses equation 9 to calculate signal values in engineering units from that point on 48 Personal DaqView ges Personal Daq User s Manual Example 2 A Personal Dag user knows that a linear relationship exists between the voltage output at Point A and the voltage output at Point B in a certain electrical device The linear relationship is constant The user wants to monitor the voltage at Point B however it is inconvenient to connect signal lines in that section of the apparatus The user realizes he can take the reading at Point A and use the mx b equation to solve for Point B In this example Byots 1 2x 0 75 Volts where By i is the voltage at Point B and x is the voltage at Point A After his acquisition was configured the user performed the following steps to allow Personal DaqView to calculate and display Byois L EE Left clicked right clicked on the units cell for PD1_A01 typed in B Volts and hit the keyboard s Enter key Left clicked right clicked on the Scale cell for PD1_A01 typed 1 2 for the Scale and hit the keyboard s Enter key Left clicked right clicked on the Offset cell for PD1_A01 typed 0 75 for the Offset and hit the keyboard s Enter key Used channel PD1_A01 to acquire v
187. m 4 19 Bar Graph Analog and Digital Meters 4 20 Meter Toolbars 4 20 Meter Pull Down Menus 4 21 Meters Configuration Menu 4 21 Configuring a Meter 4 22 Bar Graph Meters 4 24 Analog Meters 4 25 Digital Meters 4 26 Chart Display 4 27 A Note Regarding Standard Plus and XL Version Software 4 27 Groups Charts amp Channels 4 27 Chart Display Window 4 27 Pull Down Menus 4 28 Toolbar Items 4 29 Chart and Channel Information Regions 4 30 Accessing the Display Configuration Setup Box 4 31 Editing a Chart Display Configuration 4 32 Manually Configuring a Chart Display 4 34 Chart Setup Wizard 4 37 Introduction 4 37 Automatic Display Setup using the Chart Setup Wizard 4 38 Bypassing Automatic Chart Setup 4 39 Reference Note This chapter serves as a reference for Personal DaqView Personal DaqView Plus and the Chart Setup Wizard feature For very first time start up refer to Chapter 1 or the Personal Dag Quick Start document p n 491 0940 Chapter 1 and the Quick Start contain information for connecting hardware loading software and acquiring data quickly Reference Note Personal DaqViewXL is optional software that allows Personal DaqView and Personal DaqView Plus to execute functions from within Microsoft Excel If you will be loading this Excel Add In program please refer t
188. m 1 8 Channel Configuration 1 9 Acquisition Configuration 1 9 Data Destination Configuration 1 10 Collect Data 1 10 Quick Start for Personal DaqView 1 11 2 General Information General Description 2 1 Channel Capacities 2 1 Features 2 2 Theory of Operation 2 3 Universal Serial Bus USB 2 3 Power Line Rejection 2 3 Optical Isolation 2 4 A D Conversion 2 4 Input Ranges 2 4 Analog Input Configuration 2 4 Measurement Duration Sample Rate and Resolution 2 5 Automatic Calibration 2 6 Thermocouple Measurements 2 6 Frequency Measurements 2 7 Digital I O 2 7 Personal Daq Specifications 2 8 Analog Specifications 2 9 Frequency Specifications 2 11 Digital I O Specifications 2 11 General Specifications 2 11 Optional Accessories 2 11 Channel Connection Layouts 2 12 Calibration 2 14 3 Hardware Setup Personal Daq System Components 3 2 Personal Daq 3 2 PDQ Expansion Modules 3 2 USB Hubs and Power Adapters 3 2 Connecting Your Personal Daq Acquisition System 3 3 Connecting a PDQ Expansion Module to a Personal Dag 3 3 Connecting Various Hardware Setups 3 3 Personal Dag User s Manual 887695 4 Personal DaqView Overview 4 2 Standard Plus and XL Version Software
189. mV to 500 mV 1 1 5 2 15 15 40 312 mV to 3812 mV 3 3 4 8 10 30 250 mV to 250 mV 1 1 2 8 8 25 156 mV to 156 mV 2 5 4 4 8 8 20 125 mV to 125 mV 1 1 1 5 7 7 20 62 mV to 62 mV 1 1 1 5 6 5 9 31 mV to 31 mV 1 1 1 5 6 5 7 Note Noise measured with continuous self calibration disabled Voltage Specifications one year 15 to 35 C Accuracy Personal Daq 54 0 015 of reading 004 of range exclusive of noise Personal Daq 55 0 01 of reading 002 of range exclusive of noise Personal Daq 56 0 01 of reading 002 of range exclusive of noise Input Offset Voltage Personal Daq 54 lt 30uV differential or single ended Personal Daq 54 lt 20uV differential or single ended Personal Daq 54 lt 20uV differential or single ended Peak to Peak Noise 6 x RMS Noise Temperature Coefficient 5 ppm 1 uV C Input Resistance 10MQ single ended 20MQ differential 5 Bias Current lt 1 nA 0 to 35 C DC Common Mode Gain Error lt 100 ppm typical lt 2 ppm C common mode gain drift typical AC Common Mode Rejection gt 120 dB 50 Hz 610 ms 370 ms 130 ms measurement durations gt 120 dB 60 Hz 610 ms 310 ms 110 ms measurement durations AC Normal Mode Rejection gt 80 dB 50 Hz 610 ms 370 ms 130 ms measurement durations gt 80 dB 60 Hz 610 ms 310 ms 110 ms measurement durations Channel to Channel Cross Talk lt 110 dB DC to 100 Hz up to 10 kQ source resistanc
190. measurement duration speeds up Ata measurement duration of 610 milliseconds the last two bits are considered unreliable resulting in a resolution of 22 bits At a very fast measurement duration 12 5 milliseconds the nine least significant bits are unreliable resulting in 15 bit accuracy Speed vs Resolution Speed Designation Measurement Maximum Resolution Duration Sample Rate Bits RMS Scan Period 4 V to 4 V range Samples sec Very Slow 50 60 Hz rejection 1 6 sec Slow 50 Hz rejection 2 Sec Slow 60 Hz rejection 3 2 sec Medium 50 Hz rejection 7 7 sec Medium 60 Hz rejection 9 2 sec Medium 25 sec Fast 48 sec Very Fast 80 sec Notes 1 Each channel can have independent measurement speed and resolution 2 The sample rates shown were obtained with continuous self calibration disabled The table values do not include the use of CJC measurements Personal Daq User s Manual 989394 Personal DaqView 4 11 When you select the measurement duration you also determine the maximum sample rate and resolution for the applicable channel For Personal Daq s analog input applications sample rates range from 1 6 samples sec up to 80 samples sec and corresponding resolution ranges from 22 to 15 bits The following table provides general advice regarding the selection of measurement duration Analog Input Signal Measurement Sample Resolution Variability Duration Rate Steady or
191. mestamp pull down menu Time Stamp can be absolute real time or relative Absolute time is based on your computer clock whereas relative time starts at 00 00 00 hours minutes seconds and then continues timing in increments relative to the Scroll Rate The chart s scroll rate can be set in the chart s Properties box accessed through the Chart pull down menu Also see Properties in the table on page 4 28 18 Global Scroll Rate The global scroll rate consists of a time per division value which can be changed using the faster rabbit button or slower turtle button Available Scroll Rates are from 0 1 sec div to 1 hour div as indicated in the table on page 4 29 The global scroll rate is not necessarilly the same as the chart s actual scroll rate as set in the chart s Properties dialog box The Properties box is accessed through the Chart pull down menu uP Accessing the Display Configuration Setup Box The Set Up Charts button accesses a Display Configuration Setup dialog box This box will also be displayed if a you select Create Charts Manually during use of the Wizard Chart Setup program b you select Setup from the Chart pull down menu c you right click on the chart region in Personal DaqView s Chart Display Window Note If multiple chart groups are present in the display configuration the current group will be selected in the display configuration tree When you f
192. ms and Solutions 1 Personal DaqView will not install properly Check and see if your computer is using Windows NT Windows 95 or a version of Windows 98 that precedes 98SE second edition These operating systems lack the USB support that is necessary to run Personal Daq Windows 98SE Me 2000 and XP each provide proper support However if your computer is using Windows 2000 or XP make sure that you have installed the latest version of Personal DaqView To check on the version you are running open Personal DaqView s Help pull down menu and select About Personal Daq View If you need to update your version of Personal Daq View first uninstall your existing version This can be done using the Add Remove Programs utility in the Windows Control Panel Install the new version of Personal DaqView after the older version has been removed The executable file for Personal Daq View can be obtained from a recent data acquisition CD or from our web site 2 Personal DaqView seems to run fine but the data does not make sense Check the blue title bar at the top of the Personal DaqView screen If you see the word Simulated in parentheses it means that the Personal Daq is running in a simulated mode and is generating artificial data To leave the simulated mode a Select Active Devices from the View pull down menu b Uncheck the Simulated Device c Check the real Personal Daq device Note that the real devices which are liste
193. n the form of a bit mask Refer to the ADC Acquisition Transfer Active Flag Definitions in the ADC Miscellaneous Definitions table for valid bit mask states The retCount parameter will return the total number of scans acquired in the current transfer if the transfer is in user allocated buffer mode or will return the total number of unread scans in the acquisition buffer if the transfer is in driver allocated buffer mode Refer to the daqAdcTransferSetBuffer function for more information on buffer allocation modes The transfer state and return count values will continue to be updated until any of the following occurs e the transfer count is satisfied e the transfer is stopped daqAdcStopTransfer the acquisition is disarmed daqDisarm B 16 API Commands Appendix B 887095 Personal Dag User s Manual dagAdcTransferSetBuffer DLL Function dagqAdcTransferSetBuffer DaqHandleT handle PVOID buf DWORD scanCount DWORD transferMask C daqAdcTransferSetBuffer DaqHandleT handle PVOID buf DWORD scanCount DWORD transferMask Visual BASIC VBdagAdcTransferSetBufferSingle amp ByVal handle amp buf ByVal ScanCount amp ByVal transferMask amp Delphi dagAdcTransferSetBuffer handle DaqHandleT buf pointer scanCount DWORD transferMask DWORD Parameters handle Handle to the device for which an ADC transfer is to be performed buf Pointer to the buffer for which the acquired data is to be placed scanCount The
194. nPort bitNum DWORD var bitValue longbool Parameters handle Handle to the device from which to perform the IO devType IO Device type devPort IO device port selection whichDevice IO device selection whichExpPort IO expansion port address bitNum lO port bit location to read bitValue lO port bit value TRUE high FALSE low Returns DerrNoError No error daqIORead daqIOWrite daqIOWriteBit Program References DIGEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With All devices except Personal Daq 54 Description daqIOReadBit allows you to read a specified bit on the selected device and port The read operation will return the current state of the selected bit in the bitValue parameter The selected bit specified by the bitNum parameter corresponds to the IO channel on the port which is to be read The bitValue will be TRUE indicating a high state or FALSE indicating a low state dagqiOwrite DLL Function daqIOWrite DaqHandleT handle daqIODeviceType devType daqiIODevicePort devPort DWORD whichDevice daqIOExpansionPort whichExpPort DWORD value C daqIOWrite DaqHandleT handle Daq IODeviceType devType DaqIODevicePort devPort DWORD whichDevice DaqIOExpansionPort whichExpPort DWORD value Visual BASIC VBdaqIOWrite amp ByVal handle amp ByVal devType amp ByVal devPort amp ByVal whichDevice amp ByVal whichExpPort amp ByVal value amp daqIOWrite handle DaqHandleT
195. nal Daq system makes use of an expansion module you will need a second DIN rail kit for mounting the expansion module 1 Remove terminal blocks from Personal Daq Module 2 Snap Personal Daq s mount edges into grooves of base BR 24 3 Re install Personal Daq s terminal blocks Edge On Personal Daq Groove On Base BR 24 Inserting Personal Daq s Mount Edges into Grooves of Base BR 24 2 Attach Feet FE 8 to Base BR 24 1 Slide first foot FE 8 onto base BR 24 Note the orientation of the Quick Release see following figure 2 Keeping the same Quick Release orientation i e both up or both down as per your preference slide second foot onto base 3 Position feet near edge of base This will provide for best support of unit to DIN rail Quick Release Foot FE 8 Attaching Feet FE 8 to Base BR 24 Personal Dag User s Manual 878395 Unit Startup 1 3 3 Attach Assembly to DIN Rail Types NS 35 or NS 32 Quick Release Section ff Groove for Personal Daq Edge DIN Rail Type NS 32 DIN Rail Type NS 35 Base BR 24 Foot FE 8 Installing Base Foot Assembly to a DIN Rail Mount The following steps are based on the orientation illustrated above Note that feet FE 8 contain rail catches for both NS 35 and NS 32 type DIN rails In each case a different set of rail catches is used 1 Place the applicable lower rail catch of the feet onto the l
196. nd visible high limit region gt 75 C e Peak indicators at 0 00 and 100 00 C e Trend indicator increasing signal The items in the above figure as follows A Start Stop Reset Peak Hold Indicators Stay on Top Print Rows x Columns Select the number of Meters to be displayed OTMOO B Note You can activate a Channel Selection box by double clicking left mouse button in a meter s scale area You can activate a Configuration Pop Up Menu with a single click of the right mouse button in a meter s scale area Both of these pop up menus are discussed in the section Meters Configuration Menu page 4 21 Configuration Note for Analog Meters Configure the Analog Meters settings by first clicking the right mouse button anywhere within the meter display area A pop up menu will appear allowing you to reconfigure the meter in regard to scale limits channel selection adding peak hold indicators etc Refer to Meters Configuration Menu page 4 21 for more detail Personal Daq User s Manual 989394 Personal DaqView 4 25 Digital Meters Selecting the Digital Meters from toolbar button or Indicators pull down menu brings up the Digital Meters window to display several channels in numeric format To activate the display select the Start button from the toolbar At least one meter must be assigned to an active On channel You can select to view up to 32 meters at a given time Eq Digital Meters Iof x Control View 1
197. nd will be visible when the applicable Group is selected Note that only one group of charts can be viewed at a time As mentioned earlier you can enable additional channels from the Channel configuration window Enabling additional channels allows you to acquire more data to disk however it will not change your display on Personal DaqView s Chart Display Window In other words you can acquire data from channels which you do not monitor Bypassing Automatic Chart Setup You can bypass Chart Setup Wizard by clicking on the Manual Chart Setup Create Charts button in Chart Setup Wizard s Chart Display Window After selecting this option you will be using the Display Configuration Setup dialog boxes to create a display from scratch 1 e using a clean slate approach This is method is detailed with an example in the section Manually Creating a Display beginning on page 4 34 Personal Dag User s Manual 989394 Personal DaqView 4 39 Note 4 40 PersonalDaqView oe ti lt i 3A Personal Dag User s Manual Personal DaqViewXL User s Guide OverView 1 Auto Load Function 8 Disabling Auto Load 8 Enabling Auto Load 8 Performance of Personal DaqViewXL 8 First Time Use 2 Configuring an Acquisition 9 Real Time Charting 11 System Requirements 2 Installation 2 Configuration Reference 5 Data Header 10 Toolbar Buttons 5 Tools Pull Down Menu
198. ndleT chan DWORD sample pointer const gain daqAdcGain flags DWORD Parameters handle chan A single channel number sample A pointer to a value where an A D sample is stored Valid values See daqAdcSetTag gain The channel gain flags Channel configuration flags in the form of a bit mask Returns DerrFIFOFull Buffer Overrun DerrInvGain Invalid gain DerrInvChan Invalid channel DerrNoError No Error daqAdcSetMux daqAdcSetTrig daqAdcSoftTrig Program References Used With All devices S O Description daqAdcRd is used to take a single reading from the given local A D channel This function will use a software trigger to immediately trigger and acquire one sample from the specified A D channel The chan parameter indicates the channel for which to take the sample The sample parameter is a pointer to where the collected sample should be stored The gain parameter indicates the channel s gain setting The flags parameter allows the setting of channel dependent options See ADC Flags Definition table for channel flags definitions Personal Daq User s Manual Appendix B 887095 API Commands B 5 dagqAdcRdN DLL Function dagqAdcRdN DaqHandleT handle DWORD chan PVOID buf DWORD scanCount daqAdcTriggerSource triggerSource BOOL rising FLOAT level FLOAT freq daqAdcGain gain DWORD flags C daqAdcRdN DaqHandleT handle DWORD chan PVOID buf DWORD scanCount DaqAdcTriggerSource triggerSour
199. ng then the daqSetErrorHandler function may be used to setup an error handler for the driver In the following example the error handler is set to 0 no handler defined which disables error handling ret amp VBdagqSetErrorHandler amp 0 amp If there is a Personal Daq error the program will continue The function s return value an error number or 0 if no error can help you debug a program If VBdaqOpen amp PDAQ123456 lt 0 Then Cannot open PDaq Personal Daq functions return dagErrno6 amp Print dagErrno amp HEXS dagErrno amp End If The next statement defines an error handling routine that frees us from checking the return value of every Personal Daq function call Although not necessary this sample program transfers program control to a user defined routine when an error is detected Without a Personal Dag error handler Visual Basic will receive and handle the error post it on the screen and terminate the program Visual Basic provides an integer variable ERR that contains the most recent error code This variable can be used to detect the error source and take the appropriate action The function daqSetErrorHandler tells Visual Basic to assign ERR to a specific value when a Personal Daq error is encountered The following line tells Visual Basic to set ERR to 100 when a Personal Dag error is encountered Other languages work similarly refer to specific language documentation as needed h
200. nputs INNT SOSodg lt ce Calibration 10 MQ 10 MQ Personal Daq 56 Block Diagram Personal Daq User s Manual 878595 General Information amp Specifications 2 3 Optical Isolation The Personal Daq is optically isolated from its host PC by up to 500 VDC This means that an inadvertent application of such voltage to Personal Daq will not affect the PC In addition to optical isolation Personal Daq maintains all sensitive acquisition related circuitry external to the PC This physical isolation of circuitry from the PC results in less noise and more accurate measurements A D Conversion Personal Daq uses a sigma delta analog digital converter to provide high resolution and sensitivity When scanning multiple input channels resolution and speed can be selected from 22 bits at 1 6 samples sec to 15 bits at 80 samples sec not including cold junction compensation You can select resolution and speed on a per channel basis allowing you to match parameters to individual channel requirements For example you could select 21 bit resolution to detect small temperature changes on one channel and select 15 bit resolution to measure battery voltage on a second channel Although each channel can have a different resolution and measurement period all channels are scanned at the same rate to ensure sampling interval integrity Examples of scan sequences with various channel resolutions and calibration arrangements appear in the figure
201. ns 878595 Personal Daq User s Manual Personal Daq Specifications Specifications are subject to change without notice If equipment is used in any manner not specified in this manual or if specification limits are exceeded the function of the equipment as well as the protection provided by it may be impaired Channel Capacities for Various Personal Daq Setups Personal Daq 54 Volts Inputs TC Inputs Digital I O Freq Pulse Inputs No Expansion Personal Daq 55 Systems Volts Inputs TC Inputs Digital I O Freq Pulse Inputs Personal Daq 55 5 DE or 10 SE 5 DE 8 2 Personal Daq 55 with PDQ1 15 DE or 30 SE 15 DE 24 2 Personal Daq 55 with PDQ2 25 DE or 50 SE 25 DE 8 2 Personal Daq 56 Systems Volts Inputs TC Inputs Digital I O Freq Pulse Inputs Personal Daq 56 10 DE or 20 SE 10 DE 16 4 Personal Daq 56 with PDQ1 20 DE or 40 SE 20 DE 32 4 Personal Daq 56 with PDQ2 30 DE or 60 SE 30 DE 16 4 DE Differential Mode SE Single Ended Mode Speed vs Resolution Speed Designation Measurement Maximum Resolution Duration Sample Rate Bits RMS 4Vto 4V per channel Samples sec Sree renee Very Slow 50 60 Hz rejection 610 ms 1 6 sec 22 Slow 50 Hz rejection 370 ms 2 7 sec 22 Slow 60 Hz rejection 310 ms 3 2 sec 22 Medium 50 Hz rejection 130 ms 7 7 sec 21 Medium 60 Hz rejection 110 ms 9 2 sec 21 Medium 40 ms 25 sec 19 Fast 48 sec Very Fast
202. nsion modules Also note that Personal Daq 54 has no terminal block for Digital I O and no Frequency pulse input terminals A customized label can be inserted in slots above the terminal connectors The labels are especially useful in acquisition systems that consist of several Personal Daqs and PDQ expansion modules Appendix D contains blank labels Note 1 Note 2 Expansion Module 6 16 V Active 1 aS Optional 500 mA Max a S User Customized Label s TOi i Of E ad a _ Label Slot lt Shaded cells of label bat Pwr USB Status 1 of 2 ate extend from slot for easy pi Connect High Speed USB Cable from host computer to the Personal Dag USB port The external power port is used in applications which have USB hubs that are not self powered Such setups are discussed later in this chapter Locking Clip Screw Terminal Block 1 per side Removable Personal Dag 36 Personal Dag 33 with PDO Expansion Module Note 1 Label slots are included on Personal Daq 55 and 56 The slots are not included on Personal Daq 54 Note 2 An expansion module PDQ1 or PDQ2 can be added to Personal Daq 55 and 56 units Although an expansion module can physically connect to a Personal Daq 54 it will not function with the unit Personal Daq 54 does not include expansion functionality For 54 devices the 25 pin port is used only for calibration as discussed in chapter 6 Note 3 Active LED
203. number The digital number represents the input voltage in discrete steps with finite resolution ADC resolution is determined by the number of bits that represent the digital number An n bit ADC has a resolution of 1 part in 2 Thus 12 and 16 bit resolutions are as follows e 12 bit resolution 1 part in 4096 2 corresponding to 2 44 mV in a 10 V range e 16 bit resolution 1 part in 65 536 2 corresponding to 0 153 mV in a 10 V range System Noise Averaging Laboratory and industrial environments often have multiple sources of electrical noise An AC power line is a source of 50 60 Hz noise Heavy equipment air conditioners elevators pumps etc can be a source of noise particularly when turned on and off Local radio stations are a source of high frequency noise and computers and other electronic equipment can create noise in a multitude of frequency ranges Thus an absolute noise free environment for data acquisition is not realistic Fortunately noise reduction techniques such as averaging filtering differential voltage measurement and shielding are available to reduce noise to an acceptable level Certain acquisition programs apply averaging after several samples have been collected Depending on the nature of the noise averaging can reduce noise by the square root of the number of averaged samples Although averaging can be effective it suffers from several drawbacks Noise in measurements only decreases as the s
204. o the Personal DaqViewXL User s Guide part number 491 0905 Overview This chapter serves as a reference for Personal DaqView Personal DaqView Plus and the Chart Setup Wizard feature For very first time start up refer to Chapter 1 or the Personal Daq Quick Start document p n 491 0940 Chapter 1 and the Quick Start contain information for connecting hardware loading software and acquiring data quickly As previously noted users of Personal DaqViewXL should refer to the following document Personal DaqViewXL User s Guide part number 491 0905 Personal DagqView is a graphic Microsoft Windows based program that can be used for various data acquisition applications The program was designed for ease of use with no need for programming or expertise in configuration Personal DagqView allows you to perform the following tasks e Set up Analog Input Channels for acquiring various voltages or temperature e Set up Frequency Pulse Input Channels to measure various frequency related parameters e g pulse rate total pulses pulses per scan percentage high percentage low e Set up Digital I O Channels for input or output e Save acquired data to disk e Transfer data to spreadsheets data bases and PostView e View real time data values in screen columns scrolling charts bar graph analog or digital meters Standard Plus and XL Version Software This chapter was written to include instructions regarding Personal DaqView Plus
205. oltage readings which represented the voltage at Point B B Volts Selected the Digital Meters button 14 on the Main Control Window s toolbar and configured the meter to display readings for PD1_A01 B Volts and PD1_A02 Clicked the Update All Indicators button 10 on the Main Control Window s toolbar and monitored the readings W Channel Configuration Control Select input range 10 0 to 10 0 Analog Input Frequency Pulse Input Digital Input Output single ended Ua PO1_A01 On 2 637033 11 3 to 12 8 Bolts Differential 110 me O75 POT 402 J n 1 070372 10 0 to 10 0 Vv Differential 110 me i i 0 0 a Eq Digital Meters OO PDI Add Control View 2 63 avis 070 oa _A0 PD1_A01 B Volts Readings resulting from use of the Scale Offset Feature In this example B Volts is being displayed on the Analog Input Spreadsheet and in a Digital Meter Personal Daq User s Manual 989394 Personal DaqgView 4 9 Analog Input Spreadsheet The Analog Input spreadsheet allows you to configure analog input channels Each row shows a single channel and its configuration The following text provides more detail regarding the channel configuration parameters for Analog Input Note that columns labeled Physical Channel User Label On Off Reading Scale and Offset are discussed in the immediately preceding section Common Spreadsheet Columns i Channel Configuration Control gt
206. on dialog box is used to activate a Sequential Destinations Auto Rearm feature This feature allows for a large number of acquisitions to take place automatically with each using the same configuration settings With this feature as soon as a trigger block is terminated the acquisition system immediately re arms and waits for the trigger to be satisfied To use Auto Rearm P 1 Set your file conversion preferences Sequential Destinations Auto Rearm 2 Verify that the Acquisition is configured as desired 7 Auto Ream 3 Ensure Post trigger is set to stop on a duration 4 Check the Auto Rearm box located on the right hand side of Starting Index 5 pa the Configure Data Destination box l Ending Index 4B 5 Enter the starting and ending index values for the files 6 Select OK Starting File POAGQ_5 BIN 7 Start recording data to disk Ending File PDOAG 46 B1N When the acquisition is complete automatic rearm will occur and the next sequential file will be recorded to disk The acquisitions Cancel will stop once all files from the starting to ending index inclusive have been recorded Setting Auto Rearm Why use Auto Rearm Auto Rearm is a convenient way to monitor and analyze specific types of trigger events For example you could set PD1_A01 going above 30 C as a trigger set a post trigger duration of one hour and then use Auto Rearm to have an additional 99 acquisitions with this same trigger crit
207. on page 2 7 Input Ranges You can individually select the input range for each channel For example one channel could be used for volts and another for temperature Personal DaqView automatically assigns the appropriate units depending on two factors e the selected range and e measurement unit preferences Measurement unit preferences can be modified from Personal DaqView s Preferences Dialog Box located in the View pull down menu of the Main Control Window Chapter 4 provides more detailed information Note The maximum voltage input range full scale is 10 to 20 VDC The lowest programmable voltage input range is 31 to 31 mV A complete list of Personal Daq s programmable ranges appears on page 2 8 Each analog input channel has the following user specified measurement parameters e signal type volts or thermocouple type J K T E R S B or N e full scale voltage from 10 to 20 VDC with programmable ranges as indicated on page 2 8 e resolution sample period from 22 bit RMS at 1 6 samples sec to 15 bit RMS at 80 samples sec note that these rates were obtained with a 10 channel scan continuous self calibration disabled and are for measurements with no CJC cold junction compensation 2 4 General Information amp Specifications 878595 Personal Daq User s Manual Analog Input Configuration Personal Dag 54 and Personal Daq 55 each include 10 analog signal inputs which may be used as 10 single ended inpu
208. onal Dag User s Manual In the schematic voltage signal S is subtracted from signal S4 resulting in the output signal shown The noise spikes having G Ny the same polarity phase and magnitude in each input signal S S S cancel each other out This results in a clean differential signal o gt m m S F S2 T i MN J S In the schematic signals S and S are shown in phase however even if these signals were out of phase the noise in each Noise Reduction in Differential Mode indicated by jagged lines would still have the same magnitude phase and polarity For that reason they would still cancel out Floating differential measurements are made when low level signals a a must be measured in the presence of high levels of common mode noise e g anon grounded thermocouple When the signal source has no HEM i direct connection to the system analog common one must be provided In Personal Daq the connection to analog common is provided in the circuitry with both the channel high and channel low connected to analog common Both of these connections to common are made through 10 MQ resistors No additional connections of channel high and low to common should be made Analog Common Example of Floating Differential Circuit Differential signal hookups do not provide isolation or any kind of circuit protection Resolution An analog to digital converter ADC converts an analog voltage to a digital
209. onal Daq 56 device using the VBDagOpen function This handle must be used with most API functions The data buffer consists of single precision floating point elements the number of which is proportional to the product of the scan count and the channel count The variable i is a counter variable that is used to perform iteration operations Dim handle amp Dim buf TotalCount amp Dim i amp The deviceList string array which is initialized using the VBDaqGetDeviceList function is used to hold a list of currently configured devices and the deviceCount variable contains the number of devices in the deviceList array Dim deviceList Dim deviceCount amp The following scan sequence arrays will be used to store channel numbers the flags for the channels and the gain settings for the channels If element 0 of the channel sequence array has a value of channel 1 then element 0 of the flag and gain sequence arrays will pertain to the flags and gain settings of channel 1 Dim chans amp ChanCount amp Dim flags amp ChanCount amp Dim gains amp ChanCount amp In order to configure the trigger event the five arrays shown below must be allocated These arrays are allocated proportional to the channel count and follow the same order as the scan sequence arrays in which the first element corresponds to the setting pertaining to the first channel in the channel sequence array These arrays specify the source of the trigge
210. onal Daq applications thermocouples should not be connected single ended Doing so can result in noise and false readings This is especially true when acquiring other high amplitude signals in conjunction with thermocouple signals that are connected single ended Features The Personal Daq system includes the following features e USB connection to the PC means no batteries or other power sources required see notes e signal input connections via removable screw terminals e high resolution 22 bit A D converter e internal cold junction compensator for direct thermocouple measurements e 500 VDC isolation for PC protection e low noise thermocouple and voltage measurements e full scale voltage inputs from 10 VDC to 20 VDC e frequency pulse measurements from DC to 1 Mhz Does not apply to Personal Daq 54 e digital I O with current sink capability for direct drive applications e with addition of PDQ expansion module up to 80 channels of analog and digital I O are available for one Personal Dag PDQ combined unit Does not apply to Personal Daq 54 e up to 100 Personal Daq PDQ combined units can be connected to one PC by the use of USB hubs providing a total channel capacity of 8 000 channels e digital calibration eliminates the need for potentiometers and user adjustments e Personal DaqgView and driver software e external power input jack for use with notebook PCs and various setups discussed in Chapter 3 Note 1 Certa
211. onnected to the PC and to the desired input signals the following steps may be used to start Personal DaqView and begin collecting data For this Quick Start approach to collecting data we will be making use of the program s default settings Note that acquisition settings can be changed from the Configure Acquisition Window This window is accessed via button 8 Refer to the following figure for location g Personal Daq iew Untitled cfg Fille View Acquire Device Tools Indicators Help When you first open Personal DaqView the Main Control and Channel Configuration Windows appear These are portrayed on the following page The Channel Configuration Window appears with the Analog Input spreadsheet opened and with channel PD1_AO1 turned On Tabs on the window see following figure allow for a quick transition from one spreadsheet to another 1 From Windows open Personal DaqView by double clicking on the Personal DaqView icon or by using the Windows Desktop Start Icon to access the Personal Daq View program Once the program is executed the software identifies your Personal Dag device and brings up the Main Control Window and Channel Configuration Window with the Analog Input Spreadsheet Selected Note If the Channel Configuration Window is not visible click button 9 2 Select the tab for the desired spreadsheet Analog Input is the default Note that the Frequency Pulse Input and Digital Input Output tabs do
212. openMode Specifies how to open the file for writing preWrite Specifies the number of bytes to pre write in the file Returns DerrNoError No error See Also dagqAdcTransferGetStat dagqAdcTransferSetBuffer dagAdcTransferStart dagqAdcTransferStop Program References None Used With All devices daqAdcSetDiskFile allows you to set a destination file for data transfers Data transfers will be directed to the specified disk file The filename parameter is a string representing the path name of the file to be opened The openMode parameter indicates how the file is to be opened for writing data Valid file open modes are defined as follows DaomAppendFile Open an existing file to append subsequent data transfers This mode should only be used when the existing file has a similar channel scan group configuration as the subsequent transfers DaomWriteFile Rewrite or write over an existing file This operation will destroy the original contents of the file DaomCreateFile Create a new file for subsequent data transfers This mode does not require that the file exist beforehand The preWrite parameter may optionally be used to specify the amount that the file is to be pre written before the actual data collection begins Specifying the pre write amount may increase the data to disk performance of the acquisition if it is known beforehand how much data will be collected If no pre write is to be done then the preWrite parameter
213. opened thus changing the value of the handle in the case that the device is successfully initialized handle amp 1 For deviceIndex amp 0 To deviceCount 1 ret amp VBdaqGetDeviceProperties deviceList deviceIndex deviceProps If deviceProps DeviceType PersonalDaq56 Then handle amp VBdaqOpen amp deviceList deviceIndex Exit For End If Next deviceiIndex amp Personal Dag User s Manual Appendix A 878495 API Custom Program Modules A 11 If the handle is still 1 at this point we know that either a Personal Daq 56 device was not located on the system or that whatever Personal Daq 56 device was located on the system could not be properly opened If handle amp 1 Then Print Cannot open PersonalDaq Exit Sub End If An iteration on the channel count is used to initialize the scan sequence arrays and configure the frequency and pulse counter channels The following table indicates the content of the scan sequence arrays after this iteration 1s completed Subscript Gain Sequence Array Channel Flag Sequence gains Sequence Array Array channels flags Analog Input Channels 0 PGainX1 1 startChan AnaFlags 1 PGainx1 2 AnaFlags 2 PGainx1 3 AnaFlags 3 PGainx1 4 AnaFlags 4 PGainx1 5 AnaFlags 5 PGainXx1 6 AnaFlags 6 PGainx1 7 AnaFlags 7 PGainx1 8 AnaFlags 8 PGainx1 9 AnaFlags 9 PGainx1 AnaFlags Digital Ports Does not apply to Personal Daq 54 10 PGainx1
214. ormation amp Specifications 2 11 Frequency Specifications one year 0 to 50 C Not applicable to Personal Daq 54 Operating Modes Pulse count totalize frequency and duty cycle Frequency Response DC to 1 MHz Accuracy 100 ppm 1 ppm C Resolution Up to 7 digits user selectable Input Voltage Range 15 to 15 VDC Absolute Maximum TTL sense levels Schmitt trigger inputs lt 1 3 V low gt 3 8 V high Pull up Resistor 27 KQ to 5 V for switch or relay sensing Debouncing None 0 8 3 2 or 13 milliseconds software selectable Totalize Up to 2 counts scan Digital I O Specifications Not applicable to Personal Daq 54 Configuration Each I O line is individually selectable as input or output Each I O line includes an open collector driver with a 27 KQ pull up resistor to 5 V for output and a Schmitt trigger input buffer Over Voltage 20 VDC for up to 1 minute Output Characteristics Voltage Range 0 to 5VDC with no external pull up resistor 0 to 15VDC with external pull up Maximum Sink Current 150 mA output continuous 500 mA output peak lt 100 us 150 mA total continuous per bank of 8 outputs Output Resistance 10 Q max Output Updates Outputs may be changed via program control Input Characteristics Voltage Range 0 to 15VDC Thresholds lt 1 3 V low gt 3 8 V high General Specifications Warm up 1 hour to rated specifications Environment Operating 0 50 C 0 95 RH non condens
215. ot Used DWORD dmaChannel Not Used DWORD protocol Host computer Interface used DWORD alias Device Alias Name STRING maxAdChannels Maximum A D channels with full expansion DWORD maxDaChannels Not Used DWORD maxDigInputBits Maximum Dig Inputs with full expansion DWORD maxDigOutputBits Maximum Dig Outputs with full expansion DWORD maxCtrChannels Maximum Counter Timers with full expansion DWORD mainUnitAdChannels Maximum Main Unit A D channels no expansion DWORD mainUnitDaChannels Not Used DWORD mainUnitDigInputBits Maximum Main Unit Digital Inputs no expansion DWORD mainUnitDigOutputBits Maximum Main Unit Digital Outputs no expansion DWORD mainUnitCtrChannels Maximum Main Unit Counter Timer channels no exp DWORD adFifoSize Not Used DWORD daFifoSize Not Used DWORD adResolution Maximum A D Converter Resolution DWORD daResolution Not Used DWORD adMinFreq Minimum Scan Frequency Hz FLOAT adMaxF req Maximum Scan Frequency Hz FLOAT daMinFreq Not Used FLOAT daMaxFreq Not Used FLOAT MainUnitCjcChannels Number of CJC channels on the main unit Number of CJC channels in the system SerialNumber Serial Number for the device ExpansionUnits Number of expansion units SubDeviceType Type of expansion unit Table 2 General I O Definitions I ona in DiodpPdaqPort1 00h Local Port 1 DiodpPdaqPort2 Olh Local Port 2 DiodpPdagqExpPort2 03h Expansion Port 2 PDQ Option DiodpPdaqPowerUpPort1 10h Power up Setting for Local Port
216. ount A pointer to the total number of scans returned if any DerrNoError No error See Also dagqAdcTransferSetBuffer daqAdcTransferGetStat Program References Used With All devices Description dagAdcTransferBufData requests a transfer of scanCount scans from the driver allocated acquisition buffer to the specified user supplied buffer The bufMask parameter can be used to specify the conditions for the transfer as follows e DabtmWait Instructs the function to wait until the requested number of scans are available in the driver allocated acquisition buffer When the requested number of scans are available the function will return with retCount set to scanCount the number of scans requested Scan data will be returned in the memory referred to by the buf parameter DabtmNoWait Instructs the function to return immediately if the specified number of scans are not available when the function is called If the entire amount requested is not available the function will return with no data and retCount will be set to 0 If the requested number of scans are available in the acquisition buffer the function will return with retCount set to scanCount the number of scans requested Scan data will be returned in the memory referred to by the buf parameter DabtmRetAvail Instructs the function to return immediately regardless of the number of scans available in the driver allocated acquisition buffer The retCount parameter w
217. ounted a rising edge must be preceded by a sustained low signal for at least 13 ms without any other edges a falling edge must be preceded by a sustained high signal for at least 13 ms without any other edges See following figure Sustained Ignored Edges Sustained Ignored Edges Low Low Y Bouncy a j Input Debounced Output Time ms 0 13 26 39 52 65 78 Sustained Lows and Rising Edges Bouncy Input compared with Debounced Output In the this example of bouncy input edge was selected for rising and debounce was selected for 13 ms Rising edges a and f are counted because they are preceded by low signal levels sustained for at least 13 ms the debounce time All other rising edges b c d and e are ignored Min Value For Frequency Pulses scan and Totalize defines the minimum range value lower range limit for the charted signal The value is applicable to charts in Personal DaqView and PostView Max Value For Frequency Pulses scan and Totalize defines the maximum range value upper range limit for the charted signal The value is applicable to charts in Personal DaqView and PostView Resolution and Settling Time Frequency measurements on the Personal Daq are achieved by querying the unit for a current time and pulse count on a repetitive basis Aside from edge and debounce settings two values are used to set up frequency input Ma
218. ower lip of the DIN rail 2 Push the entire base foot assembly toward the DIN rail The assembly will snap into position Removing Units from a Type NS 35 DIN Rail 1 Push on both Quick Release sections of the FE 8 feet at the same time 2 Lightly pull the base foot assembly away from the DIN rail Removing Units from a Type NS 32 DIN Rail 1 Push up on the base foot assembly 2 Lightly pull the base foot assembly away from the DIN rail Connect PDQ Module option The discharge of static electricity can damage some electronic components Semiconductor devices are especially susceptible to ESD damage You should always handle components carefully and you should never touch connector pins or circuit components unless you are following ESD guidelines in an appropriate ESD controlled area Such guidelines include the use of properly grounded mats and wrist straps ESD bags and cartons and related procedures Never connect an expansion module to or remove it from a Personal Daq main unit while the main unit is connected to a power source Such action may result in EEPROM errors and loss of calibration data Never remove a USB cable from an active Personal Dag device while an acquisition is in progress An active device is any device that is currently open and has channels configured for scanned input Such disconnection may require you to exit and then re launch Personal DaqView after the USB cable has been connected If you
219. own menu to open the applicable window Clicking on the Configure Channel Settings button 9 brings up the Channel Configuration Window 1 8 Unit Startup g Personal Daq iew Untitled cfg Fille View Acquire Device Tools Indicators Help Turiechannel artott Jon z Main Control Window Analog Input Frequency Pulse Input Digital Input Output e ea PEI AO PDI_AQT On POI 402 PDO1_A02 On POT A03 1P01 A03 On F 366040 10 0 to 10 0 Differential 110 ms 0 0 5 018922 10 0 to 10 0 Differential 110 ms 0 0 4 485921 10 0 to 10 0 yf Differential 110 me 1 0 0 0 Channel Configuration Window with Analog Input Spreadsheet Selected Button Function Open Configuration File Save Configuration File Opens a selected configuration file Saves the current configuration file to disk Select Active Device Provides a means of selecting active devices from the Personal Daq system AIOINIJ Arm Trigger for Disk Recording Arms the trigger and stores acquisition data to a designated disk file If Auto Rearm is selected clicking this button puts Auto rearm in effect This button is also used to disarm the data acquisition Manual Trigger Used to trigger the device when the mode of trigger is set to Manual Note that the Manual Trigger button can not be clicked until after the trigger is armed for example by first clickng button 4 Update Digital Outputs Upd
220. ox See page 4 31 for detailed information 7 Chart Setup Wizard Opens Chart Setup Wizard for manual or automatic configuration of the chart display Detailed discussion of the Chart Setup Wizard begins on page 4 37 8 Print Chart Display Sends the displayed chart to the printer Personal Daq User s Manual 989394 Personal DaqView 4 29 Chart and Channel Information Regions Channels can return values in engineering units of C F K R mV V Hz kHz or user defined units With exception of user defined units engineering units depend on the configuration for example whether a voltage type or temperature type sensor is being used The Channel Information Region is located on the right hand side of Personal DaqView s Chart Display Window The values displayed in this region are the real time values of the selected channel By clicking on the up or down arrows A or W by the channel selection box item 10 you can select one of a maximum of 4 channels that were assigned to that chart This allows you to observe the chart related information for that specific channel You can also select a new channel for the information region by placing the cursor in or tabbing over to the Center or Units Div fields and then pressing PageUp or PageDown This is particularly useful when your Chart Display Window has been re sized such that the channel selection boxes are not visible The following list identifies areas of the channel
221. pe units are Default units are set in the Preferences section of the Main Control Windows s View pull down menu Edge Readings for Frequency Totalize and Pulses per Scan are based on successive rising or falling edges of the input signal and on the time lapse between these signal edges see Debounce Each channel s edge selection is independent of the others 1 e you can have some channels selected for rising edge while others are selected for falling edge Note Depending on the application one edge type rising or falling may be electronically cleaner than the other Note As indicated in the following text and figure some edges are insignificant and can be ignored 4 12 Personal DaqView 989394 Personal Daq User s Manual Debounce Debouncing is a process of ignoring signals which are considered as too short in duration to be real events Personal Daq s debounce circuit ignores two types of edge signal events 1 rising edges that are not preceded by a sustained low signal and 2 falling edges that are not preceded by a sustained high signal The interval can be independently set for each channel to a value of 0 0 8 3 2 or 13 ms You can select 0 ms to disable debouncing for clean high frequency signals Note that long debounce times will limit high frequency response For example a 13 ms debounce will limit frequency to about 50 Hz The following figure shows the effect of 13 ms debouncing on a noisy signal To be c
222. perate in one of two modes 1 single ended mode or 2 differential mode These terms single ended mode and differential mode apply to their use in this manual In other sources these terms may be used in a different manner Choosing between differential and single ended inputs is made by software command The following text briefly describes the two signal modes Single ended mode refers to a mode or circuit set up in which a voltage is measured between 1 signal line and common ground voltage Vcm The measured voltage may be shared with other channels The advantage of a single ended non differential mode over differential mode is that it provides for a higher channel count for example 20 channels instead of 10 In Personal Daq applications thermocouples should not be connected single ended Doing so can result in noise and false readings This is especially true when acquiring other high amplitude signals in conjunction with thermocouple signals that are connected single ended Differential mode refers to a mode or circuit set up in which a voltage is measured between 2 signal lines The measured differential voltage is used for a single channel An advantage of using differential inputs is that they reduce signal errors and the induction of noise resulting from ground current The following illustration is an example of how noise is reduced or canceled out when using the differential mode 5 6 Signal Management 878695 Pers
223. puts TC Inputs Digital I O Freq Pulse Inputs Personal Daq 55 5 DE or 10 SE 5 DE 8 2 Personal Dag 55 with PDQ1 15 DE or 30 SE 15 DE 24 2 Personal Daq 55 with PDQ2 25 DE or 50 SE 25 DE 8 2 Personal Daq 56 Systems Volts Inputs TC Inputs Digital I O Freq Pulse Inputs Personal Daq 56 10 DE or 20 SE 10 DE 16 4 Personal Dag 56 with PDQ1 20 DE or 40 SE 20 DE 32 4 Personal Daq 56 with PDQ2 30 DE or 60 SE 30 DE 16 4 DE Differential Mode SE Single Ended Mode Personal Daq User s Manual 878695 General Information amp Specifications 2 1 Note With the use of USB hubs up to 100 Personal Daq units can be attached to one PC With 100 Personal Daq 56 modules each with a PDQ2 expansion module a total channel capability of 8 000 channels can be obtained An example of capacity calculation follows Calculating System Channel Capacity An Example Assume a Personal Daq system is comprised of the following e one Personal Dag 56 unit e one PDQ2 expansion module Using the table on page 2 1 looking in the bottom row we see that a Personal Daq 56 with PDQ can accept the following types of channel connections e 60 single ended or 30 differential mode for volts inputs e 30 differential mode for thermocouple inputs e 16 Digital I O e 4 Frequency Pulse inputs The maximum channel capacity in this set up is 80 channels With the use of differential mode instead of single ended the maximum channel capacity is 50 channels In Pers
224. quare root of the number of measurements reducing RMS noise significantly may require many samples Thus averaging is suited to low speed applications that can provide many samples Note Only random noise is reduced or eliminated by averaging Averaging does not reduce or eliminate periodic signals Personal Daq User s Manual 878695 Signal Management 5 7 Analog Filtering A filter is an analog circuit element that attenuates an incoming signal according to its frequency A low pass filter attenuates frequencies above the cutoff frequency Conversely a high pass filter attenuates frequencies below the cutoff As frequency increases beyond the cutoff point the attenuation of a single pole low pass filter increases slowly Multi pole filters provide greater attenuation beyond the cutoff frequency but may introduce phase time delay problems that could affect some applications Input and Source Impedance Crosstalk Analog to Digital Converter As illustrated in the figure to the right the input impedance Ri of an analog to digital converter combines with the transducer s source impedance R forming a voltage divider This divider distorts the voltage being read at the analog to digital converter The actual voltage read is represented by the equation Vanc Vr x Ri R Rj The input impedance R of most ADCs is at least 1 MQ low source impedance R usually presents no problem Some transducers such as piezoel
225. r s Manual Troubleshooting amp Customer Assistance 7 Radio Frequency Interference 7 1 Electrostatic Discharge ESD 7 1 Troubleshooting 7 2 Customer Assistance 7 5 Reference Note API Error Codes are defined at the end of Appendix B Radio Frequency Interference Eie Se aa ae a x DT parara Ai sh Personal Daq hardware complies with the limits for a Class B digital device according to FCC rules and CE specifications These limits provide reasonable protection against harmful interference in a residential environment If not installed or used correctly this equipment can radiate radio frequency energy and interfere with radio communications You can determine if the interference is caused by the Personal Daq system by discon necting and then reconnecting the Personal Daq while observing the effect on the interference You can often correct radio interference by one or both of the following measures e Antenna Adjustment Reorient the receiving antenna e Spatial Separation Increase the separation between the Personal Daq equipment and the receiver of the device experiencing interference If the problem cannot be resolved consult an experienced radio television technician for help Electrostatic Discharge ESD Personal Dag User s Manual 887095 The discharge of static electricity can damage some electronic components Semiconductor devices are especially susceptible
226. r an ADC transfer B 17 daqAdcTransferStart Start an ADC transfer B 18 daqAdcTransferGetStat Retrieve status of an ADC transfer B 16 B 18 daqAdcTransferStop Stop an ADC transfer daqAdcRd Configure an A D acquisition and read one sample from a channel daqAdcRdScan Configure an A D acquisition and read one scan daqAdcRdN Configure an A D acquisition and read multiple scans from a channel gam ey ai daqAdcRdScanN Configure an A D acquisition and read multiple scans B 8 daqAdcSetDataFormat Set the raw and post acquisition data formats daqAdcSetFilter Sets the driver to perform filtering of analog channels daqCvtRawDataFormat Convert raw data to a specified format daqCvtSetAdcRange Set the ADC Voltage Range for the conversion routines Read a DIO bit channel B 23 daqIORead Read a DIO byte 8 channels B 22 daqiOWriteBit Write a DIO bit channel B 24 daqioWrite Write a DIO byte 8 channels B 23 B 2 API Commands Appendix B 887095 Personal Dag User s Manual Commands in Alphabetical Order The following pages give the details for each API command Listed in alphabetical order each section starts with a table that summarizes the main features of the command C Visual BASIC and Delphi language prototypes and their related parameters An explanation follows with related information and in some cases a programming example Note Commands parameters values and code all use
227. r event appropriate polarity flags sensitivity flags analog trigger levels and hysteresis values Dim trgSrc amp ChanCount amp Dim adcRanges amp ChanCount amp Dim trigSense amp ChanCount amp Dim levels ChanCount amp Dim hysteresis ChanCount amp When the VBDagAdcSetRate function is used to configure the scan rate the variable actualRate will contain the actual rate for which the device has been programmed in the event that the requested rate is unattainable The ret amp variable is used to hold the return code of all other DaqX function calls Dim actualRate dim ret amp A list of devices that are currently configured on the system along with the number of devices in the list should be obtained using the VBDaqGetDeviceList function ret amp VBdaqGetDeviceList deviceList deviceCount One of the methods used to dynamically locate and open a configured Personal Daq device is shown below The handle amp variable is initialized to 1 so it can be used at the end of the iteration to determine if a device was successfully opened The iteration on deviceIndex amp will obtain the device properties for each device in the device list and use the deviceType property to locate the first Personal Daq 56 device if any that is installed and configured in the system The first Personal Daq 56 that is found in the system is opened using the VBdaqOpen function which returns a value of 1 if the specified device cannot be
228. r to Analog In 2L e Copper short From Personal Dag Analog In 2L 2 low to Personal Daq common COM e HI Lead From Volts DC Calibrator HI to Personal Daq Analog In 2H 2 high e LOLead From Volts DC Calibrator LO to Personal Dag Analog In 2L 2 low USB Cable T Ca DC Volts HI to Analog In 2H Copper Short 3 gt 2L to COM ie A 1 a mt A copper short must be placed between 2L and COM prior to connecting HI and LO lines from the DC Calibrator From DC Volts LO HI and LO Calibration Connections to Personal Dag 33 s Analog Input Channel 2 Note Thermocouple wiring not shown for clarity If used in your application connect the power adapter to the Personal Daq Connect the USB cable to the Personal Daq Allow the entire setup to warm up for at least one hour If using a cold cell device allow the cell to warm up in accordance with the device operator s manual Start the UserCal program from a desktop shortcut or from the Windows Start Menu If you do not use your Personal Daq system for temperature measurements deselect the Thermocouple Calibration option shown in the UserCal dialog box Using the keypad of your PC or laptop enter a reference value between 3 900 and 4 100V Note that a value of 4 096V is recommended The value entered will be used in the following step Using the Volts DC Calibrator apply the reference calibration voltage from the previous step to Analog Input channel 2 If the
229. rBufData BdagqAdcRdScan VBdagAdcTransferSetBuffer VBdagAdcTransferBufData VBdagAdcRdScan VBdagAdcTransferSetBufferSingle VBdagAdcTransferBufDataSingle VBdagAdcRdScanSingle BdagAdcRdN VBdagAdcRdN VBdagAdcRdNSingle BdagAdcRdScanNn VBdagAdcRdScanNn VBdagAdcRdScanNSingle BdagAdcGetBufData VBdagAdcGetBufData VBdagAdcGetBufDataSingle BdagAdcRd VBdagAdcRd VBdagAdcRdSingle BdagqCvtRawDataFormat VBdagCvtRawDataFormat Appendix B 887095 VBdagqCvtRawDataFormatSingle API Commands B 1 Prototype Commands Listed by Function Type as defined in driver header files Function Description Open a session with the Personal Daq daqOpenList Open initialize and prepare devices specified by the deviceList parameter daqClose End communication with the Personal Daq dagCloseList Close devices opened by daqOpenList daqOnline Check online status of the Personal Daq daqGetDeviceCount Return the number of currently configured devices daqGetDeviceList Return the list of currently configured devices daqGetDeviceProperties Return the properties of specified device Set the default error handler daqSetDefaultErrorHandler B 26 daqSetErrorHandler Specify a user defined routine to call when an error occurs in any command B 26 daqProcessError Process a driver defined error condition B 26 daqGetLastError Return the last logged error condition B 22 daqDefaultErrorH
230. ramming Models A 2 Initialization and Error Handling A 3 Foreground Acquisition with One Step Commands A 4 Counted Acquisitions Using Linear Buffers A 5 Indefinite Acquisition Direct To Disk Using Circular Buffers A 7 Multiple Channel Types A 10 Summary Guide of Selected API Functions A 14 Overview By using the Application Programming Interface API with Personal Daq systems you can create custom software to satisfy your data acquisition requirements Appendix B explains the API functions in detail This appendix shows how to combine API functions to perform typical tasks When you understand how the API works with the hardware you are ready to program for optimum data acquisition To help you get this perspective this appendix is divided into 3 parts e Data Acquisition Environment outlines related concepts and defines Personal Daq capabilities the programmer must work with the API hardware features and signal management e Programming Models explains the sequence and type of operations necessary for data acquisition These models provide the software building blocks to develop more complex and specialized programs The description for each model has a flowchart and program excerpt to show how the API functions work e Summary Guide of Selected API Functions is an easy to read table that describes when to use the basic API functions Data Acquisition Environment In order to w
231. readings Prior to using Personal Dag modules ensure your computer s energy save mode is disabled If needed consult your PC user s manual to disable energy save power suspension modes When using a power adapter with your Personal Dag system be sure to supply power from the adapter to the Personal Daq before connecting the USB cable This allows Personal Dag to inform the host computer upon connection of the USB cable that the unit requires minimal power from the computer Note This chapter pertains to hardware aspects of the Personal Daq including the PDQ expansion modules and two basic types of USB hubs se f powered and USB powered Product specifications are contained in the previous chapter Personal Dag User s Manual 878695 Hardware Setup 3 1 Personal Daq System Components Personal Daq The following illustration points out key physical features of the Personal Daq Aside from labeling and the number of terminal blocks Personal Daq 54 55 and 56 look very much alike Upon closer examination you can see differences Both the 55 and 56 contain a DB25 expansion port for mating with a PDQ expansion module Slots on the main units and expansion modules provide a means of attaching units securely with locking clips Personal Daq 54 also has a DB25 port However in the case of the Daq 54 the port is used only for calibration as discussed in chapter 6 Personal Daq 54 contains no functionality in regard to expa
232. reduces noise and improves reading accuracy USB provides both high speed communication and power to the Personal Daq allowing for a single cable connection to the PC No additional power supplies are required except in special setups of multiple units or when connected to certain notebook PCs Note Advanced setups using several Personal Daq units are possible These setups require USB hubs self powered or USB powered In addition depending on the setup certain Personal Daqs in the system may require connection to a power adapter as indicated in Chapter 3 Hardware Setup Note Certain notebook PCs require the use of a power adapter with the Personal Daq Chapter 3 contains more information regarding power adapters Personal Daq 55 and 56 allow for system expansion by snapping a PDQ expansion module onto the unit Chapter 3 Hardware Setup contains detailed information regarding various setup options Although Personal Daq 54 has a 25 pin connector it does not accept expansion modules The connector in the case of Personal Dag 54 is used only for calibration as discussed in chapter 6 Channel Capacities The following table highlights the differences between modules and provides a means for calculating the total channel capacity of a Personal Daq system Channel Capacities for Various Personal Daq Setups Personal Daq 54 Volts Inputs TC Inputs Digital I O Freq Pulse Inputs No Expansion Personal Daq 55 Systems Volts In
233. reference voltage is not found The program aborts the process and prompts you to double check the reference voltage for Analog Input 2H with respect to Analog Input 2L If the reference voltage is found Personal Daq s LED flashes and UserCal prompts you to select Next This step ensures that the Personal Daq is properly configured and can acquire data Apply 0 000V to Analog Input channel 2 Select Next Apply the positive reference voltage from step 13 to Analog Input channel 2 Select Next Apply the negative reference voltage from step 13 to Analog Input channel 2 Select Next Note If UserCal sees any of the three voltages zero reference positive reference or negative reference 18 as incorrect the program informs the user and aborts If Thermocouple calibration was selected calibrate each CJC channel as prompted by UserCal 878395 Personal Dag User s Manual 19 If your Personal Daq is connected to an expansion module remove the USB cable from the Personal Dag main unit if used in your application remove the external power cable from the Personal Dag main unit carefully remove the retaining clips from the Personal Daq modules remove the expansion module from the main unit ifa power adapter was used reconnect the adapter cable to the Personal Daq main unit reconnect the USB cable to Personal Daq main unit Note For step 20 it is recommended that you make a simple harness from a DB
234. reset to the saved power up settings Note Saved power up settings are internal to the Personal Daq device and are not retained by the Personal DaqView software If a device is removed from the PC and a different one is attached the new device will have its own power up settings default or pre saved but will not likely have the same settings as the device which was just removed For enabled channels Personal Daq s digital I O output state settings will change from their power up state designations after the device has been powered up The changes take place as follows e For enabled digital Input channels starting an acquisition will change the digital input channel if needed to match the configuration set in the software e For enabled digital Output channels clicking on the Update Digital Outputs button will sets the indicated output state displayed in the Output State column When you change an output state you must click on the Update Digital Outputs button before the output state actually changes Configure Acquisition Dialog Box Note Parameters can not be altered while the acquisition is in progress The information entered in the Configure Acquisition dialog box is used by the Arm Acquisition command to set up the acquisition of data to disk When the trigger is satisfied the scans are collected at the selected scan frequency and stored to disk in the designated file as indicated in the Data Destination window D
235. ress 04h 4 Bad function address DerrFIFOFull 05h 5 FIFO Full detected possible data corruption DerrBadDma 06h 6 Bad or illegal DMA channel or mode specified for device DerrBadInterrupt 07h 7 Bad or illegal INTERRUPT level specified for device DerrDmaBusy 08h 8 DMA is currently being used DerrInvChan 10h 16 Invalid analog input channel DerrInvCount 1ih 17 Invalid count parameter DerrInvTrigSource 12h 18 Invalid trigger source parameter DerrInvLevel 13h 19 Invalid trigger level parameter DerrInvGain 14h 20 Invalid channel gain parameter DerrInvDacVal 15h 21 Invalid DAC output parameter DerriInvExpCard 16h 22 Invalid expansion card parameter DerrInvPort 17h 23 Invalid port parameter DerrInvChip 18h 24 Invalid chip parameter DerrInvDigVal 19h 25 Invalid digital output parameter DerriInvBitNum 1Ah 26 Invalid bit number parameter DerrInvClock Invalid clock parameter DerriInvTod Invalid time of day parameter DerrInvCtrNum Invalid counter number DerrInvCntSource Invalid counter source parameter DerrInvCtrCmd Invalid counter command parameter DerrInvGateCtrl Invalid gate control parameter DerrInvOutputCtrl Invalid output control parameter DerrInvinterval Invalid interval parameter DerrTypeConflict An integer was passed to a function requiring a character DerrMultBackxXfer A second background transfer was requested DerrInvDiv Invalid Fout divisor 2mperature DerrTCE TYPE TC type out of range DerrTCE_T
236. rint the end result To revise the report s text just edit the document as needed To update the spreadsheet double click on the embedded spreadsheet object to access Personal DaqgViewXL then create and embed a new spreadsheet object Personal DaqView XL supports all models of the Personal Daq family including expansion modules and provides the engineering unit output required for each configured channel on an individual basis For example data for a voltage channel can be returned in volts while data from a thermocouple is being returned in degrees 66 You can use Personal DaqViewXL s scale and offset feature to automatically convert channel data to custom units and then have the scale and offset applied to the data prior to its appearing in the spreadsheet The scale and offset feature is especially handy for transducers such as strain gages because it converts the return voltage value to units such as pounds or units of pressure Personal DaqViewXL User s Guide 918596 491 0905 rev 3 0 System Requirements For successful operation of Personal DaqViewXL with your Personal Daq system your computer should conform to the following as a minimum e PC system with Pentium processor e USB port e Microsoft Excel version 8 e Microsoft Windows 98SE Second Edition Windows Me 2000 or XP e 16 Mbytes of RAM 32 Mbytes recommended e Energy Save modes disabled see the Caution on page 1 Installation
237. riod e Otherwise Frep Fest Note Current Time is the elapsed time from the start of a frequency measurement and is reset each time the AcqPeriod is reached Digital Input Output Spreadsheet Does not apply to Personal Daq 54 The Digital Input Output spreadsheet allows you to configure and monitor the related digital channels Each row shows a single channel and its configuration W Channel Configuration IOl x Control Tum channel on off on Analog Input Frequency Pulse Input Digital Input Output Physical Power LUp 1 Input 0 Closed Output 0 Closed 0 Closed Output 1 Open 0 Closed 1 Input 1 Open 1 Input 0 Closed Channel Configuration Window Selected for Digital Input Output Spreadsheet The following text provides more detail regarding the Digital Input Output channel configuration parameters Note that columns labeled Physical Channel User Label On and Reading are discussed in the section Common Spreadsheet Columns page 4 7 The Scale and Offset feature does not apply to digital channels Input Output Column This column identifies the digital channel mode as input or output and is used to select the desired mode Output State Column When the output mode is selected Personal Daq s physical internal switch closes to ground This O Closed switch position is the output state s default setting O Closed is typically used for digital output logic applications where logic output is
238. rite effective data acquisition software programmers must understand e Software tools the API documented in this manual and the programming language you may need to consult documentation for your chosen language e Hardware capabilities and constraints e General concepts of data acquisition and signal management Application Programming Interface API The API includes all the software functions needed for building a data acquisition system with the hardware described in this manual Appendix B API Commands supplies the details about how each function is used parameters hardware applicability etc In addition you may need to consult your language and computer documentation Hardware Capabilities and Constraints To program the system effectively you must understand your Personal Daq hardware capabilities Obviously you cannot program the hardware to perform beyond its design and specifications but you also want to take full advantage of the system s power and features You may need to refer to manual chapters that pertain to hardware capability In addition you may need to consult your computer documentation In some cases you may need to verify the hardware setup use of channels and signal conditioning options Signal Environment Important data acquisition concepts for programmers are listed below You should also refer to Appendix C Signal Management and Troubleshooting to gain a better understanding of signal related issue
239. rization Ctrl U 9 Authorization Enter Authorization Code Feature dCS tts pO ag iewesL Disable pO agview Plus Disable Apply Code Start 30 Day Trial Authorization Dialog Box The File Pull Down menu includes an Authorization dialog box If you have pDaqViewXL or pDaqView Plus you must enter an appropriate authorization code to enable the applicable feature If you do not have an authorization code you can obtain one from your service representative or can enable both features for a 30 day trial period It is possible for a code to authorize one or both features depending on how the options were ordered Exit Ctrl Q Exits the program View Active Devices Provides a list of available devices their serial number and device type A checkmark appears next to the selected device Use the mouse to select or deselect a device Device in this context can include an expansion module for example a Personal Daq 55 with an attached PDQ1 would be one device Only one device can be active at a time Acquisition Brings up the Configure Acquisition window Configuration Channel Configuration Opens the channel configuration window if closed with the Analog Input channels spreadsheet selected Data Destination Brings up the Data Destination dialog box for assigning the destination folder and Configuration filename Also provides the option to select sequential destinations Auto Rearm Pre
240. rror is to be processed errCode Specifies the device error code to process Returns Refer to API Error Codes on page page B 33 See Also daqSetDefaultErrorHandler daqGetLastError daqDefaultErrorHandler Program References Used With All devices Description dagProcessError allows an application to initiate an error for processing by the driver This command can be used when it is desirable for the application to initiate processing for a device defined error daqSetDefaultErrorHandler DLL Function daqSetDefaultErrorHandler dagqErrorHandlerFPT handler Delphi daqSetDefaultErrorHandler handler daqirrorHandlerFPT SOSOSC S S Retums DereWokrror Noeror O O O oOo SoSo S See Also daqDefaultErrorHandler daqGetLastError daqProcessError daqSetErrorHandler Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DIGEX1 C INITEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With All devices Description daqSetDefaultErrorHandler allows you to set the driver to use the default error handler specified for all devices daqSetErrorHandler DLL Function daqSetErrorHandler DaqHandleT handle daqErrorHandlerFPT handler daqSetErrorHandler DaqHandleT handle DaqErrorHandlerFPT handler Visual BASIC VBdaqSetErrorHandler amp ByVal handle amp ByVal handler amp Delphi daqSetErrorHandler handle DaqHandleT handler daqErrorHandlerFPT handle Handle to the device to which to at
241. rsonal DaqView Function Activates the meter Does not affect the recording of data to disk Stops the meter Does not affect the recording of data to disk Resets the floating markers which indicate high and low reading peaks Upon reset the markers will instantly adjust to indicate the highest and lowest values reached since the time of the reset This feature does not apply to the Digital Meters Locks or unlocks the meter s position When locked the meter will appear on top of other windows and will retain the on top relationship Sends the meter display image to connected printer Opens a small menu with row x column arrangement options Example When the number of meters is 6 the grid options will be 6x1 3x2 2x3 and 2x4 with the first number being the number of rows If you then select 3x2 you will have 3 rows of meters with 2 meters per row Specifies the number of meters to appear on the screen A maximum number of 32 meters can be selected 989394 Personal Daq User s Manual Meter Pull Down Menus The meter windows each have Control and View pull down menus as indicated by the following figure The functions of these menus can also be implemented by using the meter toolbar buttons Start Number of Meters ooo 1 Stop Rows Columns 2 E a ee R 3 Reset Peak Hald Stay On Top 4 Close Print g 16 Ja Custom i Bar Graph Meters x Please enter the number of meters 1 32 Canc
242. rt Sheet CA 179 x Optional USB Cable x meter length 1 e CA 179 1 1 meter CA 179 3 3 meter or CA 179 5 5 meter PDQ1 or PDQ2 Optional expansion modules cannot be used with Personal Daq 54 PDQI1O Optional PDQ10 DIN Rail Mounting Kit Reference Note You can refer to our latest catalog for a list of accessories available for Personal Daq Personal Daq User s Manual 878395 1 1 When using Personal Daq modules to acquire data computer energy save modes can cause false data readings Prior to using Personal Daq modules ensure your computer s energy save mode is disabled If needed consult your PC user s manual to disable energy save power suspension modes Install Software IMPORTANT Software must be installed before installing hardware 1 Remove previous version Daq drivers if present You can do this through Microsoft s Add Remove Programs feature 2 Place the Data Acquisition CD into the CD ROM drive Wait for PC to auto run the CD This may take a few moments depending on your PC If the CD does not auto run use the Desktop s Start Run Browse feature 3 After the intro screen appears follow the screen prompts Upon completing the software installation continue with step 2 Install Hardware Install Hardware Depending on your order your Personal Dag unit may not require all the steps under this heading for example if you did not order a PDQ expansion module you would not connect one
243. s DerrNoError No error See Also Program References None Description daqCvtSetAdcRange allows you to set the current ADC range for use by the daqCvt functions This function should not need to be called if used for data collected by the Personal Daq devices daqDefaultErrorHandler DLL Function DaqDefaultErrorHandler DaqHandleT handle daqError errCode DaqDefaultErrorHandler DaqHandleT handle DaqError errCode Visual BASIC VbdaqDefaultErrorHandler ByVal handle amp ByVal errcCode amp DaqDefaultErrorHandler handle DaqHandleT errCode daqError Delphi Parameters Handle Handle to the device to which the default error handler is to be attached ErrCode The error code number of the detected error None See Also DaqGetLastError daqProcessError daqSetDefaultErrorHandler Program References None Used With All devices Description daqDefaultErrorHandler displays an error message and then exits the application program When the Personadag library is loaded it invokes the default error handler whenever it encounters an error The error handler may be changed with daqSetErrorHandler dagqFormatError DLL Function daqFormatError daqError errorNum PCHAR msg dagqFormatError DaqError errorNum PCHAR msg Visual BASIC VBdaqFormatError amp ByVal errorNum amp ByVal msg amp Delphi dagqFormatError errorNum dagerror msg PCHAR Parameters daqError Personal Dag API error code
244. s These include Personal Daq User s Manual Appendix A 887095 API Custom Program Modules A 1 e Channel Identification e Scan Rates and Sequencing With multiple scans the time between scans becomes a parameter This time can be a constant or can be dependent upon a trigger e Counter Timer Operation e Triggering Options Triggering starts the A D conversion The trigger can be an external analog or TTL trigger or a program controlled software trigger e Foreground Background Foreground routines Rd routines require the entire transfer to occur before returning control to the application program Background routines Transfer routines start the A D acquisition and return control to the application program before the transfer occurs Data is transferred while the application program is running Data will be transferred to the user memory buffer during program execution in 1 or more sample blocks depending on the configuration The programmer must determine what tasks can proceed in the background while other tasks perform in the foreground and how often the status of the background operations should be checked Parameters in the various A D routines include number of channels number of scans start of conversion triggering timing between scans and mode of data transfer Channels can be sampled in consecutive or non consecutive order with the same or different gains The scan sequence makes no distinction between local and expans
245. signal components An undesired transfer of signals between systems or system components Crosstalk causes signal interference more commonly referred to as noise Digital Digital to Analog Converter DAC Personal Dag User s Manual A digital signal is one of discrete value in contrast to a varying signal Digital data is represented by combinations of binary digits Os and 1s A circuit or device that converts digital values binary bits into analog signals 928196 Signal Management 5 1 5 2 Data Acquisition Terms and Meanings Differential mode voltage Differential mode voltage refers to a voltage difference between two signals referenced to a common point Example Signal 1 is 5VDC referenced to common Signal 2 is 6VDC referenced to common If the 5VDC is used as the reference then the differential voltage is 6 5 or 1VDC If the 6VDC is used as the reference then the differential voltage is 5 6 or 1 VDC The differential mode measures a voltage between 2 signal lines for a single channel Also see single ended mode ESD Electrostatic discharge ESD is the transfer of an electrostatic charge between bodies having different electrostatic potentials This transfer occurs during direct contact of the bodies or when induced by an electrostatic field ESD energy can damage an integrated circuit IC so safe handling is required Excitation Some transducers e g stra
246. sonal DaqView XL and Personal DaqView Plus XL function very much like their respective base Personal DaqView programs with exception that the XL version programs are add ins to Microsoft Excel and run from within the Excel environment The XL version software allows you to make use of Excel s associated macros Users of the XL version software for Personal DaqView should refer to the document Personal DaqViewXL User s Guide part number 491 0905 If you do not have the XL version Personal DaqView software but are interested in obtaining it please contact your service representative Groups Charts amp Channels Before continuing with this section it is important that you ae understand the chart display structure in terms of groups charts EHA Display and channels Group 1 Group refers to a group of charts Note that Personal DaqView E Chart 1 Plus allows up to 64 groups depending on the capabilities of T your PC but can only display one group at a time EA PD1_A0 Chart refers to display area which reflects real time channel E Chart 2 data values for a selected channel and can be scrolled at various rates You can assign up to 16 charts per group The standard LFAPD1 Adz version of Personal DaqView is limited to displaying one el Group 2 channel per chart Personal DaqView Plus can display up to E Chart 1 four overlapping channels per chart Channel refers to a signal channel Channels will be displayed PEP 1 A
247. sued prior to calling daqAdcArm Personal Daq will perform calibration upon execution of the daqAdcArm command Personal Daq User s Manual Appendix B 887095 API Commands B 3 dagAdcDisarm DLL Function CRS ee al Delphi dagAdcbisarm handle Daqiiandtex Retums Permnorror Noer OSS See Also daqAdcArm Used With All devices S O Description daqAdcDisarm allows you to disarm an acquisition if one is currently active e If the specified trigger event has not yet occurred the trigger event will be disabled and no acquisition will be performed e If the trigger event has occurred both the acquisition and the transfer of data come to a halt i lanai dagqAdcGetFreq DaqHandleT handle PFLOAT freq co BASIC VbdagAdcGetFreg amp ByVal handle amp freq Delphi daqAdcGetFreq handle DaqHandleT var freq single Parameters handle Handle to the device for which to get the current frequency setting freq A variable to hold the ao defined sampling frequency in Hz Fe ane roa me oaranty aret anaa RE Returns DerrNoError No errors daqAdcSetFreq daqAdcSetClock None All devices Description daqAdcGetFreq reads the sampling frequency of the pacer clock dagAdcGetScan DLL Function daqAdcGetScan DaqHandleT handle PDWORD channels daqAdcGain gains PDWORD flags PDWORD chanCount C daqAdcGetScan DaqHandleT handle PDWORD channels DaqAdcGain gains PDWORD flags PDWORD chanCount VbdagqA
248. t daqAdcTransferGetStat Check status of transfer User code to determine if transfer should stop Transfer is complete disarm the acquisition dagqAdcDisarm e VBdagAdcTransferGetStat amp handle amp status amp retCount amp e VBdaqwaitForEvent amp handle amp dagEvent amp e VBdagAdcSetDiskFile amp handle amp filenameS openMode preWrite This program will initialize the Personal Daq hardware then take readings from the analog input channels in the base unit not the expansion channels and store them to disk automatically The following lines demonstrate channel scan group configuration using the daqAdcSetScan command Note Flags may be channel specific Dim handle amp ret amp channels amp 8 gains amp 8 flags amp 8 Dim buf 80 000 active amp count amp Dim bufsize amp bufsize amp 10000 Personal Dag User s Manual Appendix A 878495 API Custom Program Modules A 7 Define arrays of channels and gains 1 8 unity gain For x amp 0 To 7 channels amp x amp x amp 1 gains amp x amp Pgainx1 amp flags amp x amp DafAnalog amp DafSingleEnded amp Next x amp Load scan sequence FIFO ret amp VBdagAdcSetScan amp handle amp channels amp gains amp flags amp 8 The acquisition mode needs to be configured to be fixed length acquisition with no pre trigger scan data and 10 scans of post trigger scan data The mode is set to D
249. t all devices in the list The specified deviceList must reference currently configured devices that are currently connected to the host system The deviceList parameter should consist of device names as returned by the daqGetDeviceList function The deviceIndex parameter will return a list of indexes representing the logical position of the corresponding named device in the opened device list This index can then be used to program the appropriate device channel pair in such functions as daqAdcSet Scan dagAdcSetMux dagqAdcRd etc The daqOpenList call should be performed prior to any other operation performed on the devices This function will return a device handle that other functions use to reference the devices Once the device has been opened the device handle should be used to perform subsequent operations on the devices Most functions in this manual require a device handle in order to perform their operation To close the device list when the session is complete daqCloseList may be called with the returned handle Personal Dag User s Manual Appendix B 887095 API Commands B 25 daqProcessError DLL Function dagqProcessError DaqHandleT handle daqError errCode dagqProcessError DaqHandleT handle DaqError errCode Visual BASIC VBdaqProcessError amp ByVal handle amp ByVal errCode amp Delphi dagProcessError handle DaqHandleT errCode daqError handle Handle to the device for which the specified e
250. t most digits will be lost from view first a reading of 8 388118 V could look like 8118 V with the most significant didgits of 3 38 no longer visible Scale amp Offset The scale offset feature applies to Analog Input and Frequency Pulse Input spreadsheets This feature allows you to alter the default linear mx b transfer function These types of alterations can be useful in special applications An example follows shortly To change scale or offset values from default use the mouse to select the spreadsheet cell of the applicable channel s scale or offset type in the desired value and hit the enter key of your keypad Note that the scale is the linear relation to the input sometimes referred to as m Offset is plus or minus from zero the b of the mx b linear equation Note The reading and range columns will change automatically according to the new scale offset values The following examples illustrate possible uses of the scale offset feature Personal Daq User s Manual 989394 Personal DaqView 4 7 Engineering Units Conversion Using mx b Most of our data acquisition products allow the user to convert a raw signal input for example one that is in volts to a value that is in engineering units for example pressure in psi The products accomplish this by allowing the user to enter scale and offset numbers for each input channel using the software associated with the product Then the software uses these numbers
251. tach the specified error handler handler Pointer to a user defined error handler function Returns DerrNoError No error daqSetDefaultErrorHandler daqDefaultErrorHandler daqGetLastError daqProcessError Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DIGEX1 C INITEX1 C DAQEX FRM VB DAQEX PAS Delphi Description daqSetErrorHandler specifies the routine to call when an error occurs in any command The default routine displays a message and then terminates the program If this is not desirable use this command to specify your own routine to be called when errors occur If you want no action to occur when a command error is detected use this command with a null 0 parameter The default error routine is daqDefaultHandler B 26 API Commands Appendix B 887095 Personal Dag User s Manual daqSetOption DLL Function daqSetOption DaqHandleT handle DWORD chan DWORD flags daqOptionType optionType FLOAT optionValue C daqSetOption DaqHandleT handle DWORD chan DWORD flags DaqOptionType optionType FLOAT optionValue Visual BASIC VBdaqSetOption amp ByVal handle amp ByVal chan amp ByVal flags amp ByVal optionType amp ByVal optionValue daqSetOption Handle DaqHandleT chan DWORD flags DWORD optionType daqOptionType optionValue FLOAT Parameters handle The handle to the device for which to set the option chan The channel number on the device for w
252. ter and Units Division are automatically adjusted You can not directly adjust Y Center or Units Division while Units Full Scale is selected You can change Y Max and Y Min by using the up and down arrows or by highlighting the existing value typing in the new value the pressing Enter on your PC keyboard Note Ifthe window size is changed a chart operating in the Units Full Scale mode will maintain its full scale setting across the chart Units Div When Units Div is selected you can alter Y Center and Units Div Y Center is the centerline value of the chart when the channel is selected Units Div is the vertical value of on chart grid increment When you change Y Center or Units Div Y Max and Y Min are automatically adjusted You can not directly adjust Y Max or Y Min while Units Div Is selected You can change Y Center and Units Div by using the up and down arrows or by highlighting the existing value typing in the new value the pressing Enter on your PC keyboard Note Ifthe window size is changed a chart operating in the Units Div Mode will maintain its units per division scale setting across the chart The channels in the display setup you create will be automatically enabled and will appear in chart form on Personal DaqView s Chart Display Window The Channels will overlap on their assigned Chart and will be visible when the applicable Group is selected Note that only one group of charts can be viewed at
253. that the harness is not required however its use is recommended to avoid damaging the Personal Dag expansion connector and to ensure good pin contact Thermocouple calibration not required if Personal Daq system is not used for temperature measurements Calibration Procedure Computer energy save Suspension modes can result in false calibration constants and erroneous data Prior to the one hour calibration warm up time ensure your computer s energy save mode is disabled If needed consult your PC user s manual to disable energy save Observe the above caution and those listed on page 6 1 Note UserCal provides screen prompts to guide you through the calibration procedure L 2 3 4 5 Disconnect the USB cable from the Personal Daq main unit If a power adapter is used in your application disconnect the adapter cable from the unit Remove all signal lines from the main unit terminal blocks If an expansion module is used remove all signal lines from the expansion module terminal blocks If an expansion module is used in your application but is not connected to the main unit connect the module to the main unit and secure with retaining clips If you do not use your Personal Dag system for temperature measurements proceed directly to step 7 If you use your Personal Daq system for any temperature measurements complete steps a through d then proceed with step 7 a Place thermocouple in an ice
254. the DafAnalog value is used as the bit mask for the specified flags parameter The next line requests 1 reading from 1 channel with a gain of x1 The variable PgainX16 amp is actually a defined constant from PDAQX BAS ret amp VBdagAdcRdSingle amp handle amp 1 sample 0 PGainX1 amp DafAnalog Print Result of AdcRd amp FormatS Str sample 0 0000 The next line requests 10 readings from channel at a gain of x1 using immediate triggering at 1 kHz ret amp VBdagAdcRdNSingle amp handle amp 1 buf 10 DatsImmediate amp 0 0 1000 PGainxX1 amp DafAnalog Print Results of AdcRdN For x amp 0 To 9 Print Format str buf x amp H Next x amp The program will then collect one sample of channels through 8 using the VBdaqAdcRdScan function ret amp VBdagAdcRdScanSingle amp handle amp 1 8 buf PGainxX1 amp DafAnalog Print Results of AdcRdN For x amp 0 To 7 Print Channel amp Str x 1 amp Data FormatS buf x amp Next x amp A 4 API Custom Program Modules Appendix A 878495 Personal Dag User s Manual Counted Acquisitions Using Linear Buffers This section sets up an acquisition that collects post trigger A D scans This particular example demonstrates the setting up and collection of a fixed length A D acquisition in a linear buffer First the acquisition is configured by setting up the channel scan group configuration
255. the left mouse button to cycle through listed selections or write enable a cell as applicable If the cell has a given parameter list Such as those in the On Range and Measurement Duration columns the parameter will change with each double click allowing you to cycle through all possible selections Note that these selections are repetitive in other words you will eventually advance to the same selection you started with Type in cells such as User Label Scale and Offset can be selected on double click for easy editing Single click left then single click right to write enable a cell Completing this action with the mouse buttons while having the cursor on a cell such as Scale or Offset allows you to use you PC s keypad to type the desired value into the field Single click left single click right then single click left again to open an associated pull down list for the applicable cell from which a selection can be made This pull down list appears in the selected cell s row Acquisition Configuration To configure acquisition parameters activate the Configure Acquisition Window by using toolbar button 8 Conie Acai Pre Trigger Trigger Fost Trigger Pre T rigger Trigger Post Trigger SOUICE Manual 7 Channel rj Duration 0 Scans Condition Threshold T a Hysteresis 0 m ec Pre Trigger Tab Selected Averaging Type Count Acquisition Param
256. to ESD damage You should always handle components carefully and you should never touch connector pins or circuit components unless you are following ESD guidelines in an appropriate ESD controlled area Such guidelines include the use of properly grounded mats and wrist straps ESD bags and cartons and related procedures Troubleshooting amp Customer Assistance 7 1 Troubleshooting Certain problems can be solved without factory assistance Before calling your service representative you should go through the following checklist as well as the symptoms and solutions When applicable be sure to follow ESD prevention guidelines to avoid damaging components Basic Checklist QO Power Check USB cable and connections Check hub connections and power adapters when applicable If using a laptop computer ensure the laptop s battery is sufficiently charged Q Signal Check signal lines and connections Connectors must be free of corrosion Signal lines should be undamaged and free of sharp bends and twists Signal paths should avoid potential sources of noise high voltage and electromagnetic interference Q Software Try to acquire data with Personal DaqView If you are unable to acquire data in both Personal DaqView and another program a hardware problem is likely QO Setup Parameters Make sure the device selected in software matches the hardware being used Verify that setup parameters are correct for your application Sympto
257. to convert the raw signals into engineering units using the following mx b equation Engineering Units m Raw Signal b 1 The user must however determine the proper values of scale m and offset b for the application in question To do the calculation the user needs to identify two known values 1 the raw signal values and 2 the engineering units that correspond to the raw signal values After this the scale and offset parameters can be calculated by solving two equations for the two unknowns This method is made clear by the following example Example I An engineer has a pressure transducer that produces a voltage output of 10 5 volts when the measured pressure is 3200 psi The same transducer produces an output of 0 5 volt when the pressure is O psi Knowing these facts m and b are calculated as follows A Write a pair of equations representing the two known points 3200 m 10 5 b 2 0 m 0 5 b 3 B Solve for m by first subtracting each element in equation 3 from equation 2 3200 0 m 10 5 0 5 b b 4 Simplifying gives you 3200 m 10 5 This means m 320 6 So C Substitute the value for m into equation 3 to determine the value for b 0 320 0 5 b 7 b 160 8 Now it is possible to rewrite the general equation 1 using the specific values for m and b that we just determined Engineering Units 320 Raw Signal 160 9 The user can then enter the va
258. to disk 3 Select Active Device Provides a list of available devices their serial number and device type A checkmark appears next to the selected device Use the mouse to select or deselect a device Device in this context can include an expansion module for example a Personal Daq 55 with an attached PDQ1 would be one device 4 Arm Trigger for Disk Arms the trigger and stores acquisition data to a designated disk file If Auto Rearm is Recording selected clicking this button puts Auto rearm in effect This button is also used to disarm the data acquisition 5 Manual Trigger Used to trigger the device when the mode of trigger is set to Manual Note that the Manual Trigger button can not be depressed until after the trigger is armed for example by first pressing button 4 6 Update Digital Outputs Updates digital outputs for all digital channels that are selected to Output State See Digital Input Output Spreadsheet page 4 14 Digital I O does not apply to Personal Daq 54 7 Configure Data Accesses the Configure Data Destination window page 4 16 Note that this window Destination provides a means of selecting sequential destinations through an auto rearm feature 8 Configure Acquisition Accesses the Configure Acquisition window page 4 15 9 Configure Channel Brings up the Channel Configuration window From this window you can configure Settings channels for Analog Input page 4 8 Frequency Pulse Input page 4 12
259. ton or Indicators pull down menu brings up the Bar Graph window This window displays several channels in bar graph format To activate the display select the Start button from this window s toolbar At least one meter must be assigned to an active On channel You can select to view up to 32 meters at a given time H Bar Graph Meters Control wiew Ta Select Channel a 50 0 00 1 Select Channel Set Scale 2 5 o OO Show Peak Hold Indicator Reset Peak Hold Indicator 0 g OO Show Trend Indicator 1 PO1 Av 2 PO1 AU Set Limits 51 1 60 Show Limits NiE vv Properties Bargraph Meters Shown with 2 Meters Selected for Viewing Note 1 Double clicking the left mouse button in a meter scale area brings up a channel selection pop up menu item H A single click with the right mouse button in this same area brings up a configuration pop up menu item I Both of these pop up menus were discussed in the section Meters Configuration Menu page 4 21 The items in the above figure as follows A Start B Stop C Reset Peak Hold Indicators D Stay on Top E Print F Rows x Columns G Select the number of Meters to be displayed H Channel Selection box Activated by double clicking left mouse button in a meter s scale area Configuration Pop Up Menu Activated with a single click of the right mouse button in a meter s scale area Configuration Note for Bar Graph Meters
260. tpdaqPulses Sets the specified Freq Pulse channel as Pulse Count DcotpdaqFreqRes Sets the resolution of the Freq Channel DcotpdaqRunningCal Sets the running calibration flag for the system DcotpDaqOverrangeProtect 8 Enables the over range protection mode daftSWAvg optionValue DcovEdgeRising ig Sets the edge sensing to rising for the Pulse Freg Channel DcovDut yHigh Sets the Pulse Channel to Duty Cycle High DcovEdgeFalling i Sets the edge sensing to falling for the Pulse Freq Channel DcovPulseTotalize 10h Sets the Pulse Channel to Totalize DcovPulseCount Sets the Channel as Pulse Count Default Debounce Settings DcovDebounce0 Set Debounce to 0 us for the Pulse Freq channel DcovDebounce600 Set Debounce to 600 us for the Pulse Freq channel DcovDebounce2500 Set Debounce to 2500 us for the Pulse Freq channel Set Debounce to 10000 us for the Pulse Freg channel Note The Asterisks in the preceding tables indicate that the definitions do not apply to Personal Daq 54 B 32 API Commands Appendix B 887095 Personal Daq User s Manual Table 9 API Error Codes ror al 3 00h 0 DerrNoError No error DerrBadChannel Oih 1 Specified LPT channel was out of range DerrNotOnLine 02h 2 Requested device is not online DerrNodaqbook 03h 3 daqBook is not on the requested channel DerrBadAdd
261. trigger detection This example will retrieve an indefinite amount of scans for channels through 8 triggered via software with a 3 Hz sampling frequency and unity gain Functions used include e VBdagAdcSetScan amp handle amp channels amp gains amp flags amp ChanCount amp e VBdagAdcSetRate amp handle amp mode amp state amp req uested actual e Function VBdagqAdcSetTrigEnhanced amp handle amp triggerSources amp gains amp adcRanges amp trigSense amp levels hysteresis chan amp ChanCount amp opstr e VBdagAdcSetAcg amp handle amp mode amp preTrigCoun t amp postTrigCount amp e VBdagAdcTransferSetBufferSingle handle amp buf ScanCount amp transferMask amp e VBdagAdcTransferStart amp handle amp E eu group of channels Set the sampling rate DagAdcSetRate Configure the acquisition to be indefinite post trigger dagqAdcSetAcq DaqAdcSet TrigEnhanced dagqAdcTransferSetBuffer dagqAdcSetDiskFile dagqAdcArm T Initiate data transfer to disk daqAdcTransferStart no data will transfer until trigger event occurs daqAdcSoftTrig Configure the trigger event to be software trigger Configure a circular acquisition buffer 10 000 scans in length Open the disk file and make it ready to receive A D Data Arm the acquisition Trigger the acquisition Wait for data to become available DaqwaitForEven
262. ts 5 differential inputs or as a combination of single ended and differential inputs with up to 10 connections Personal Daq 56 includes 20 analog signal inputs which may be used as 20 single ended inputs 10 differential inputs or as a combination of single ended and differential inputs with up to 20 connections Single ended inputs are used with signals that share the same common low COM such as multiple batteries which have their negative sides connected in common Differential inputs are required when signals do not share the same common low such as in the typical use of thermocouples A simple example showing two single ended inputs V1 and V2 and a differential input V3 follows In Personal Daq applications thermocouples should not be connected single ended Doing so can result in noise and false readings This is especially true when acquiring other high amplitude signals in conjunction with thermocouple signals that are connected single ended Personal Dag Terminal Block Partial tals le lay L L V1 and V2 are Single Ended Inputs Vis V3 is a Thermocouple and is a Differential Input Single Ended and Differential Connections to Analog Input Channels For Personal Dag 55 and Personal Dag 56 the number of analog input channels can be expanded with use of a PDQ expansion module There are two types of PDQ expansion modules either type can be snapped on to a Personal Daq unit however each Personal Daq c
263. tting Scan group configuration may be composed of local or expansion module channels The channels parameter is a pointer to an array of up to 8192 channel device values Each entry represents a channel device number in the scan group configuration Channel device combinations can be entered multiple times at the same or different gain setting The gains parameter is a pointer to an array of up to 8192 gain settings Each gain entry represents the gain to be used with the corresponding analog channel entry Gain entry can be any valid gain setting for the corresponding channel The flags parameter is a pointer to an array of up to 8192 channel flag settings Each flag entry represents a 4 byte wide bit map of channel configuration settings for the corresponding channel entry The channel flags can be used to set channel specific configuration settings See the Channel Configuration Flags Definition table for valid channel flag values The chanCount parameter represents the total number of channels in the scan group configuration This number also represents the number of entries in each of the channels gains and flags arrays Personal Dag User s Manual Appendix B 887095 API Commands B 13 dagAdcSetTrigEnhanced DLL Function dagAdcSetTrigEnhanced DaqHandleT handle dagqAdcTriggerSource trigSources dagqAdcGain gains dagqAdcRangeT adcRanges dagEnhTrigSensT trigSensitivity PFLOAT level PFLOAT hysteresis PDWORD channels DWORD chanCount
264. uency and pulse measurements can be scanned along with analog input measurements with resolution up to 7 digits Digital I O Not applicable to Personal Daq 54 You can program each digital I O line individually as input or output Digital input lines can be read as part of the analog scan sequence and can be scanned over 100 times per second Digital output lines can be updated at any time prior to or during an acquisition sequence or can be automatically updated Digital input voltage ranges from 0 to 15 VDC are permitted with thresholds of lt 1 3V low and gt 3 8V high In the output mode each output is an open collector with each bank of eight outputs capable of sinking up to 150 mA for direct drive applications External pull up voltages can be up to 15 VDC Over voltage is rated at 20 VDC for up to 1 minute Refer to the following figure for information regarding Digital I O connection External Personal Daq Power supply Input signal 2 KO F Source Voltage a l 5 V 0 to 15 V _ Device 27 KQ e g Relay Solid state Switch Output MOSFET E Personal Daq Digital Output Connections Note The figure represents connections for one channel D8 The other seven channels D1 D7 are connected in the same manner Note The maximum load current is 150 mA per 8 channel bank or if all eight channels are used 18 mA max per channel 2 8 General Information amp Specificatio
265. uffer also stops transient signals from propagating backwards from the multiplexer to the transducer 5 8 Signal Management 878695 Personal Dag User s Manual Calibration 6 Introduction 6 1 Required Equipment 6 2 Calibration Procedure 6 2 Introduction Although Personal Dag units are calibrated prior to shipment they still require periodic calibration to ensure that accuracy is maintained The industry standard for this calibration is once per year UserCal provides prompts to assist you through Personal Daq s calibration procedure The Windows based program was developed with the intent of making the calibration task easy to perform Note Calibration constants are calculated and stored in each Personal Daq unit s serial EEPROM This permits adding expansion modules to single Personal Daq units It also allows you to swap expansion modules from one Personal Daq unit to another Use approved ESD precautions including static free work area and grounded wrist strap when handling electronic components Failure to do so could cause equipment damage due to electrostatic discharge Calibration is to be performed by authorized personnel in a controlled still air environment at 2342 C Failure to comply with this requirement can result in faulty equipment performance and necessitate additional services of an authorized metrology lab The VDC Calibrator used must meet the following criteria 1 R
266. ur system Pay special attention to Warnings and Cautions Note PDF 491 0901 PDF 1086 0926 1086 0922 During software installation Adobe PDF versions of user manuals will automatically install onto your hard drive as a part of product support The default location is in the Programs group which can be accessed from the Windows Desktop Initial navigation is as follows Start Desktop Start pull down menu Programs gt IOtech PDaq View Software You can also access the PDF documents directly from the data acquisition CD by using the lt View PDFs gt button located on the opening screen Refer to the PDF documentation for details regarding both hardware and software A copy of the Adobe Acrobat Reader is included on your CD The Reader provides a means of reading and printing the PDF documents Note that hardcopy versions of the manuals can be ordered from the factory PersonalDaq_UsersManual pdf Contains the Personal Daq hardware related and software related chapters as well as a link to the following pdf file This pdf file plus the following constitute a complete set of documentation for the Personal Daq Devices PostAcquisition Analysis pdf This pdf consists of two documents The first discusses eZ PostView a post data acquisition analysis program The application is included free as a part of product support The second includes information regarding eZ FrequencyView and eZ TimeView Th
267. uration 7 4 Troubleshooting amp Customer Assistance 878495 Personal Daq User s Manual Customer Assistance Reference Notes Before calling for assistance e Refer to the portions of this manual relevant to your situation especially the troubleshooting material e Refer to Appendix B APJ Commands if you are creating your own programs The appendix lists command functions in alpha numerical order and includes error code definitions To report problems and receive support call your service representative When you call please have the following information available e Hardware model numbers e Contents of your CONFIG SYS AUTOEXEC BAT and SYSTEM INI files e Software version numbers for Personal DaqView DOS and Windows e Type of computer and features All equipment returned to the factory must be accompanied by an RMA Return Merchandise Authorization number Use original shipping containers or equivalent to prevent shipping damage In addition to inclusion of the above information please include e The name and phone number of an individual who can discuss the problems encountered e Your shipping instructions e Acopy of troubleshooting notes and comments on tests performed and all problem related conditions Personal Daq User s Manual 878495 Troubleshooting amp Customer Assistance 7 5 Note 7 6 Troubleshooting amp Customer Assistance 878495 Personal Daq User s Manual Appendices Appendix A
268. uration Window Toolbar The Channel Configuration Window consists of two buttons items 16 and 17 as identified by the previous figure and the following table Button Function Enable Readings Activates the Channel Configuration Window s reading column Does not affect the Column recording of data to disk Disable Readings Stops the Channel Configuration Window s reading column Does not affect the Column recording of data to disk Channel Configuration Window Pull down Menu The channel configuration window contains one pull down menu labeled Control This menu provides a means of enabling and disabling the readings column as do toolbar items 16 and 17 4 6 Personal DaqView 989394 Personal Daq User s Manual Common Spreadsheet Columns The Channel Configuration Window regardless of which tab is active consists of a spreadsheet designed for the acquisition of a specific type of data 1 e analog frequency digital Depending on the column you can make changes to the information contained in a cell by placing the mouse cursor in the cell and then using the applicable mouse button methods as follows e Single click with the left mouse button to open an associated pull down list for the applicable cell from which a selection can be made This pull down list appears just below the toolbar e Double click with the left mouse button to cycle through listed selections or write enable a cell as applicable If
269. ve Personal DaqViewXL add in and the Personal DaqView application Launches the Personal DaqViewXL section of the Personal DaqView help file 918596 Personal DaqViewXL User s Guide Channel Configuration Window You can bring up the Channel Configuration Window by using the Configure Channel Settings button 9 on the Main Control Window toolbar or by selecting Configure Channels from the Personal DaqViewXL pull down menu The Channel Configuration Window contains a Control pull down menu and a 2 button toolbar The window displays any one of three tabbed spreadsheets for selecting the type of channel to be configured The tabs are labeled Analog Input Frequency Pulse Input and Digital Input Output W Channel Configuration Of x Control Sec singie ended differential Ditferential Analog Input Frequency Pulse Input Digital Input Output Physical single ended Measurement PD Ai PO1_A0 2 477280 10 0 to 10 0 110 ms FD1_A02 T 70 337 Type 5 i E 110 ms T 70 PO AQ3L On 2 290454 4 00 to 4 00 iy Single ended 110 ms 1 0 0 0 PO1_AQ3H On 2 845321 4 00 to 4 00 y Single ended 110 ms 1 0 0 0 PDI A04 PDT A04 On 4 142167 5 00 to 5 00 Y Differential 110 ms 1 0 0 0 El Channel Configuration Window Selected for Analog Input Spreadsheet Toolbar The Channel Configuration Window consists of two buttons items 16 and 17 as identified by the previous figure and the following table Button Function 16 Ena
270. vent handle amp DteAdcDone amp At this point the transfer 1s complete all data from the acquisition is available for further processing Print Results of Transfer For ig 0 To 9 Print Scan Format Str ig 1 00 gt For k amp k amp To k amp 7 Print FormatS Str buf k amp 00000 Ms Next k amp Print Next i amp A 6 API Custom Program Modules Appendix A 878495 Personal Daq User s Manual Indefinite Acquisition Direct To Disk Using Circular Buffers This program demonstrates the use of circular buffers in cycle mode to collect analog input data directly to disk In cycle mode this data transfer can continue indefinitely When the transfer reaches the end of the physical data array it will reset its array pointer back to the beginning of the array and continue writing data to it Thus the allocated buffer can be used repeatedly like a FIFO buffer The API has built in direct to disk functionality Therefore very little needs to be done by the application to configure direct to disk operations First the acquisition is configured by setting up the channel scan group configuration the acquisition frequency the acquisition trigger and the acquisition mode Once configured the transfer to disk is set up and the acquisition is armed by calling the dagAdcArm function At this point the Personal Daq device trigger is armed and A D acquisition to disk will begin immediately upon
271. ver commands for Windows in 32 bit mode parameter definitions such as A D channels event handling hardware A D gain general I O digital I O port connection page B 29 and API error codes page B 33 Type Sensitive API Function Wrappers for Visual Basic Each API function has a wrapper serving as an interface between the Visual Basic program and the actual API function calls API function prototypes made available by PDAQX DLL are declared in the header file PDAQX BAS as follows Declare Function BdagAdcTransferSetBuffer amp Lib pdaqx dl1l Alias _ dagAdcTransferSetBuffer ByVal handle amp buf As Any ByVal ScanCount amp ByVal transferMask amp Ideally any application written in Visual Basic should call the function above by using the function wrapper VbdaqAdcTransferSetBuffer rather than calling the API function directly via BdagAdcTransferSetBuffer The standard wrapper for this function 1s Function VBdagAdcTransferSetBuffer amp ByVal handle amp ByVal transferMask amp Dim 1b1 amp 1b1 amp LBound buf daqErrno amp BdaqAdcTransferSetBuffer amp handle amp transferMask amp If daqErrno amp lt gt 0 And dagErrnum amp lt gt 0 Then Error daqErrnum amp buf ByVal ScanCount buf 1b1 amp ScanCount VBdagAdcTransferSetBuffer amp daqErrno amp End Function For Visual Basic versions preceding 5 0 proper error handling is made possible with the use of wrappers
272. which is shown below The other function wrapper is named VBdagAdcTransferSetBuffer The only difference between the two wrappers is manifested in the buf parameter There are essentially two different buffer types that can be used one containing integer elements and the other containing single precision floating point elements The VBdaqAdcTransferSetBufferSingle function should be called to use a single precision floating point buffer in VisualBASIC ret amp VBdagAdcTransferSetBufferSingle amp handle amp buf ScanCount amp DatmReturn Note This section Multiple Channel Types demonstrated the configuration of acquisitions using multiple channel types in the same scan sequence After all of the prior code has been executed the transfer can be started and the acquisition can be armed in the same manner as shown in the other models Personal Dag User s Manual Appendix A 878495 API Custom Program Modules A 13 Summary Guide of Selected API Functions Simple One Step Routines For single gain consecutive channel foreground transfers use the following functions peration Single Scan Multiple Scans Single Channel daqAdcRd daqAdcRdN Consecutive Multiple Channels dagqAdcRdScan daqAdcRdScanN For non consecutive channels high speed digital channels multiple gain settings or multiple polarity settings use the SetScan functions dagAdcSetScan Set scan sequence using arrays of channel and gain values
273. ximum Frequency Fmax and Measurement Resolution Mreso Both of these values have units of Hertz The Acquisition Period AcqPeriod is calculated from these values AcqPeriod is the minimum length of time needed to get a reading at the desired resolution AcqPeriod in seconds Fmax 0 0000004 Mreso However if the requested scan period for the entire scan of which the frequency channels are a part is longer than the calculated AcqPeriod then the scan period becomes the acquisition period To put bounding limits on values so measurements can be done in a timely fashion the AcqPeriod must be lt 10 seconds This means Fmax Mreso lt 25 000 000 Frequency measurement on the Personal Daq is only done when collecting scans Values are updated on every scan even if the AcqPeriod has not been reached During each scan a current pulse count and timer count is read from the Personal Daq Personal Dag User s Manual 989394 Personal DaqgView 4 13 The frequency is calculated as follows 1 An estimated frequency Fest is calculated as follows e If there were no pulses read Fest Flast the last frequency reported or Fest 1 current time whichever is smaller e If there were pulses counted then Fest counted pulses current time 2 The actual reported frequency Frep is calculated as follows e If current time lt AcqPeriod then Frep Flast AcqPeriod current time Fest current time AcqPe
274. y be made to other chapters or other documentation Tips provide advice that may save time during a procedure or help to clarify an issue Tips may include additional reference Specifications and Calibration Specifications are subject to change without notice Significant changes will be addressed in an addendum or revision to the manual As applicable IOtech calibrates its hardware to published specifications Periodic hardware calibration is not covered under the warranty and must be performed by qualified personnel as specified in this manual Improper calibration procedures may void the warranty Quality Notice Otech has been an ISO 9001 registered firm since 1996 Prior to shipment we thoroughly test our products and review our documentation to assure the highest quality in all aspects In a spirit of continuous improvement IOtech welcomes your suggestions iii Your order was carefully inspected prior to shipment When you receive your system carefully unpack all items from the shipping carton and check for physical signs of damage that may have occurred during shipment Promptly report any damage to the shipping agent and your sales representative Retain all shipping materials in case the unit needs returned to the factory Using this equipment in ways other than described in this manual can cause personal injury or equipment damage Before setting up and using your equipment you should read all documentation that covers yo
275. y use of an authorized registration number Personal DaqView XL and Personal DaqView Plus XL function very much like their respective base Personal DaqView programs with exception that the XL version programs are add ins to Microsoft Excel and run from within the Excel environment The XL version software allows you to make use of Excel s associated macros Users of the XL version software for Personal DaqgView should refer to the document Personal DaqViewXL User s Guide part number 491 0905 If you do not have XL version Personal DaqView software but are interested in obtaining it please contact your service representative Main Control Window When you first open Personal DaqView the Main Control and Channel Configuration Windows appear Note that this section pertains to the Main Control Window only discussion of the Channel Configuration Window begins on page 4 6 The Main Control Window contains several pull down menus a toolbar composed of icon buttons and information boxes for status progress number of scans and file identification Functions that can be obtained through the toolbar can also be obtained through the pull down menus Toolbar Buttons ey Personal Dag View Untitled cfg File View Acquire Device Toole Indicators Help Main Control Window Button Function 1 Open Configuration File Opens a selected configuration file 2 Save Configuration File Saves the current configuration file
276. ycleOn amp For efficiency block update mode is specified with DatmUpdateSingle amp The buffer size is set to 10 000 scans The buffer size indicates only the size of the circular buffer not the total number of scans to be taken ret amp VBdagAdcTransferSetBufferSingle amp handle amp buf bufsize amp DatmUpdateSingle amp DatmCycleOn amp Note Two types of VB function wrappers exist for the API functions that reference data buffers One type references an integer buffer and the other references a single precision floating point buffer The wrappers that reference single precision floating point buffers have the word Single appended to the function name For example VBdaqAdcTransferSetBufferSingle would be used to set a single precision floating point buffer whereas VBdaqAdcTransferSetBuffer be used to set an integer buffer Now the destination disk file is configured and opened For this example the disk file is a new file to be created by the driver After the following line has been executed the specified file will be opened and ready to accept data ret amp VBdagAdcSetDiskFile amp handle amp c pdagqdata bin DaomCreateFile amp 0 With all acquisition parameters being configured and the acquisition transfer to disk configured the acquisition can now be armed Once armed the acquisition will begin immediately upon detection of the trigger event As in the case of the immediate trigger the acquis
Download Pdf Manuals
Related Search
Related Contents
Lancom Systems Basic Option S SK613 User Manual Samsung RVMH100GAM0 User Manual MANUAL DE INSTALACION PARA PRODUCTOS GARDEN GRASS allgemeine informationen Scarica l`allegato レベルゲージ Tri-Rate Serial Digital Interface Physical Layer IP Core User's Guide WM-101362(Waves)IM coverEN_FR_SE_DE Copyright © All rights reserved.
Failed to retrieve file