Home

Personal Daq [50 Series] User's Manual

image

Contents

1. 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 Maximum 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
2. MS Query Add in For Excel 5 Compatit 5 Query Add in For Excel 5 Compatibility Work with Microsoft Query bo gather external data Cancel Advanced 4 Select Personal DaqViewXL from the Add Ins Available list Make sure there is a check next to Personal DaqViewXL and then click OK Add Ins Add Ins available k E OK MS Query Add in For Excel 5 Compatib a Lok ODBC Add In Fj Personal DagviewsL o cel M Report Manager O Browsen M Small Business Financial Manager shai Bonea M Solver Add In Template Utilities s Template Wizard with Data Tracking Update add in Links I Web Form Wizard z a ersonal DagviewsL Make a connection with Personal Dagview and acquire data directly into your worksheet Add Ins Dialog Box with Personal DaqViewXL Selected 5 4 40 Personal DaqView 989592 Excel loads the add in creating a Personal DaqViewXL item in the Tools pull down menu and a toolbar Personal Daq User s Manual Tools Data Accounting Window Help a Personal Li aoviewsL Personal DagviewxXL gt New Configuration Y Spelling F7 Open Configuration AutoCorrect Save Configuration Save Configuration 4s Share Workbook Track Changes gt Configure Devices Merge Workbooks Configure Channels 1 Configure Devices Protection gt Configure Acquisition 2 Conti gure Channels Goal Seek Go 3 Configure Acquisition Sc
3. Bar Graph Meters Analog Meters Digital Meters 0 Use Data Destination 1 Set Data Destination Cell 2 Use Data Header Personal Daq User s Manual 989592 Personal DaqgView 4 45 Configuring an Acquisition To set up your configuration once Personal DaqViewXL has been installed complete the following steps 1 Enter Excel Microzoft Excel Book 5 x hia File Edit wiew Insert Format Tools Data Accounting Window Help x PFA TTErYAEL L TAGMA E Sa Di ed ad Sd J Al O A Channel Configuration Of x Control si ble zo E E PDI ADI 2 A 6 EETAS Analog Input Frequency Pulse Input Digital Input Output E fe 3 Zt ill 4 100 Pere eee Pere eee Type K Differential Type K Differential Type K i Differential PO ADA F 10 0 to 10 0 Differential POT _A05 10 0 to 10 0 Differential MA Mh Sheet fal gt Ready a a es um T z 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 DaqView s configuration screens Note that the Personal DagView 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 4 42 Real Time Ch
4. 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 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 48 sec Very Fast 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
5. 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 Configuration 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 te
6. 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 box See page 4 31 for detailed information 7 Chart Setup Wizard Opens Chart Setup Wizard for manual or a
7. gt Programs 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 About This Manual Chapter 1 Personal Dag Unit Startup provides information to get your Personal Daq 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 The chapter includes discu
8. 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 989592 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 AcqPeriod 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
9. Preferences are exiting and saving files discussed in more detail on the following page Measurements tab Provides a means of setting default measurement units for voltage temperature and frequency ig Personal DaqView Preferences ig Personal DaqView Preferences General Measurement Units General Measurement Units On Open New Personal Dagriew Configuration r Default Measurement Units Use Untitled as default configuration name Measurement Type C Use Pdag as default configuration name Voltage lv WM Save configuration on exit Temperature E I Prompt to sawe configuration on exit Frequency Hz IY 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 desired default units for the Channel Configuration Window s spreadsheet Note that scale and offset automatically reset to a pre designated defa
10. Automatic Display Setup using the Chart Setup Wizard 4 38 Bypassing Automatic Chart Setup 4 39 Using Personal DaqView with Microsoft Excel 4 40 vil 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 Daq User s Manual Unit Startup 1 Overview 1 1 Configure System 1 8 Inspect Your System 1 1 Channel Configuration 1 9 Acquisition Configuration 1 9 Pinna pega TT DE Data Destination Configuration 1 10 nstall Hardware Mount Personal Dag Modules to DIN Rail C OnECI PAIR ai Mia option 1 2 Quick Start for Personal DaqView 1 11 Connect PDQ Mo
11. 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 DaqwaitForEvent 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
12. 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 DaamInfinitePost 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 is 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
13. 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 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
14. 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 which 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 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 Channel 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
15. handle DaqHandleT handler daqErrorHandlerFPT Parameters Handle to the device to which to attach the specified error handler Pointer to a user defined error handler function 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 G daqSetOption DaqHandleT handle DWORD chan DWORD flags DaqOptionType optionType Visual BASIC VBdaqSetOption amp ByVal handle amp ByVal chan amp ByVal flags amp ByVal optionType amp ByVal daqSetOption Handle DaqHandleT chan DWORD flags DWORD optionType daqOptionType sl optionValue FLOAT Parameters handle The handle to the device for which to set the option chan The channel number on the device for which the option is
16. 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 Personal DaqView sesso Personal Daq 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 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
17. 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 Dag 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 Personal Dagq 54 Inserting a label Shaded cells of label axtend from slot for easy removal JHEHHBBHHE Personal Dag 355 Ms B Digital 1 0 and Frequency Channels 3 Scud Abisi HEEN ai ETT ime a J Personal Dag 56 Lo i Digital VO and Frequency Channels 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
18. 250 mV Pgainx32 19 125 to 125 mV Pgainx64 20 62 5 to 62 5 mV Pgainx128 21 31 to 31 mV PgainXl PgainDiv5 0 8 20 to 20 V PgainX2 PgainDiv5 1 8 10to 10V PgainX4 PgainDiv5 16 8 510 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 DetsRisingEdge 0 DatsSoftware DetsFallingEdge 1 DatsSoftwareAnalog DatsDigitalChannel DatsFrequency DatsPulseCount DatsPulseTotalize DatsAnalogSELow DatsAnalogSEHigh 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 DafSingleEndedLow 0000h DafScanDigital A olh DafDifferential DafSingleEndedHigh 1000h Digital Frequency Channel Types DafMeasDuration610 000000h DafDioDirect 00000h DafTcTypeJ DafMeasDuration370 100000h DafCtrPulse 20000h DafTcTypeK DafMeasDuration310 200000h DafCtrTotalize 40000h DafTcTypeT DafMeasDuration130 300000h DafCtrFre
19. 989592 Personal DaqView 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 Exit Ctrl Q Exits the 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 Preferences Opens a dialog box containing two tabs with the following uses General tab Provides a means to select various preference options regarding opening
20. Chapter 4 E Configure Data Destination Data Destination Sequential Destinations Auto Ream Folder W Auto Ream D AFPROGRAMAPFLICATIONSSDATAN Starting Indes 5 pa File Ending Index ad PDAG BIN 3 a6 tad Starting File PO AG 5 BIN Browse Conversion Formats Ending File POAGQ_46 B1N Cancel Data Destination Window Collect Data 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 g Personal Dag iew Untitled cig File View Acquire Device Tools Indicators Help R A i 1 Status Idle File PDAG BIN 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 1s 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 devote
21. Converter Preferences x Data File Ext Header File Subditectow E Di den R32 DAT DlAdem g 3 7 SO ASCII Test Spreadsheet TT ASCII Configure Data Destination Ej DADISE DAT HED DADIGE E DAS yLab DOF DASYLab E MATLAB MAT OSC Matlab OY Post iew IOT IO Postyiew oF Snap Master Shih DAT SM Delete the source data file when done converting No Overnanite existing tiles when converting data Ask Timestamps Add timestamps to ASCII Text files Hote If the tigger date t not known timestamps will be shown as time relative to the tigger 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 files in a variety of formats including but not limited to DIAdem R32 ASCII TXT DADiSP DAT DASYLab DDF and PostView Binary IOT formats The File Converter also allows you to add timestamps to the ASCII Tex
22. Daq 54 Volts Inputs TC Inputs Digital I O Freq Pulse Inputs NB cee j i id i a o E NA 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 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 16 4 Personal Dag 56 with PDQ1 20 DE or 40 SE 32 4 Personal Daq 56 with PDQ2 30 DE or 60 SE 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 PDQ2 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
23. DerrFIFOFull FIFO Full detected possible data corruption DerrBadDma Bad or illegal DMA channel or mode specified for device DerrBadInterrupt Bad or illegal INTERRUPT level specified for device DerrDmaBusy DMA is currently being used DerrInvChan Invalid analog input channel DerrInvCount Invalid count parameter DerrInvTrigSource Invalid trigger source parameter DerrInvLevel Invalid trigger level parameter DerrInvGain Invalid channel gain parameter DerrInvDacVal Invalid DAC output parameter DerrInvExpCard Invalid expansion card parameter DerrInvPort Invalid port parameter DerrInvChip Invalid chip parameter DerrInvDigVal Invalid digital output parameter DerrinvBitNum 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 DerrInviInterval 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 emperature Conversion Errors DerrTCE TYPE TC type out of range DerrTCE_TRANGE Temperature out of CJC range DerrTCE_VRANGE Voltage
24. 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 Daq 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 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
25. 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 Retums DerrNoError Noer C SCS C C COOCOCSC SNCCOC daqAdcTransferGetStat Used With All devices O 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 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 bufPosition parameter indicates the current position in the transfer buffer daqAdcArm Delphi dagAdcArm handle DaqHandleT O OOOO S Returns DerrNoError No e
26. 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 the max scale and min scale values items 9 and 14 Aside from using the units div triangular controls to change the va
27. Initialization and Error Handling This section demonstrates how to initialize the Personal Daq and use various methods of error handling Sa pen B Most of the example programs use similar coding as detailed here Functions used include eat eT d tE Handl etup error handlin e VBdaqOpen amp daqName aoo ETT acca ina e VBdaqgSetErrorHandler amp errHandler amp e VBdaqgClose handle amp User Gade daqClose Close the session A 2 API Custom Program Modules Appendix A 878495 Personal Daq 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 PersonalDag 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 daqClo
28. 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 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 signal components Crosstalk An undesired transfer of signals between systems or system components Crosstalk causes signal interference more commonly referred to as noise Digital A digital signal is one of discrete value in contrast to a varying signal Digital data is Digital to Analog Converter DAC Personal Dag User s Manual 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 Data Acquisition Terms and Meanings Differential mode Differential mode voltage refers to a voltage difference between two signals voltage 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 vo
29. 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 left 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 lon
30. 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 Miil 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 Configuration Window Toolbar The Channel Configuration Window consists of two buttons items 16 and 17 as identified by the previous figure and the
31. 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 Ensure the Personal Daq main unit is not connected to a USB port Ensure the Personal Dag main unit is not connected to a power adapter 2 3 4 Plug the expansion module into the DB25 connector on the Personal Dag main unit 5 Lock the two modules together using two locking clips see figure page 3 2 6 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 Daq 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 much more complex system is one that contains 100 Personal Dagq 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
32. There are two types of PDQ expansion modules either type can be snapped on to a Personal Daq unit however each Personal Daq can 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 info
33. 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 a bold mono spaced Courier font to distinguish characters and avoid ambiguity dagqAdcAcqGet Stat DLL Function dagqAdcAcqgGetStat DaqHandleT handle PDWORD active PDWORD preTrigCount PDWORD e postTrigCount PDWORD totalAvail PDWORD bufCycles DWORD bufPosition C daqAdcAcqGetStat DaqHandleT handle PDWORD active PDWORD preTrigCount PDWORD ee postTrigCount PDWORD totalAvail PDWORD bufCycles DWORD bufPosition Visual BASIC VBdagqAdcAcgGetStat amp ByVal handle amp ByRef active amp ByRef preTrigCount amp ByRef ei postTrigCount amp ByRef totalAvail amp ByRef bufCycles amp ByRef bufPosition amp daqAdcAcgGetStat 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
34. applicable these products have a Declaration of Conformity stating which specifications and operating conditions apply You can view the Declarations of Conformity at www mcecdaq com legal aspx CE Information page 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 may be made to other chapters or other documentation Tips provide advice that may save time during a pr
35. 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 samples 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 f
36. 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 Dag 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 I1MHz Readings can be in pulse count totalize frequency or duty cycle Input voltage range is 15 to 15VDC 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 freque
37. 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 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 DagAdcSetTrigEnhanced 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
38. computer s user manual to disable energy save power suspension modes Overview Personal DagqView includes a software component add in that installs into Microsoft Excel and provides complete setup and data acquisition within Excel under Windows2000 and XP Acquired data is immediately placed in an active spreadsheet analyzed and graphically displayed After Personal DaqView 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 print 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 DaqView then create and embed a new spreadsheet object Personal DaqView 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 bei
39. creates a display configuration of one group one chart and Ee Chart 2 one channel the first active channel found You can change your chart E PO1_A05 display configuration through use of a dialog box or Chart Setup FaIPD1 ADE Wizard See pages 4 31 and 4 36 respectively E Channel refers to a signal channel Channels will be displayed in units i 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 Dag iew Chart Display Pile Chat Acquire View Timestamp Ta _ ts 5 OT Ee oo oo iE ep e pen een Ne ee D a il t mE AE eevee Liinid L14 01 53 Liiris Li 1 02 03 ee 1 sec div 1E Personal DaqView s Chart Display Window Note A discussion of the numbered buttons and regions begins on page 4 29 Personal Daq User s Manual 989592 Personal DaqView 4 27 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 36 Setup Ctrl D Accesses the Display Configuration Setup dialog box for normal editing of the current chart display confi
40. 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 989592 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 Configure Acquisition Configure Acquisition Pre T rigger Trigger Post Trigger Pre rigger Trigger Fost rigger SOUICE Manual ka Channel zj Duration 0 Scans Condition Rising Threshold f o o Hysteresis 0 Pre Trigger Tab Selected Configure Acquisition Acquisition Parameters Tri i Post Trigger Max Rate 80 0000H2 Min Fate 0 0007 H2 Pre Trigger Trigger a Scan Rate 27 FRAG Hz r Stoo On Continuous Calibration Period fet Manual IY Overange Protection Frequency Duration 100 ET Scans caros 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 trig
41. 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 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 and will be visible when the applicable Group is selected Note that only one group of charts can be viewed at a tme As mentioned earlier you can enable additional c
42. 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 Range 0 10V 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 Dag calibration Ensure the equipment meets the specifications listed in the caut
43. false readings This is especially true when acquiring other high amplitude signals in conjunction with 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 DaqView 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 DaqVi
44. 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 DatmCycleOn 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 VBdaqgAdcTransferSetBufferSingle 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 acquisitio
45. is 80 channels With the use of differential mode instead of single ended the maximum channel capacity is 50 channels 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 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 Daqg PDQ combined unit Does not apply to Personal Daq 54 e upto 100 Personal Dagq 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 DaqView and
46. 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 DB25 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 i A pr Personal Daq 55 measure voltage From multimeter to pin 13 From multimeter x4 lt l to pin 24 Harness made from Personal Daq Pra male DB25 Expansion Port e Measuring Voltage at Personal Daq s Expansion Port Use pins 13 and 24 to 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
47. main unit connect the module to the main unit and secure with retaining clips If you do not use your Personal Daq system for temperature measurements proceed directly to step 7 If you use your Personal Dag system for any temperature measurements complete steps a through d then proceed with step 7 a Place thermocouple in an ice 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 Conn
48. 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 QTMIOP 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 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 c
49. of channels in each scan Personal Dag User s Manual Appendix B 887095 API Commands B 19 daqCvtSetAdcRange Delphi daqC vt Set AdcRange Admin single Admax single Parameters Admin A D minimum voltage range Admax A D maximum voltage range See Also ee Program References Description dagqCvtSetAdcRange 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 Delphi PaqpefaultErrorHandler handle DaqHandleT errCode daqerror 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 Returns None UsedWith sf All devices O O Description daqDefaultErrorHandler displays an error message and then exits the application program When the Personadaq library is loaded it invokes the default error handler whenever it encounters an error The error handler may be changed with daqSetErrorHandler daqFormatError Delphi dagrormatError errorNum daqerror msg PCHAR O O O O Parameters daqError Personal Daq API error code msg Pointer to a string to return the error text See Also daqSetDefaultErrorHandler daqSetErrorHandler daqProcessError daqGetLastError daqDefaultErrorHandler Program References None Used With All devices Descripti
50. of charts in 2 Ea Chart 1 the selected Group E Chart 2 Group Hame Group20 E Chart 1 E 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 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 Personal Daq User s Manual 989592 Personal DaqgView 4 31 Display Configuration Setup Close EHA Display Gl Group 1 E Chart 1 Available Channels Chan Categories All Categories Add LEAP ao Es Chart 2 LEAP A02 g Group 2 HE Chart 1 Selected Channel
51. 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 fUsedWith i Alidevices OOO SSS Description 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 1 daq Device Property Definitions Identifies the format DWORD STRING or FLOAT for property parameters daqGetDeviceProperties 2 Gener
52. of specified device Set the default error handler daqSetErrorHandler Specify a user defined routine to call when an error occurs in any command daqProcessError Process a driver defined error condition daqGetLastError Return the last logged error condition daqDefaultErrorHandler Call the default error handler daqFormatError daqSet Timeout Return text string for specified error Set the time out value for the Personal Daq operation B 27 daqwaitForEvent Wait for specified Personal Dag device event B 28 daqwaitForEvents daqAdcSetMux mm daqSet Option Set options for a device s channel signal path configuration B 27 Wait for multiple specified Personal Daq device events Configure a scan specifying start and end channels daqGetDriverVersion Return the software version B 22 daqAdcSetScan Configure up to 256 channels making up an A D or HS digital input scan daqAdcGetScan Read the current scan configuration daqAdcSet TrigEnhanced daqAdcSetRate Configure an A D trigger with multiple trigger event conditions es can mate and source Configure the ADC scan rate with the mode parameter totyvpes rigge daqAdcSetFreq Configure the pacer clock frequency in Hz daqAdcGetFreq daqAdcSetDiskFil daqAdcArm Read the current pacer clock frequency Set acquisition configuration informatio Speci
53. out of TC range DerrTCE_PARAM Unspecified parameter value error DerrTCE NOSETUP dacTCConvert called before dacTCSetup DerrNotCapable 2Bh 43 Device is incapable of function DerrOverrun 2Ch 44 A buffer overrun occurred Zero and Cal Conversion Errors i Unspecified parameter value error DerrZCNoSetup 2Eh 46 dac convert Called before dac Setup DerrInvCalFile 2Fh 47 Cannot open the specified cal file Environmental Errors DerrMemLock 30h 48 Cannot lock allocated memory from operating system DerrMemHandle Cannot get a memory handle from operating system Pre trigger acquisition Errors DerrNoPreTActive 32h 50 No pre trigger configured Personal Dag User s Manual Appendix B 887095 API Commands B 33 API Error Codes DerrTooManyHandles 60h 96 No more handles available to open DerriInvLockMask 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 DerrAcgArmed 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 Invalid file open mode DerrFileO
54. p A A IRIN DS a mlo lalanmin Aa al AIN 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 resistance Over Voltage Protection 45 V relative to analog common 2 10 General Information amp Specifications 878595 Personal Daq User s Manual Tempe
55. 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 Personal 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 powe
56. 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 DardfNative where the raw data format follows the native data format of the A D for the particular device The Personal Daq 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 deg
57. 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 issues 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
58. 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 Dag 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 The use of certain notebook computers may require the use of a power adapter with 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 used 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
59. 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 reaching 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
60. 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 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 PGainX1 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 Daq User s Manual Counted Acquisitions Using Linear Buffers This section sets up an acquisition that
61. 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 Returns DerrNoError No error See Also daqAdcTransferSetBuffer daqAdcTransferStart daqAdcTransferStop Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DAQEX FRM VB DAQEX PAS Delphi Used With All devices Description daqAdcTransferGetStat allows you to retrieve the current state of an acquisition transfer The active parameter will indicate the current state of the transfer 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 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 Ma
62. 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 DagView 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 4 36 Personal DaqView see Personal Dag User s Manual You can choose to manually create a configuration or have one created automatically The automatic setup method offers three choices Simple Moderate and Advanced Note You can use Chart
63. 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 A device that collects signals from several input channels and outputs them on a single channel Sample reading 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 Single 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 5 2 Signal Management 878695 Personal Daq User s Manual Channel Control and Expansion In a Per
64. 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 Dag User s Manual Appendix B 887095 API Commands B 5 dagAdcRdN DLL Function daqAdcRdN DaqHandleT handle DWORD chan PVOID buf DWORD scanCount daqAdcTriggerSource triggerSource BOOL rising FLOAT level FLOAT freq dagqAdcGain gain DWORD flags C daqAdcRdN DaqHandleT handle DWORD chan PVOID buf DWORD scanCount DaqAdcTriggerSource triggerSource 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 sc
65. 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 DADiISP 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 Stops all indicators Has no affect on the recording of data to disk Analog Meters Brings up the analog dial type meters Bar Graph Meters Brings up the bar graph type meters Chart Display Brings up the scrolling chart Digital Meters Personal Dag User s Manual Brings up the digital style meters 989592 Personal DaqView 4 5 Help Contents and Index Accesses the program s Help file Contents include Introduction Setting Up
66. value when a Personal Dag error is encountered The following line tells Visual Basic to set ERR to 100 when a Personal Daq error is encountered Other languages work similarly refer to specific language documentation as needed handle 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 i i i At this point the data is in configuration These commands provide a single function call to configure User Code the buffer provided by the user in binary format Foreground Acquisition with One Step Commands EE T This section shows the use of several one step analog input routines These 1 channel
67. 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 sel 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 expansion 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 especial
68. you to exit and then re launch Personal DaqView after the USB cable has been connected If you 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 Daq 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 Semicondu
69. 03h Expansion Port 2 PDQ Option DiodpPdaqPowerUpPort1 10h Power up Setting for Local Port 1 DiodpPdaqPowerUpPort2 11h Power up Setting for Local Port 2 DiodpPdaqPowerUpExpPort1 12h Power up Setting for Exp Port 1 DiodpPdaqPowerUpExpPort2 Power up Setting for Exp Port 2 Personal Daq Type Value Description DiodtPdaqDigIO Och Forall units except Personal Daq 54 L VU Uperallon ode D ALRICTIONS WhLChHVUEeEVLCe I Ta rl Re ee aN Ace hie AAF L 4 Personal Dag Device yaiue e IPTION Device Expansion Port o 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 DwmNoWait DteAdcDone DwmWaitForAny DteDacData DwmWaitForAll DteDacDone DteIOData DteIODone Table 4 Hardware Version Definitions daqHardwareVersion Definition Value PersonalDaq56 PersonalDag55 Note 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
70. 1 AnaFlags PGainxl1 AnaFlags PGainxl1 AnaFlags PGainxl AnaFlags 1 2 3 4 PGainxl1 5 AnaFlags 6 7 8 9 PGainxl1 AnaFlags 0 1 2 3 4 5 6 7 8 9 PGainx1 10 AnaFlags Digital Ports Does not apply to Personal Daq 54 PGainX1 1 startChan DigFlags PGainxl1 2 DigFlags Frequency Input Pulse Count Channels Does not apply to Personal Daq 54 PGainx1l startChan FreqFlags PGainxl1 FreqFlags PGainxl1 CtrFlags PGainxl1 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 Persona
71. 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 989592 Personal DaqView 4 23 Bar Graph Meters Selecting the Bar Graph Meters from toolbar button 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 sel
72. B 887095 API Commands B 17 dagAdcTransferStart Delphi daqAdoTransferstart handle Daqiandle __ SSSCSSCSSSSSSSS Handle Handle to the device to initiate an ADC transfer UsedWith All devices S O 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 the current settings for the transfer buffer The transfer buffer can be configured via the dagAdcSetTransferBuffer function dagqAdcTransferStop Delphi daq dcTransferstop handle Dagqandler O O oC handle Handle to the device for which the Adc data transfer is to be stopped DerrNoError No error See Also daqAdcTransferSetBuffer daqAdcTransferStart daqAdcTransferGetStat Program References Used With All devices Description dagAdcTransferStop 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 V
73. CloseList may be called with the returned handle Personal Dag User s Manual Appendix B 887095 API Commands B 25 daqProcessError Delphi daqProcessError handle DaqHandleT errCode dagError Parameters handle Handle to the device for which the specified error is to be processed errCode Specifies the device error code to process PReturns Refer to API Error Codes on page pageB 33 SSSSCSC SCSCSCSCSCS TUsedWith si Alidevces O OSOS 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 Delphi daqSetDefaultErrorHandler handler daqirrorHandlerFPT SOS Returns perrnogrror NoemorOOCOC CNOCS 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
74. DaqView Personal DaqView Log View and TempView The software uses equation 9 to calculate signal values in engineering units from that point on 4 8 Personal DaqView 989592 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 Byorts1s 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_A0O1 to acquire voltage readings which represented the voltage at Point B B Volts Selected the Digital Meters button 14 on the Main Control W
75. 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 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 t
76. Fh 127 Invalid raw data format selection DerrNot Implemented 80h 128 Feature function not implemented yet DerrInvDioDeviceType 81h 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 DerrdaqMissing 85h 133 Personal Daq device is not detected DerrdaqScanConfig 86h 134 Scan Configuration is invalid B 34 API Commands Appendix B 887095 Personal Daq 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 Youcan 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 appropriate to your application Th
77. 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 29 Accessing the Display Configuration Setup Box 4 31 Editing a Chart Display Configuration 4 31 Manually Configuring a Chart Display 4 33 Chart Setup Wizard 4 36 Introduction 4 36 Automatic Display Setup using the Chart Setup Wizard 4 38 Bypassing Automatic Chart Setup 4 38 Using Personal DaqView with Microsoft Excel 4 39 Reference Note This chapter serves as a reference for Personal DaqView 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 PersonalDaqUser sManual i asst ssstst lt lt 989592 Personal DagView 4 1 Overview Personal DaqView 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 includes the following features e Setup 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 pulse
78. 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 will 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 dagqAdcTransferGetStat dagqAdcTransferGetStat DaqHandleT handle PDWORD active PDWORD retCount VBdagAdcTransferGetStat amp ByVal handle amp active amp retCount amp Delphi daqAdcTransferGetStat handle DaqHandleT var active DWORD var retCount DWORD Parameters handle Handle
79. 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 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 Personal Daq User s Manual 887095 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 vol
80. 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 Control select singie ended differential Differential Analog Input Frequency Pulse Input Digital Input Output Physical single ended Measurement EOL AT Pot AM 2 477280 10 0 to 10 0 110 ms PD1_ Ag T 70 337 Type 5 z TET 110 ms D FD1_AD3L On 2 290454 4 00 to 4 00 Y Single ended 110 ms i T FD1_AD3H On 2 845921 4 00 to 4 00 Y Single ended 110 ms 1 0 0 0 PDI A04 1PD1 A04 DOn 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 Enable Readings Column Activates the Channel Configuration Window s reading column Does not affect the recording of data to the destination spreadsheet 17 Disable Readings Column Stops the Channel Configuration Window s reading column Does not affect the recording of data to the destination spreadsheet Channel Configuration Window Pull down Menu The channel configuration window contains one pull down menu l
81. 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 33 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 Chart Setup Wizard Yo Spare Jar if just pe gt Ghat SOGTUpP Wizara Automatic Chart Creation Snonnonnononoacncie Create Charts Charts with one channel Create L assigned per chart Start with POW AT Selector Channels The number of Instrument Data Channels available is 30 Manual Chart Setup Create Charts The above setup will assign 1 channels starting from channel PDO1_ Ad 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 Advanced Up to 64 groups Up to 16 charts per group Up to 4 o
82. System Noise 5 7 Channel Control and Expansion 5 3 Averaging 9 7 Si IA siti 5 4 Analog Filtering 5 8 Ignar ACGUISIION seated Input and Source Impedance 5 8 Measurement Duration Sample Rate and S Crosstalk 5 8 Resolution 5 4 Under Sampling and Aliasing 5 4 Triggering 5 5 Input Isolation 5 6 Signal Modes 5 6 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 acquisition terms as used in this manual Data Acquisition Terms and Meanings Acquisition A collection of scans acquired at a specified rate Aliasing 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 Analog 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 Dag hardware and
83. 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 General and Measurement Units dialog boxes as described below 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 lower portion of the General screen pertains to configuration file settings I Prompt to save configuration on exit I Prompt to save co
84. USER S MANUAL Personal Daq 50 Series USB Data Acquisition Modules Personal Daq 54 Personal Daq 55 Personal Daq 56 PDQ1 PDQ2 Measurement Computing Personal Daq 50 Series ic nna Na p n 491 0901 rev 7 0 Norton MA 02766 508 946 5100 Fax 508 946 9500 NACA AA A info mecdaa com www mccdag com 372182A 01 ii Warranty Information Contact Measurement Computing by phone fax or e mail in regard to warranty related issues Phone 508 946 5100 fax 508 946 9500 e mail info mecdag com Limitation of Liability Measurement Computing cannot be held liable for any damages resulting from the use or misuse of this product Copyright Trademark and Licensing Notice All Measurement Computing 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 Measurement Computing 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 archival backup copies CE Notice Warnings Many Measurement Computing products carry the CE marker indicating they comply with the safety and emissions standards of the European Community When
85. 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 Programming 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
86. 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 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 Daq
87. ViewXL 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 You can arm an acquisition from an Excel macro as shown in the following VBA code example Sub GoMacro Dim cbpMenu 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 DaqViewXL menu may be executed in a similar manner If Personal DaqView cannot connect to your hardware on start up it will automatically switch to the Simulated Instrument mode when loaded from Personal DaqgViewXL 4 48 PersonalDaqView geo Personal Dag User s Manual Personal Daq User s Manual 989592 Personal DaqView 4 49 Note 4 50 Personal DaqView gee Personal Dag User s Manual Signal Management Overview Overview 5 1
88. 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 stated 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 Trigger 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
89. abeled Control This menu provides a means of enabling and disabling the readings column as do toolbar items 16 and 17 Auto Load Function Excel s Add Ins dialog box has a check box for enabling v or disabling an automatic loading of Personal DagViewXL 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 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 DagViewXL 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 t
90. 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 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 DaqAdcSetRate Configure the acquisition to be indefinite post trigger dagqAdcSetAcq DagAdcSetTrigEnhanced dagAdcTransferSetBuffer dagqAdcSetDiskFile dagqAdcArm T Initiate data transfer to disk daqAdcTransferStart no data will transfer until trigger event occurs dagAdcSoftTrig Configure the trigger event to be software trigger
91. ags 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 dagqAdcSetTrigEnhanced DLL Function dagqAdcSetTrigEnhanced DaqHandleT handle dagqAdcTriggerSource trigSources dagAdcGain gains dagqAdcRangeT adcRanges dagEnhTrigSensT trigSensitivity PFLOAT level PFLOAT hysteresis PDWORD channels DWORD chanCount char opStr C daqAdcSetTrigEnhanced DaqHandleT handle DaqAdcTriggerSource trigSources DagAdcGain gains DaqAdcRangeT adcRanges DaqEnhTrigSensT 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 ga
92. aitForEvent 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 VBdaqwaitForEvent 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
93. al 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 Daq Unit 1 Analog Channel 01 from differential to single ended results in two channels with default Physical Channel labels and User Labels of PD_1A0O1L 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 4 10 Personal DaqView 989592 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 I
94. al Dag 3 3 Connecting Various Hardware Setups 3 3 Personal Dag User s Manual 887695 4 Personal DaqView Overview 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 agen at 4 31 Editing a Chart Display Configuration 4 32 Manually Configuring a Chart Display 4 34 Chart Setup Wizard 4 37 Introduction 4 37
95. al Daq 54 You can connect either of two PDQ expansion modules PDQ1 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 Dag units will require the use of a power adapter when used with certain laptops 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
96. al I O Definintions Digital I O Port Connection devPort daqIODevicePort I O Port Type devType daqIODeviceType I O Operation Code whichExpPort daqIOExpansionPort I O Operation Code daqlOOperat ionCode Does not apply to Personal Daq 54 Event Handling Definitions Transfer Event Definitions daqTransferEvent Transfer Event Wait Mode Definitions daqWaitMode Hardware Version Definitions daqHardwareVersion Analog Gain Definitions Identifies gain codes for Personal Daq base unit Trigger Source Definitions daqAdcTriggerSource daqEnhTrigSensT Miscellaneous Definitions Scan Flag Definitions daqAdcFlag 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 daqgAdcBufferXferMask 8 Setting Options optionType optionValue 9 API Error Codes Identifies API errors by number and description Personal Dag User s Manual Appendix B 887095 API Commands B 29 Table 1 daq Device Property Definitions daqGetDeviceProperties Property Description deviceType Main Chassis Device Type Definition DWORD basePortAddress Not Used DWORD dmaChannel Not Used DWORD protocol Host computer Interface used DWORD alias Device Alias Name STRING maxAdChannels Maximu
97. amp ScanCount amp transferMask amp If daqErrno amp lt gt 0 And dagErrnum amp lt gt 0 Then Error daqErrnum amp VBdagAdcTransferSetBuffer amp daqErrno amp End Function For Visual Basic versions preceding 5 0 proper error handling is made possible with the use of wrappers 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 VBdagAdcTransferSetBuff
98. an amp ByVal endChan amp buf ByVal gain amp ByVal flags amp dagqAdcRdScan handle DaqHandleT startChan DWORD endChan DWORD buf pointer 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 Program References Description daqAdcRdScan reads a single sample from multiple channels This function will use a software trigger to immediately trigger and acquire 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 DLL Function Visual BASIC Parameters daqAdcRdScanN DaqHandleT handle DWORD scanCount daqAdcTriggerSource triggerSource daqAdcGain gain daqAdcRdScanN DaqHandleT handle DWORD scanCount DagqAdcTriggerSource triggerSource DagAdcGain gain VBdagqAdcRdScanNSingle amp ByVal handle amp ByVal ScanCount amp ByVal gain amp freq freq daqAdcRdScanN handle DaqHandleT scanCount DWORD trigg
99. an run The maximum rate can be retrieved via the dagAdcGet Freq 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 Dag 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 flags amp daqAdcSetMux handle DaqHandleT startChan DWORD endChan DWORD const gain daqAdcGain flags DWORD Parameters Handle Handle to the device for which to configure the ADC channel scan group StartChan The 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 dagqAdcSetScan dagqAdcGetScan Program References Used With All devices Description daqAdcSetMux 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 daqAdceSetScan if only co
100. and its configuration Additional information regarding frequency measurement is included in the Help file W Channel Configuration Control gt E Select channel type z High Analog Input Frequency Pulse Input Digital Input Output Physical Resolution PD1_F1 E On 473 0 Frequency Hz Aising me 0 0 1000 0 1 0 Hz 800 us PD F2 E On 18380 Pulses Scan Pulses Flising 0 ms 0 0 1000000 0 PD F3 On 2llf42 Totalize Pulses Ai ing O ms 0 0 1000000 0 POI F4 PO1_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 type 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 t
101. annel daqIOWriteBit Send indicated bit to selected channel A 14 API Custom Program Modules Appendix A 878495 Personal Daq User s Manual API Commands B Overview This appendix includes information regarding type sensitive API function wrappers for Visual Basic Personal Daq driver 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 buf ByVal ScanCount amp ByVal transferMask amp Dim 1b1 amp 1b1 amp LBound buf dagErrno amp BdagAdcTransferSetBuffer amp handle amp buf 1b1
102. ans 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 DerrInvLevel Invalid level dagqAdcSetFreq daqAdcSetMux daqAdcSetClock daqAdcSetTrig Used With All devices Description dagAdcRdN 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 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 Dag User s Manual daqAdcRdScan DLL Function daqAdcRdScan DaqHandleT handle DWORD startChan DWORD endChan PVOID buf daqAdcGain gain DWORD flags dagAdcRdScan DaqHandleT handle DWORD startChan DWORD endChan PVOID buf DagAdcGain gain DWORD flags Visual BASIC VBdagqAdcRdScanSingle amp ByVal handle amp ByVal startCh
103. anual 878395 Unit Startup 1 11 lt 3 Personal Dag iew Untitled cfg File View Acquire Device Tools Indicators Help Main Control Window Tum channel on ott Jon zj Analog Input Frequency Pulse Input Digital Input Output Units Single ended Measurement Differential Duration Y Differential 110 me 1 0 0 0 Physical POT AG PO1_At On Range 7 366040 10 0 to 10 0 POI A02 PDI_A02 On 5 018922 10 0 to 10 0 W Differential 110 ms 1 0 0 0 PEI A03 PE1_A0 On 4 483921 10 0 to 10 0 ki Differential 110 ms 1 0 0 0 PDI A04 POIAD4 n 2 022527 10 0 to 10 0 k Differential 110 ms 1 0 0 0 Channel Configuration Window with Analog Input Spreadsheet Selected Button Function 1 Open Configuration File Opens a selected configuration file 2 Save Configuration File Saves the current configuration file to disk 3 Select Active Device Provides a means of selecting active devices from the Personal Daq system 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 clicked until after the trigger is armed for example by f
104. aqHandleT handle DaqTransferEvent dagEvent Visual BASIC VBdaqwaitForEvent amp ByVal handle amp ByVal daqEvent amp daqwaitForEvent handle DaqHandleT dagEvent daqTransferEvent Parameters handle Handle of the device for which to wait of the specified event daqEvent specifies the event to wait on DerrNoError No error See Also daqWaitForEvents daqSetTimout Program References 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 dagSetTimout 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 E DWORD eventCount BOOL eventSet DaqWaitMode waitMode Visual BASIC VBdaqwaitForEvents amp handles amp daqEvents amp ByVal eventCount amp eventSet amp ByVal daqwaitForEvents handles DaqHandlePT daqEvents daqTransferEventP i eventCount DWORD eventSet PBOOL waitMode daqwWaitMode 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
105. aqOpen daqClose S re ee PerconaDaq55 56 Description daqOpenList allows you to open a list of deviceCount installed Personal Daq devices The daqOpenList 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 affect 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 daq
106. arting 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 1s 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 4 46 PersonalDaqView geo Personal Dag User s Manual Microsoft Excel Booki Fie Edit View Insert Format Tools Data Accounting Window Help OsbiG6RY 4BBS ooa Arial Oe TAN MES mG 10 BZU H BA t 0 00 ee G fe Ais S Personal Daq View Plus Chart Display Chart Control View Timestamps B 37 7398 c 5 50 0216 Center H o aser 37 0 tiv B anita lt ef 0 0216 keda 4 000 18 64861 18 3306 Log 27 31 PEPA gt DL Personal DaqViewXL Real Time Charting Data Header The 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 U
107. at buf PWORD action dagqAdcCvtAction 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 daqAdcSetDataFormat Used With All devices 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 dagAdcTransfer 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
108. ate 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 989592 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 Cancel 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 c
109. ave 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 daqgAdcTransferBufData function This option must be used in conjunction with the DatmDriverBuf option DatmDriverBuf 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 dagAdcTransferBufData 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
110. ble 2 6 General Information amp Specifications 878595 Personal Dag User s Manual Automatic Calibration The Personal Dag 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 Cali
111. bration Celibration lt 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
112. cGetScan 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 dagAdcRd DaqHandleT handle DWORD chan PVOID sample dagAdcGain gain DWORD flags C daqAdcRd DaqHandleT handle DWORD chan PVOID sample DagAdcGain gain DWORD flags Visual BASIC VBdaqAdcRdSingle amp ByVal handle amp ByVal chan amp sample ByVal gain amp ByVal flags amp daqAdcRd handle DaqHandleT chan DWORD sample pointer const gain daqAdcGain flags DWORD Parameters handle Handle to the device for which the ADC reading is to be acquired 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 DerrFIFOFull Buffer Overrun DerrInvGain Invalid gain DerrInvChan Invalid channel DerrNoError No Error dagAdcSetMux dagAdcSetTrig daqAdcSoftTrig Program References Used With All devices 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
113. commands are easier to use than low level commands but less flexible in scan and acquire analog input data This example demonstrates the use of four Personal Daq one step ADC functions Functions used include Read multiple samples from 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 ii 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
114. 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 DaqView 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 reading 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 becaus
115. contact is closed Frequency 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 2 8 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 ii Signal 27 KQ Source Voltage 3 V 0 to 15 V 27 KQ e g Relay Solid State Switch Fes RTN 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 General Information amp Specifications 878595 Personal Daq User s Ma
116. cquisition 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 disk 17 Disable Readings Column Stops the Channel Configuration Window s reading column Does not affect the recording of data to disk 1 8 Unit Startup 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 d
117. ctivates the Channel Configuration Window s reading column Does not affect the Column recording of data to disk 17 Disable Readings Stops the Channel Configuration Window s reading column Does not affect the Column recording of data to disk If needed refer to Chapter 4 Personal DaqView for more detailed information 1 12 Unit Startup 878395 Personal Daq 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 anann 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 ca
118. ctor 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 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
119. d entirely to the Personal DagView program and its Chart Setup Wizard feature Quick Start for Personal DaqView Once your Personal Daq system has been properly connected 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 ga Personal Daq iew Untitled ctg 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_A0O1 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 Daq 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 visib
120. d 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 Display Configuration Setup OF cA Display Humber of charts in 1 the selected Group Group Mame Group lt i SCS Adding one Chart to Group I Change the number of charts per group if desired Change the group name if 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 989592 Personal Dag User s Manual Display Configuration Setup EHA Display E I Group 1 a E Chart 1 Close Chan Categories All Categories Available Channels POT 401 POT A02 POT Ang POTADA PDT A405 PO1 ADE l Selected Channels Hemose FPE1_A0 PO1_AS PO1_A0S PO1_A2 Category Voltage Type 4 096 Units W Assigning Channels to Group 1 Chart 1 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 list to add the channel to the display e Double click on a channel in t
121. 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 DerrNotCapable No high speed digital DerrInvGain Invalid gain DerrInvChan Invalid channel DerrNoError No error See Also dagAdcGetScan dagqAdcSetMux 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 setting 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 fl
122. driver software e external power input jack for use with notebook PCs and various setups discussed in Chapter 3 Note 1 Certain 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 is 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
123. dule option 1 4 Connect Personal Daq to Host PC 1 5 Connect Channel Signal Inputs 1 6 Start Personal DaqView 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 Data Acquisitio
124. e 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 Vv If using a custom application use the DcotpDaqOverrangeProtect option type setting with the daqSetOption API see Appendix B for additional information regarding dagqSetOption Personal Daq User s Manual 989592 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 KERS ri Data Destination Sequential Destinations Auta Rearmn 7 Folder W Auto Ream D PROGRAMMAPPLICATIONSSDATAS Starting Index 5 aint File Ending Index ol PDAG BIN S 40 ee Starting File POA 5 BIN Browse Conversion Formats Ending File POAG_46 B1N a File
125. e default setting of the Auto Rearm function Personal Daq User s Manual 989592 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 Personal 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 indic
126. e 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 Daq 54 Inserting a label LS y o gt Shaded cells of label extend from slot for easy removal B Digital 1 0 and Frequency Channels i a L HLH F SM L digital I O and Frequency Channels 9 9 cC ht Lath LIHIS Li heen ee Ei el E hen L A M L Mit AR LIRIMI el Aye LIRIM T 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
127. e 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 daqSet Timeout 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 daqwWaitForEvent daqWaitForEvents Program References All devices 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 D
128. e 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 36 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 36 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 displayed channels will be enabled Editing a Chart Display Configuration Close EHA Display Gl Group 1 Number
129. e 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 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 Gain Sequence Array Channel Flag Sequence gains Sequence Array Array channels flags Analog Input Channels PGainX1 startChan AnaFlags PGainXx1 AnaFlags PGainXx1 AnaFlags PGainx
130. e transfer functions a Configure acquisition buffer Multiple Channel Types Model for Personal Daq 56 Configure a scan group of channels Configure the trigger event Configure the acquisition ByVal Mode amp ByVal acqState amp ByVal regRate ByRef e VBdaqAdcTransferSetBufferSingle 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 O
131. e trigger is armed for example by first clickng button 4 Update Digital Outputs Updates 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 A
132. e 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 989592 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 gradual long change Highly variable short 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
133. e 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 buffer also stops transient signals from propagating backwards from the multiplexer to the transducer 5 8 Signal Management 878695 Personal Daq 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
134. 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 write 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
135. eated here for user convenience 1 Mount Personal Daq Module to Base BR 24 Note If your Personal 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 di
136. ect to view up to 32 meters at a given time Bar Graph Meters Control View n Tow Select Channel a T9 5 00 90 0 00 C1 Select Channel Set Scale 2 5 PE OO Show Peak Hold Indicator Reset Peak Hold Indicator 0 F 0 OO Show Trend Indicator 1 P01_ AO 2 PDO1 A Set Limits 51 1 60 Show Limits S vf 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 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 Re
137. ections 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 LS 16 I7 f DC Volts Calibrator 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
138. ed 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 transfer 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 daqW
139. ed 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 DLL Function daqgOnline DaqHandleT handle PBOOL online daqOnline DaqHandleT handle PBOOL online Visual BASIC VBdaqOnline amp ByVal handle amp online daqgOnline handle DaqHandleT var online longbool Parameters handle Handle of the device to test for online online Boolean indicating whether the device is currently online DerrNoError No error See Also Program References Description daqOn1line 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 Dag User s Manual Deiphi daqOpen devNane Phar O O O OO OOS Returns Ahandetothespecifeddevice OC O OCO O7 7 OSOS 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 Pers
140. een 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 Personal Daq User s Manual In the schematic voltage signal S is subtracted from signal S4 resulting in the output signal shown The noise spikes having _ 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 D gt m e S S2 O NS 7 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 co
141. elf 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 Main Control Window 4 2 Toolbar Buttons 4 2 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 Rearm 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
142. enarios Menuall THager jk Update Digital Gntpits H Solver mai 5 Manual Trigger Save Power up Settings neve 3 6 Chart Display Add Ins eee ee 7 Bar Graph Meters reese Bar Graph Meters Display 8 Anal Meter Goars i Analog Meters Display og Ivieters Wizard 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 ae Personal DaqViewXL Toolbar Options Personal DaqViewXL Menu Options After Personal DaqView 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 DaqViewXL d Click OK Personal Dag iewXL Options Ziz ersonal Dagview Server Start up K Start as soon as I open Excel segcormretenrntione are pibcseazertest arate etrie bival evrace een tevin Cancel 0 iStart the First time I use Personal DagviewL 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 Op
143. eq Delphi sC dkaqAdcGet Freq handle DaqHandleT var freq single Parameters handle Handle to the device for which to get the current frequency setting A variable to hold the currently defined sampling frequency in Hz Valid values 100000 0 0 0002 DerrNoError No errors dagqAdcSetFreq daqAdcSetClock Program References None Used With 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 Visual BASIC VbdagAdcGetScan amp ByVal handle amp channels amp gains amp flags amp chanCount amp daqAdcGetScan handle DaqHandleT channels PDWORD gains daqAdcGainP flags PDWORD chanCount PDWORD Parameters handle 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 NoemorSOSCSSCSC S fUsedWith Alldevices OOS Description dagAd
144. erSingle 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 BdagAdcTransferSetBuffer VBdagAdcTransferSetBuffer VBdagAdcTransferSetBufferSingle BdagAdcTransferBufData VBdaqAdcTransferBufData VBdagAdcTransferBufDataSingle BdagAdcRdScan VBdaqAdcRdScan VBdaqAdcRdScanSingle BdagAdcRdN VBdagqAdcRdN VBdaqAdcRdNSingle BdagAdcRdScanNn VBdaqAdcRdScanN VBdaqAdcRdScanNSingle BdagAdcGetBufData VBdaqAdcGetBufData VBdaqAdcGetBufDataSingle BdagAdcRd VBdagqAdcRd VBdaqAdcRdSingle BdagqCvtRawDataFormat VBdaqCvtRawDataFormat VBdaqCvtRawDataFormatSingle Personal Dag User s Manual Appendix B 887095 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 daqCloseList 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 daqSetDefaultErrorHandle r Return the properties
145. erSource dagAdcTriggerSource freq single const gain daqAdcGain handle dagqAdcRdScanNn DWORD startChan DWORD endChan BOOL rising PVOID buf FLOAT level FLOAT DWORD flags DWORD startChan DWORD endChan BOOL rising PVOID buf FLOAT level FLOAT DWORD flags ByVal startChan amp ByVal rising amp ByVal endChan amp ByVal level buf ByVal triggerSource amp ByVal Freq ByVal flags amp startChan DWORD endChan DWORD buf pointer rising longbool level single flags DWORD 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 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 DerrInvGain Channel configuration flags in the form of a bit mask Invalid gain DerriInvChan Invalid channel DerrInvTrigSource Inval
146. ers Display Analog Meters Display Digital Meters Display Use Data Destination Set Data Destination Cell Use Data Header Options Preferences General I Save configuration on exit On Open New Personal Dagview Configuration f Use Untitled as default configuration name C Use Pdag as default configuration name 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 If 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 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
147. ers 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 989592 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 04 Digital Meters Ioj x Control View 1 PO1_ A401 A 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
148. ess 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 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 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 exec
149. eter 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 should be set to 0 B 10 API Commands Appendix B 887095 Personal Dag User s Manual dagAdcSetFilter DLL Function dagqAdcSetFilter DaqHandleT handle DagqAdcFilterType filterType DWORD filterWindow C daqAdcSetFilter DaqHandleT handle DaqAdcFilterType filterType DWORD filterWindow Visual BASIC VbdagAdcSetFilter amp ByVal handle amp ByVal filterType amp ByVal filterWindow amp a DaqAdcGetScan handle DaqHandleT filterType DagAdcFilterType filterWindow DWORD Parameters handle Handle to the device fo
150. eviceType devType daqIODevicePort devPort DWORD whichDevice daqIOExpansionPort whichExpPort PDWORD value C daqIORead DaqHandleT handle DaqIODeviceType devType Daq IODevicePort devPort DWORD Ee whichDevice DaqIOExpansionPort whichExpPort PDWORD value Visual BASIC VBdaqiORead amp ByVal handle amp ByVal devType amp ByVal devPort amp ByVal whichDevice ee ByVal whichExpPort amp value amp daqiIORead handle DaqHandleT devType daqIODeviceType dvPort daqIODevicePort K whichDevice DWORD whichExpPort daqIOExpansionPort var value DWORD Parameters handle 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 value IO value read Returns DerrNoError No error Used With All devices except Personal Dag 54 S O Description daq IORead 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 B 22 API Commands Appendix B 887095 Pe
151. ew software To configure a set of parameters use the appropriate toolbar button or the View pull down menu to open the applicable window Clicking on the Configure Channel Settings button 9 brings up the Channel Configuration Window ga Personal Daq iew Untitled cfg File View Acquire Device Toole Indicators Help Tum channetorn ott fo n zj Main Control Window Analog Input Frequency Pulse Input Digital Input Output Erme ertas PEI A0 PE1_A0 On PEI A02 PEI _A02 On POT ANS PO1 ANS Orn F 366040 10 0 to 10 0 Differential 110 ms 0 0 5 018922 10 0 to 10 0 Differential 110 ms a i 4 458921 10 0 to 10 0 Vf Differential 110 me Channel Configuration Window with Analog Input orcad eer 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 Ri oO 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 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 th
152. f scans and file identification Functions that can be obtained through the toolbar can also be obtained through the pull down menus Toolbar Buttons ga Personal Dag iew Untitled cfg Fille View Acquire Device Tools 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 to disk 4 2 Personal DaqView 989592 Personal Daq User s Manual 10 11 12 13 14 15 Select Active Device Arm Trigger for Disk Recording Manual Trigger Update Digital Outputs Configure Data Destination Configure Acquisition Configure Channel Settings Update All Indicators Display Scrolling Charts Display Bar Meters Display Analog Meters Display Digital Meters View Data Personal Daq User s Manual 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 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 Used to trigger the device when the mode of trigger is set to Manual Note that
153. fer to Meters Configuration Menu page 4 21 for more detail 4 24 Personal DaqView 989592 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 RT ae 10 00 2 PO1_ A072 W 1 25 4 PO1_Ad4 Vf 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 and 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 Met
154. fferent set of rail catches is used 1 Place the applicable lower rail catch of the feet onto the lower 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 Daq 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
155. 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 989592 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 the cell has a given parameter list such as those in the On Range and Measurement Duration columns the parameter will change with each d
156. fy the disk file for direct to disk transfers types Acquisition Control Arm an acquisition daqAdcDisarm daqAdcAcqGet Stat Disarm an acquisition Returns current state of acquisition daqAdcTransferBufData Transfer scans from driver allocated buffer to user specified buffer daqAdcTransferSetBuffer Setup a destination buffer for an ADC transfer daqAdcTransferStart Start an ADC transfer daqAdcTransferGetStat Retrieve status of an ADC transfer dagqAdcTransferStop dagAdcRd Stop an ADC transfer otype 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 daqAdcRdScanNn oa BA be ail t a S Data Format and Conv daqAdcSetDataFormat Configure an A D acquisition and read multiple scans 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 M a ar 3 f D amp AMO a zeneral I O F T Read a DIO bit channel Set the ADC Voltage Range for the conversion routines daqiOReadBit B 23 daqIORead Read a DIO byte 8 channels B 22 daqIOWriteBit Write a DIO bit channel B 24 daqiOWrite
157. ger 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 989592 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 the 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
158. ger 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 989592 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 to convert the raw signals into engineering units using the following mx b equation Engineering Units m Raw Signal b 1 T
159. guration 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 Grids Turns grid lines on or off for the indicated chart Properties of Chat HE Timestamp Allows selection of absolute or relative timestamps and provides a means of turning off the timestamp Grids Scroll rate Scroll Rate Sometimes referred to as chart speed Selects the indicated C of fisec dv gt chart s scroll rate in time per division Scroll rate can be as fast as 0 1 On Limit lines Off Solid sec div and as slow as 1 hour div with several other rates to choose 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 the scroll rate set in the chart s Properties box Limit Lines Allows limit lines marking the upper and
160. hanging 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 Sag PO1_ A402 eee 2 PD1_ A402 ee D Show Trend Indicator 3 PD1 AGG Pn ADE Show Peak Hold Indicators 4 PO1_A04 PO _ Ag All Hone PD1_ADS zl Cancel Apply More None PO1_403 Miscellaneous Dialog Box with Meters Extension Channel Selection Scale Limits Misc i High 4 036 nn Low Fae Format 0 000 Set Scale Show Peak Hold Indicator Reset Peak Hold Indicator Cancel Apply More gt Show Trend Indicator Set Scale Dialog Box Set Limits TEE 1 Limits Show Limits a Misc High 4 096 Lowe 4 096 Meters Configuration Menu Show Limits Cancel Apply More gt gt Set Limits Dialog Box Meter Configuration Menu and Related Dialog Boxes Personal Daq User s Ma
161. hannel selection etc Refer to the Configure Meter Settings page 4 21 for more detail 4 26 Personal DaqView 989592 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 36 Personal DaqView permits the use of multiple groups with up to four overlapping channels per chart and can make use of Simple Moderate or Advanced automatic chart creation functions of the wizard Discussion of the Chart Setup Wizard begins on page 4 36 Groups Charts amp Channels Before continuing with this section it is important that you understand Erp Disp ay the chart display structure in terms of groups charts and channels A Group 1 Oo Group refers to a group of charts Note that Personal DaqView allows Fl Chart 1 up to 64 groups depending on the capabilities of your PC but can only Ee display one group at a time fe PD1_A01 Chart refers to display area which reflects real time channel data Ee Chart 2 values for a selected channel and can be scrolled at various rates You LFA PD Ad can assign up to 16 charts per group The application can display up to E Group 2 four overlapping channels per chart E Chart 1 of C F K R mV V Hz or kHz depending on the configuration zoe When starting the program with no configuration file present Personal EalPD1_A04 DagqView
162. hannels 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 33 4 38 Personal DaqView 989592 Personal Daq User s Manual Using Personal DaqView with Microsoft Excel OverView 39 Auto Load Function 44 First Time Use 40 Disabling Auto Load 44 Configuration Reference 42 ene eee Toolbar Buttons 42 Performance of Personal DaqVieWXL 45 Tools Pull Down Menu 43 Configuring an Acquisition 45 Channel Configuration Window 44 Real Time Charting 46 Data Header 47 Hints and Tips 48 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
163. 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 operate 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 betw
164. he Personal DaqViewXL auto load feature 4 44 Personal DaqView sesso Personal Dag User s Manual Performance of Personal DaqView with Excel 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 DaqView and Microsoft Excel If you are not proficient with Excel please refer to your Excel documentation as needed The more you know about Excel the better Microsoft Excel Book ial File Edit wiew Insert Format Tools Chart Window Help ETENI ek ERER E vf Fe wal Sa A Temperature vs Time 50 00 6O 00 40 00 jak 20 00 0 00 10 A E E E ee i T Time s a 11 Type i ypek i i ype kK Type K Z Units ae He gt i Personal Dag iew Plus Chart Display Of x ondoncoonoaneNaoooonDACOOIONes HoNoGoAoen qooNIoOcOoNDAOOOONeNOONONEOOIEoNOaDIONEDONOAnONDSN ESOC AONOOcAAaoOADSOnODOOOOCOnSOOLNOOGONS Chat Control View Timestamp see Use ere ee ga ETE a STE TERE CY STE ee Preteen Eee eee IE 7a C E con 2i 189877 c r div IENE C 4 49 9854 Center H maj i 19 9877 4 C div PIRAN Sheetl Ready i 49 9854 Center H 21 279 E aC div F sec r div e 22 22 T 22AT Ta Personal DaqViewXL Toolbar Configure Devices Configure Channels Configure Acquisition Go Manual Trigger Chart Display
165. he 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 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 Foreground Operation Single Scan Multiple Scans Single Channel dagAdcRd dagAdcRdN Consecutive Multiple Chan
166. he 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 989592 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 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
167. he 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 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 chart groups charts and channels will be displayed The following figure shows two radio buttons on the screen These buttons a
168. he 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 989592 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 counted 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
169. he 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 values of m and b into the appropriate location using the facilities provided by compatible data acquisition software for example WaveView
170. his function For detailed device property structure layout refer the to daq Device Properties Definition table Personal Daq 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 DerrNoError No error See Also ee eee eee Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DIGEX1 C INITEX1 C DAQEX FRM VB DAQEX PAS Delphi All devices Description daqGetDriverVersion allows you to get the revision level of the driver currently in use daqGetLastError DLL Function daqGetLastError DaqHandleT handle daqError errCode daqGetLastError DaqHandleT handle DaqError errCode Visual BASIC VBdaqGetLastError amp ByVal handle amp errCode amp Delphi daqGetLastError handle DaqHandleT var errCode dagError Parameters handle Handle to the device errCode Returned last error code DerrNoError No error See Also daqDefaultErrorHandler daqProcessError daqSetDefaultErrorHandler Program References Used With All devices Description dagqGetLastError allows you to retrieve the last error condition registered by the driver daqiORead DLL Function daqIORead DaqHandleT handle daqiIOD
171. hown 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 5 V to 5 V 4 V to 4 V 2 5 V to 2 5 V 2 V to 2 V 1 25 V to 1 25 V 1 Vto 1 V 625 mV to 625 mV 500 mV to 500 mV 312 mV to 312 mV 250 mV to 250 mV 156 mV to 156 mV 125 mV to 125 mV 62 mV to 62 mV 31 mV to 31 mV Oo ol oo Ol A oo a lw L lop
172. id trigger DerriInvLevel Invalid Level DerrFIFOFull Buffer Overrun DerrNoError No error dagqAdcRd daqAdcRdN dagqAdcRdScan daqAdcSetClock daqAdcSetTrig UsedWith All devices Description dagqAdcRdScanN 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 Dag User s Manual dagqAdcSetAcq DLL Function daqAdcSetAcq DaqHandleT handle daqAdcAcqMode mode DWORD preTrigCount DWORD G daqAdcSetAcq DaqHandleT handle DaqAdcAcqMode mode DWORD preTrigCount DWORD Visual BASIC VBdaqAdcSetAcq amp ByVal handle amp ByVal mode amp ByVal preTrigCount amp ByVal daqAdcSetAcq handle DaqHandleT mode daqAdcAcqMode preTrigCount DWORD postTrigCount DWORD Parameters handle PostTrigCount Number of post trigger ADC scans to be collected See Also daqAdcArm daqAdcDisarm daqAdcSetTrig Used With All devices Description 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 parame
173. indow 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 989592 Personal DaqView 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 Contral Select single ended differential Differential Analog Input Frequency Pulse Input Digital Input Output Physical Single e
174. ins dagAdcGainP adcRanges daqAdcRangeTP trigSensitivity daqEnhTrigSenstTP ee 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 representing the actual A D trigger channels to trigger on chanCount Indicates the number of configured A D channels Returns DerrNoError No error Used With Personal Dag 55 and Personal Dag 56 _ _ S O Description daqAdcSetTrigEnhanced 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 or d The trigger event is form
175. interval integrity Examples of scan sequences with various channel resolutions and calibration arrangements appear in the figure 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 Dag User s Manual Analog Input Co
176. ions on the preceding page Calibration Equipment for Equipment for Voltage Portion of Calibration Thermocouple Portion of Calibration VDC Calibrator 0 C Temperature Reference Cold cell or ice bath Digital Voltmeter T type Thermocouple Copper Short T type T C wire 2 Pin Connector Harness made from DB25 Male Connector see figure on page 6 5 Note that the harness is not required however its Thermocouple calibration not required if Personal use is recommended to avoid damaging the Daq system is not used for temperature Personal Dag expansion connector and to ensure measurements good pin contact 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
177. irst 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 in Chapter 4 Digital I O does not apply to Personal Daq 54 7 Configure Data Accesses the Configure Data Destination window Note that this window provides a Destination means of selecting sequential destinations through an auto rearm feature Configure Acquisition Accesses the Configure Acquisition window Configure Channel Brings up the Channel Configuration window From this window you can configure Settings 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 PostAcquisition Analysis PDF included on your CD for detailed information 16 Enable Readings A
178. isual 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 Daq 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 Daq User s Manual dagqCloseList Delphi dagClosetist manate Daanan OOOO eums pemer oer OOOO Usedwith Pesas 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 daqCvtRawDataForm
179. l Daq 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 chans amp i amp DcofChannel DcotpDaqDebounceTime DcovDebounce 0 ret amp VBdaqSetOption 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 VBdaqgSetOption 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 chans amp i amp DcofChannel DcotpDaqDebounceTime DcovDebounce 0 End If gains i PGainX1 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
180. le 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 4 32 Personal DaqView 989592 Personal Daq User s Manual 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 a time It is important to understand that other channels those n
181. le 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 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 O Personal Daq User s M
182. llow you to select the method of adjusting the display mode From this screen you need to choose Units Full Scale or Units Div Personal Daq User s Manual 989592 Personal DaqView 4 35 Display Configuration Setup a a OFF POM f ELOFF EHA Display Et Group 1 EE Char 1 Data Type Category Voltage Type 4 096 Unita Y Channel Settings f Units Full Scale Units 2 Division Trace Color Be f vex 4035 Y Center oS Min 4 096 es 3 Display Mode Units lt Division f i 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 Chart Setup Wizard 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 Chart pull down menu or by clicking of the Chart Setup button in the Chart Display Window
183. 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 Close 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 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 4 28 Personal DaqView 989592 Personal Daq User s Manual 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 keyboard up or down arrow key d using the page up or page down key If using a control option other than
184. ltage 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 strain 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 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 Daq 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 Linearization Some transducers produce a voltage in linear proportion to the condition measured Other
185. lue 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 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 Timestamp 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 ho
186. ly 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 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 Person
187. m 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 DWORD TotalCjcChannels Number of CJC channels in the system DWORD SerialNumber Serial Number for the device DWORD ExpansionUnits Number of expansion units DWORD SubDeviceType Type of expansion unit DWORD Table 2 General I O Definitions Person aa Port Value Description a A SUIIAIL Daq E OIL ein a DiodpPdaqPort1 00h Local Port 1 DiodpPdaqPort2 Olh Local Port 2 DiodpPdagqExpPort1 02h Expansion Port 1 PDQ Option DiodpPdaqExpPort2
188. mmon 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 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 ina 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 t
189. n CD The CD includes several program install options 501395x 01 Note that the CD includes user manuals 491 0940 Personal Daq 50 Series Quick Start Guide 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 PDQ1O 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 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
190. n 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 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 Some 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
191. n 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 acquisition 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 proc
192. ncy 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 Digital R ojolojojo p o o R KAR p p 0 0 o o Digital IO N 32 31 3029 28 27 26 25 N N 24 23 22 21 20 1 N VO 17 PDQI Expansion Module He 4 ti LIH IESI Aim L H 18 1819 flinair HL HIL PDQ2 Expansion Module 1 Lo HIMI b 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 collector 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 Specification
193. nd 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 Dag device Note that the real devices which are listed 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 prio
194. nded Measurement Vf POT ADIL 1 volts On 10 238441 10 0 to 10 0 Sindle ended 110 ms 1 0 V2 volts On 10 051563 10 0 to 10 0 W single ended 110 ms 1 0 0 0 Y3 Thermo On 3 321 Typed E Differential 110 ms 1 0 0 0 PD1_AD3 On 7 142 Type J aE Differential 110 ms 1 0 0 0 PD1_AD4 On 12 265 Type K E Differential 110 ms 1 0 0 0 PD1A05S On 18 534 Type T E 110 ms 1 0 0 0 PDI_ADEL On 4 964451 10 0 to 10 0 y Single ended 110 ms 1 0 0 0 PO1_A06H POI_AOBH 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 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 Differenti
195. nels daqAdcRdScan daqAdcRdScanN Complex A D Scan Group Configuration Routines For non consecutive channels high speed digital channels multiple gain settings or multiple polarity settings use the SetScan functions daqAdcSetScan Set scan sequence using arrays of channel and gain values 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 daqAdcSetRate Set Get the specified frequency or period for the specified mode dagqAdcSetFreq Set the pacer clock to the given frequency A D Acquisition A D acquisition settings are not active until the acquisition is armed daqAdcArm 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 p
196. nfiguration Personal Dag 54 and Personal Daq 55 each include 10 analog signal inputs which may be used as 10 single ended inputs 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
197. nfiguration on open and new file I Prompt before overwriting 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 uV and the associated scale amp offset The new default units are also applied to all channels when a new configuration file is created ka Preferences Screen Captures Condensed Images About Help Personal Daq User s Manual Provides version information for the active Personal DaqViewXL add in and the Personal DaqView application Launches the Personal DaqViewXL section of the Personal DaqView help file 989592 Personal DaqView 4 43 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
198. ng 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 Personal Dag User s Manual 989592 Personal DaqView 4 33 4 34 Personal DaqView Display Configuration Setup Es OF Automatically Add Groups to the Setup Add ii Groups to the Setup And create fi Charts in each Group Create Groups Manually Add Groups to the Setup Enter Group name Add Display Group Display Configuration Setup A Clean Slate Approach 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 Display Configuration Setup screen changes to show chart groups an
199. ng returned in degrees You can use Personal DaqView 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 Daq User s Manual 989592 Personal DaqView 4 39 First Time Use Perform the following steps to load Personal DaqView into Excel a 4dd Ins available Start Excel refer to Microsoft documentation as needed Analysis ToolPak Analysis ToolPak VBA W Conditional Sum wizard cc q W File Conversion Wizard Bpo This will open the Add Ins dialog box a Internet Assistant Wizard M Lookup Wizard Microsoft AccessLinks Add In Microsoft Bookshelf Integration 3 Click the Browse button and locate the file pDaqView xla This file is located in the install directory specified by the setup program Click OK Browse Look in _ Personal DagviewsL lestpoaqview xla Find Files that match these search criteria File name Text or property Find Mow Files of type Add Ins eee asali Last modified any time New Search 1 filets Found Browse Option Dialog Box 2 Sel he Tool d click Add I P AutoSave Cancel elect the Tools menu and click on Tns
200. not order a PDQ expansion module you would not connect one If a step does not apply to your unit simply go on to the next one Note 1 Note 2 616 V SOO mA Max lt gt Expansion Module User Customized Label lt gt Optional Label Slot j 1 of 2 Shaded cells of label i extend irom slot for Ti 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 S _ in this chapter Refer to Chapter 3 aa for examples of multiple unit systems Screw Terminal Block pP that make use of this connector Removable Personal Dag 36 Personal Dagia 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 1 2 Unit Startup 878395 Personal Daq 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 rep
201. nputs 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 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 ar
202. nsecutive channels need to be acquired The flags parameter is used to set channel dependent options See ADC Flags Definition table for channel flags definitions daqAdcSetRate DLL Function daqAdcSetRate DaqHandleT handle daqAdcRateMode mode daqAdcAcqState acqState FLOAT reqRate PFLOAT actualRate C daqAdcSetRate DaqHandleT handle DaqAdcRateMode mode DaqAdcAcqState acqState FLOAT ae reqRate PFLOAT actualRate Visual BASIC VBdagqAdcSetRate ByVal handle amp ByVal mode amp ByVal acqState amp ByVal reqRate 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 acgqState Specifies the acquisition state to which the rate is to be applied reqRate specifies the requested rate actualRate Returns the actual rate applied This may be different from the requested rate DerrNoError No error daqAdcSetAcq dagAdcSetTrig daqAdcArm dagAdcSetFreq daqAdcGetFreq Program References DAQEX PAS Delphi ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DAQEX FRM VB Used With All devices Description daqAdcSetRate 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 DarmFreq
203. nsing 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 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 condensing 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
204. nual 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 8 2 Personal Daq 55 with PDQ1 15 DE or 30 SE 24 2 Personal Daq 55 with PDQ2 25 DE or 50 SE 8 2 Personal Daq 56 Systems Volts Inputs TC Inputs Digital I O Freq Pulse Inputs Personal Daq 56 10 DE or 20 SE 16 4 Personal Daq 56 with PDQ1 20 DE or 40 SE 32 4 Personal Daq 56 with PDQ2 30 DE or 60 SE 16 4 DE Differential Mode SE Single Ended Mode Speed vs Resolution Speed Designation Measurement Maximum Resolution Duration Sample Rate Bits RMS 4 V to 4 V per channel Samples sec Creare Very Slow 50 60 Hz rejection 1 6 sec Slow 50 Hz rejection 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 48 sec Very Fast 80 sec Notes 1 Each channel can have independent measurement duration and resolution 2 The sample rates and resolutions s
205. nual dagAdcTransferSetBuffer DLL Function dagAdcTransferSetBuffer 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 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 total length of the buffer in scans transferMask Configures the buffer transfer mode See Also dagAdcTransferStart dagqAdcTransferStop dagqAdcTransferGetStat daqAdcSetAcq dagAdcTransferBufData 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 b
206. nual 989592 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 same 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
207. o 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 square 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 R of an analog to digital converter combines with the transducer s
208. ocedure 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 the hardware is calibrated 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 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 Note 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 your system Pay special attention to Warnings and Cautions 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
209. of multiple channels must be configured using the VBdaqAdcSetScan function ret amp VBdagAdcSetScan amp handle amp chans amp gains amp flags amp ChanCount The arrays used to specify the parameters of the trigger event are initialized prior 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 Dats mmediate 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 t
210. 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 expansion 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 Configuration Initialization and Error Handling Acquisition Foreground Acquisition with One Step Commands Counted Acquisition Using Linear Buffers Indefinite Acquisition Direct To Disk Using Circular Buffers Multiple Channel Types
211. ollowing 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 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 1 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
212. on 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 System 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 Person
213. on daqFormatError 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 API Error Codes on page page B 33 B 20 API Commands Appendix B 887095 Personal Daq User s Manual daqGetDeviceCount Delphi dagGetDeviceCount deviceCount PDWORD _ SOS S S SSCSCSCSCSCS S 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 function 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 Parameters deviceList Pointer to memory location to which the device list is to be returned deviceCount Number of devices returned in the device list DerrNoError No error See Al
214. on system immediately re arms and waits for the trigger to be satisfied To use Auto Rearm A E 1 Set your file conversion preferences Sequential Destinations auto Reatm 2 Verify that the Acquisition is configured as desired iy pentose 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 ET the Configure Data Destination box Ending Index 4G 5 Enter the starting and ending index values for the files 6 Select OK Starting File PO AGQ_5 BIN 7 Start recording data to disk Ending File POAG 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 criteria 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 th
215. onal 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 opened 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 as 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 specifiedpevicentst eens caccloseList daqOnline d
216. ory 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 loaded 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 be sure to 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 DaqView 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
217. ost trigger acquisition counts if applicable daqAdcAcqGetStat 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 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 Daq 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 a time 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 ch
218. ot 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 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 1s 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 methods and then edit the setup To manually setup your chart display using the clean slate approach as opposed to editing an existi
219. ouble 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 channel 1 a differential channel PD1_A0O2L Personal Dag unit 1 Analog Input channel 2 Low a single ended channel low end PD1_A02H
220. ount C daqAdcTransferBufData DaqHandleT handle PVOID buf DWORD scanCount ae DagAdcBufferxXferMask bufMask PDWORD retCount Visual BASIC VBdagAdcTransferBufDataSingle amp ByVal handle amp buf ByVal ScanCount amp ByVal rea transferMask amp retCount amp dagAdcTransferBufData handle DaqHandleT buf pointer scanCount DWORD el bufMask DaqAdcBufferxXferMask 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 retCount A pointer to the total number of scans returned if any 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
221. own list for the applicable cell from which a selection can be made This pull down list appears just below the toolbar Double click with 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 Configure Acquisition Pre Trigger Trigger Post Trigger Pre Trigger Trigger Post Trigger SOUICE Manual Channel Dura
222. 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 Data 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
223. peal 2 4 Frequency Inputs 4 Frequency Pulse Count Duty Cycle OOOO v Expansion 20 Analog Inputs 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
224. penError 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 DerriInitFailure 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 DerriInvErrorCode 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 signal selection DerrInvRawDataFormat 7
225. 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 trigger 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 locat
226. q 80000h DafTcTypeE DafMeasDuration110 400000h DafCtrDutyLo 100000h DafTcTypeN DafMeasDuration40 500000h DafCtrDutyHi 200000h DafTcTypeS DafMeasDuration20 600000h DafTcTypeR DafMeasDuration12_5 700000h DafTcTypeB Frequency vs Period ADC Acquisition Mode Definitions ADC Transfer Mask Definitions dagqAdcRateMode dagqAdcAcqMode dagAdcTransferMask DarmPeriod DaamNShot DatmCycleOfft DarmFrequency DaamNShotRearm DatmCycleOn DaamInfinitePost DatmUpdateBlock DaamPrePost DatmUpdateSingle DatmUserBuf DatmSavePreTrig DatmIgnoreOverruns DatmDriverBuf ADC Clock Source Definitions ADC File Open Mode Definitions ADC Acquisition Transfer Active Flag Definitions dagqAdcClockSource dagqAdcOpenMode dagqAdcActiveFlag DaomAppendFile DaafAcqActive DaomWriteFile DaafAcqTriggered DaomCreateFile DaafTransferActive ADC Acquisition State ADC Buffer Transfer Mask ADC Filter Type dagAdcAcqgState dagAdcBufferXferMask dagAdcSetFilter DaasPreTrig DabtmWait daftSWAvg DaasPostTrig DabtmRetAvail DabtmNoWait DabtmRetNotDone DabtmPreTrigBlock Table 8 Setting Options optionType DcotpdaqRising DcotpdaqDebounceTime DcotpdaqMinFreq DcotpdaqMaxF req DcotpdaqPulses DcotpdaqFreqRes DcotpdaqRunningCal DcotpDaqOverrangeProtect Sets the rising flag for the Pulse Channel Sets the debounce time for the Freq Pulse Channel sets the min freq range for
227. r DafScanDigital Const AnaFlags amp DafAnalog Or DafDifferential Or DafMeasDuration610 A 10 API Custom Program Modules Appendix A 878495 Personal Daq User s Manual The handle amp variable will be assigned a handle to an opened Personal 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 1 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
228. r 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 can 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 DaqgView 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 Daq View Plus you will need to order it from the fact
229. r 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 DerrNoError No error all refer to API Error Codes on page page B 33 _ _See Also S O Used With PersonalDaq S O 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 daqadcesetFreq handle DaqHandleT freq single O o O Parameters Handle Handle to the device for which the ADC acquisition frequency is to be set Freq The sampling frequency in Hz Valid values 100000 0 0 0002 DerrNoError dagAdcGetFreq daqAdcSetRate Program References Used With All devices Description dagAdcSetFreg 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 c
230. rature 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 Personal Daq 55 Personal Daq 56 Thermocouple Accuracy 0 7 C 0 5 C 0 5 C 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 beagle H 1 3 1 3 3 8 100 TC Type Temp Very C Slow 0 4 0 4 J Medium 50 60 Hz Rejection 0 0 3 0 3 Note Thermocouple accuracy excludes cold junction compensation error Personal Dag User s Manual 878595 General Information 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 se
231. red 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 Dag 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 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 s
232. rees 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 daqAdcRd The default value is DappdfRaw where the post acquisition data format will follow the rawFormat parameter daqAdcSetDiskFile DLL Function daqAdcSetDiskFile 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 openMode Specifies how to open the file for writing preWrite Specifies the number of bytes to pre write in the file See Also dagqAdcTransferGetStat dagqAdcTransferSetBuffer dagAdcTransferStart dagAdcTransferStop Program References None Used With _ All devices Description dagAdcSetDiskFile 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 param
233. rmation however the accuracy of the least significant bits becomes less as the measurement duration speeds up Personal Dag User s Manual 878595 General Information amp Specifications 2 5 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 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 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 48 sec Very Fast 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 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 ta
234. rror S OSOS 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 daqAdcSetTrig 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 issued prior to calling daqAdcArm Personal Daq will perform calibration upon execution of the dagqAdcArm command Personal Dag User s Manual Appendix B 887095 API Commands B 3 dagAdcDisarm Delphi __ _ S di daqAdcDisarm handle DaqHandleT S C SS Returns DerrNoBrror Noer O O OCO O O SS Used With AII devices 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 daqAdcGet Freq dagqAdcGetFreq DaqHandleT handle PFLOAT freq daqAdcGetFreq DaqHandleT handle PFLOAT freq VbdagqAdcGetFreqg amp ByVal handle amp fr
235. rsonal Dag User s Manual daqiIOReadBit DLL Function daqIOReadBit DaqHandleT handle daqIODeviceType devType daqiIODevicePort devPort a Ve DWORD whichDevice daqIOExpansionPort whichExpPort DWORD bitNum PBOOL bitValue C daqIOReadBit DaqHandleT handle DaqIODeviceType devType Daq IODevicePort devPort lt DWORD whichDevice DaqIOExpansionPort whichExpPort DWORD bitNum PBOOL bitValue Visual BASIC VBdaqiOReadBit amp ByVal handle amp ByVal devType amp ByVal devPort amp ByVal whichDevice ea eet ByVal whichExpPort amp ByVal bitNum amp bitValue amp daqiIOReadBit handle DaqHandleT devType daqIODeviceType dvPort daqIODevicePort whichDevice DWORD whichExpPort daqIOExpansionPort bitNum DWORD var ig 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 PUsed With Alldevices except Personal Dags SSS 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 sta
236. s 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 e Support for up to 100 Personal Daq devices attached to one PC e Chart Setup Wizard feature you can make use of Simple Moderate or Advanced automatic chart creation functions TM kae e Includes add ins to Microsoft Excel and can be run from within the Excel environment using Excel s associated macros Personal DaqView permits the use of multiple groups with up to four overlapping channels per chart In addition the application allows you to make changes via a Chart Properties dialog box The Chart Properties box is discussed on page 4 28 When using the Chart Setup Wizard feature you can make use of Simple Moderate or Advanced automatic chart creation functions of the wizard Discussion of the Chart Setup Wizard begins on page 4 36 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 o
237. s 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 Daq 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 Dag User s Manual Hardware Setup 3 Personal Daq System Components 3 2 Personal Daq 3 2 PDQ Expansion Modules 3 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
238. 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 User 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 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 ce Se oe te a F i rye ma aTr Chae 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
239. s rete jon 03 PD1_A05 FPD A04 PDI ADE Categor 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 Display Configuration Setup Deselect all channels Bie The Elon LELOFF Select all channels of the same type EHA Display Data Type El Group 1 Category Voltage Type 4 096 Units W Channel Settings E Ern i Fe PD1_Ag2 Shere Nila ie Units Full Scale El Group 2 i Units Division Ed Char 1 Trace Color Blue EAPO A03 pos be a han 4 096 Y Center U Fe Chart 2 E PD1_ AOS Y Min 09 PAPO ADE EPn Units Division 71 ae 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 Center and Units Division are automatically adjusted You can not directly adjust Y Center or Units Division while Units Full Sca
240. s 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 Daq User s Manual Appendix B 887095 API Commands B 23 daqiIOWriteBit DLL Function daqIOWriteBit DaqHandleT handle daqiIODeviceType devType daqIODevicePort devPort ce DWORD whichDevice daqIOExpansionPort whichExpPort DWORD bitNum BOOL bitValue C daqIOWriteBit DaqHandleT handle Daq IODeviceType devType DaqIODevicePort devPort ea l 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 a ByVal whichExpPort amp ByVal bitNum ByVal bitValue amp daqIOWriteBit handle DaqHandleT devType daqiIODeviceType dvPort daqiODevicePort whichDevice DWORD whichExpPort daqIOExpansionPort bitNum DWORD eee 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 Returns _ _ i DerrNoError No error Used With All devices except Personal Dag 54 Description daqIOWriteBit allows you to write a specified bit on the select
241. se 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 handling 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 daqErrno amp Print dagErrno amp HEXS dagqErrno 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
242. se Data Headers icon in the Personal DaqViewXL toolbar Microsoft Excel Book CR gt 15 x ikia File Edit wiew Insert Format Tools Data Accounting Window Help oe as sese S121 ily 44 100 MRIH bl Sheet i a E Reach CE A TC Personal DaqViewXL Data Header Personal Dag User s Manual 989592 Personal DaqView 4 47 Hints and Tips If Personal DagView is running as a stand alone application when you start to use Personal DaqViewXL Personal DaqView will switch to a special server mode This 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 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 Personal DaqViewXL 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 When loading the Personal Daq
243. so daqGetDeviceCount daqGetDeviceProperties daqOpen Program References ADCEX1 C FREQEX1 C PULSEEX1 C MULTEX1 C DIGEX1 C INITEX1 C DAQEX FRM VB DAQEX PAS Delphi All 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 Delphi daqGetDeviceProperties 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 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 t
244. sonal 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 Personal Daq 54 5 DE or 10 SE 5 DE D No Expansion Personal Daq 55 5 DE or 10 SE Personal Daq 55 with PDQ1 15 DE or 30 SE Personal Daq 55 with PDQ2 25 DE or 50 SE Personal Daq 56 10 DE or 20 SE Personal Daqg 56 with PDQ1 20 DE or 40 SE Personal Daq 56 with PDQ2 30 DE or 60 SE 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
245. 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 Ri The input impedance R of most ADCs is at least 1 MQ low source impedance R usually presents no problem Some transducers such as piezoelectric 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 th
246. splay iv Use Data Destination i i Set Data Destination Cell sie swescouatania cea a Se iv Use Data Header Options Preferences About st rf _ mur fT 4 Microsoft Excel Spreadsheet showing Personal DaqViewXL Menu Options 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 DagView as needed Toolbar Buttons Note The functions that can be obtained through the toolbar can also be obtained through the pull down menus Personal Dagyiewsl 42 FH tht Dl H CS i E on 1 Configure Devices Opens the Select Active Devices window 2 Configure Channels Opens the Channel Configuration Spreadsheet If the window is already open pressing this button gives the window focus 3 Configure Acquisition Opens the Configure Acquisition Dialog Various acquisition parameters can be set from this dialog 4 Go 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 alread
247. spreadsheet allows you to configure and monitor the related digital channels Each row shows a single channel and its configuration W Channel Configuration Control Tum channel on off on Analog Input Frequency Pulse Input Digital Input Output Physical E Up 1 Input j ma 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 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
248. ssion of Personal DaqViewXL an add in software application that provides setup and data acquisition capabilities from within Microsoft Excel Chapter 5 Signal Management discusses signal 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 Dag 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 Daq 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 opti
249. sts performed and all problem related conditions Personal Daq User s Manual 878495 Troubleshooting amp Customer Assistance 7 5 7 6 Troubleshooting amp Customer Assistance 878495 Personal Daq User s Manual Appendices Appendix A 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 pDaqvView 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
250. t 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 989592 Personal Dag 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 File s To Convert Look in BIN test Sl EzE BRE Binan D 729701 8 42 26 AM Source Filej Formats Target Directory FABIN_test Data files are placed in format specite subdirectones of the target directory Browse Exit 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 Destination 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 acquisiti
251. tage 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 OQ Setup Parameters Make sure the device selected in software matches the hardware being used Verify that setup parameters are correct for your application Symptoms and Solutions 1 Personal DaqView will not install properly Check your computer s Window s Operating System Systems preceding Windows 2000 or Windows XP are not to be used with Personal DaqView If your computer is already 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 DaqView 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 a
252. te or FALSE indicating a low state dagqiOwrite DLL Function daqIOWrite DaqHandleT handle daqIODeviceType devType daqiIODevicePort devPort i DWORD whichDevice daqIOExpansionPort whichExpPort DWORD value C daqIOWrite DaqHandleT handle Daq IODeviceType devType DaqIODevicePort devPort Ea ee DWORD whichDevice DaqIOExpansionPort whichExpPort DWORD value Visual BASIC VBdaqIOWrite amp ByVal handle amp ByVal devType amp ByVal devPort amp ByVal whichDevice ocala ByVal whichExpPort amp ByVal value amp daqIOWrite handle DaqHandleT 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 Returns DerrNoError No error Used With All devices except Personal Dag 54 S O 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 i
253. ters 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 daqAdcDisarm 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 disarmed Personal Dag User s Manual Appendix B 887095 API Commands B 9 dagAdcSetDataFormat DLL Function dagqAdcSetDataFormat DaqHandleT handle daqAdcRawDataFormatT rawFormat or I dagqAdcPostProcDataFormatT postProcFormat C daqAdcSetDataFormat DaqHandleT handle DaqAdcRawDataFormatT rawFormat ea l DaqAdcPostProcDataFormatT postProcFormat VBdagqAdcSetDataFormat amp ByVal handle amp ByVal rawFormat amp ByVal postProcFormat amp dagqAdcSetDataFormat Handle DaqHandleT rawFormat daqAdcRawDataFormatT
254. the Manual Trigger button can not be depressed until after the trigger is armed for example by first pressing button 4 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 Accesses the Configure Data Destination window page 4 16 Note that this window provides a means of selecting sequential destinations through an auto rearm feature Accesses the Configure Acquisition window page 4 15 Brings up the Channel Configuration window From this window you can configure channels for Analog Input page 4 8 Frequency Pulse Input page 4 12 and Digital Input Output channels page 4 14 depending on which tab is selected 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 Displays data graphically in a scrolling chart Discussion of Chart Display begins on page 4 27 Displays data in a bar graph format Discussed on page 4 24 Displays data displayed in a dial gage format Discussed on page 4 25 Displays data in a digital meter format Discussed on page 4 26 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
255. the Freq Channel sets the max freq range for the Freq Channel Sets the specified Freq Pulse channel as Pulse Count sets the resolution of the Freq Channel Sets the running calibration flag for the system Enables the over range protection mode J O1 B WINIE O o0 optionValue DcovEdgeRising Sets the edge sensing to rising for the Pulse Freq Channel DcovDutyHigh Sets the Pulse Channel to Duty Cycle High DcovEdgeFalling Sets the edge sensing to falling for the Pulse Freq Channel DcovDutyLow Sets the Pulse Channel to Duty Cycle Low DcovPulseTotalize 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 DcovDebounce10000 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 Dag User s Manual Table 9 API Error Codes Error Name _ ae C Description E DerrNoError 0Oh 0 No error DerrBadChannel Specified LPT channel was out of range DerrNotOnLine Requested device is not online DerrNodaqbook daqBook is not on the requested channel DerrBadAddress Bad function address
256. 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 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 VBdagAdcSetTrigEnhanc
257. tions 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 2 Personal DagvView is not curentl running Do you want to start it now Personal DaqView Startup Confirmation Personal Daq User s Manual ass stststi O C U0 C C COCO OCO O CCCCCC Personal DagView 4 41 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 Del 6RY amp e amp 10 Arial O J Personal DaqviewxXL gt S Spelling Fz AutoCorrect Share Workbook Track Changes Merge Workbooks Protection Goal Seek Scenarios New Configuration Open Configuration Save Configuration Save Configuration As Configure Devices Configure Channels Configure Acquisition Go Manuel Trager 4 10 B Auditing Update Digital Gutsuts Solver Save Power up Settings Macro Add Ins Customize Options Wizard Chart Display Bar Graph Meters Display Analog Meters Display Digital Meters Di
258. tiory D Scans Condition Rising Threshold 0 T Hsteresis j J Pre Trigger Tab Selected Averaging Type Court None Acquisition Parameters Configure Acquisition ee nl Tn i Post rigger Max Rate 80 0000Hz Min Rate 0 0007 Hz Pre Trigger Trigger gg Scan Rate 97 95S Hz 7 Stop Hri Continuous Calibration C Period set Maa M M Overange Protection e Frequency Cancel Trigger Tab Selected Post Triggqer Tab Selected Cruration 100 Scans 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
259. 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 dagAdcExpSetChanOption 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 DcotpDaqDebounceTime Configures the debounce time for the frequency pulse channel The following options must also be specified to configure frequency input channels DcotpDaqMinFreq Configures th
260. 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 Dag User s Manual daqAdcSofttTrig Delphi dagadcsoftTrig handle Daq andle O O C OC O OOOO Parameters Handle Handle to the device to which the ADC software trigger is to be applied Returns DerrNoError No error Used With All devices 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 daqAdcTransferBufData DLL Function daqAdcTransferBufData DaqHandleT handle PVOID buf DWORD scanCount Cee daqAdcBufferxXferMask bufMask PDWORD retC
261. uency 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 programmed B 12 API Commands Appendix B 887095 Personal Dag User s Manual dagAdcSetScan DLL Function dagqAdcSetScan DaqHandleT handle PDWORD channels dagAdcGain gains PDWORD flags DWORD chanCount G daqAdcSetScan DaqHandleT handle PDWORD channels DaqAdcGain gains PDWORD flags DWORD chanCount Visual BASIC VBdagAdcSetScan 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
262. ulated 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 the 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
263. ult 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 Saves power up state settings of Personal Daq s internal switches see page 4 14 Tools Convert Binary Data The Convert Binary Data menu option allows you to convert raw binary data 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
264. urs 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 4 30 PersonalDaqView see Personal Dag User s Manual Accessing the Display Configuration Setup Box aS 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 first click on the Set Up Charts button a Display Configuration Setup box appears A display region shows the configured structur
265. uted 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 VBdaqGetDeviceList amp ByRef deviceList As String ByRef deviceCount amp e VBdaqGetDeviceProperties 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 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 Open the first Personal Daq 56 device found DaqOpen DaqSetOption Set channel options Set format of data returned by th
266. utomatic configuration of the chart display Detailed discussion of the Chart Setup Wizard begins on page 4 36 8 Print Chart Display Sends the displayed chart to the printer 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 information region Personal Daq User s Manual 989592 Personal DaqView 4 29 i Seger 2 es 2 eee e 0 000 Center 1 sec J div Channel
267. verlapping 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 Personal Daq User s Manual 989592 Personal DaqView 4 37 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 standard version of Personal DaqView Create Charts Automatic Chart Creation Simple Moderate Advanced Create Charts fz overlapping channels with 2 hd per chart Start with PO _ AT bad The number of Instrument Data Channels available is 30 The above setup will assign 20 channels starting from channel PO1_A01 through channel PO1_ DOB Automatic Chart Creation Create Charts Create F Display Groups with 2 Charts per group overlapping channels That have Ea aay EI Start with POA The number of Instrument Data Channels available is 30 Simple Moderate Advanced The above setup will assign 30 channels starting from channel PO1_A01 through channel POT D176 Dialog Boxes for Moderate and Advanced Modes of Automatic Chart Creation It is a simple task to create chart
268. y 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 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 5 Manual Trigger 6 Chart Display 7 Bar Graph Meters Display 8 Analog Meters Display 9 Digital Meters Display 10 Use Data Destination 11 Set Data Destination Cell 12 Use Data Header 4 42 Personal DaqView 989592 Personal Daq User s Manual 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 from Personal DaqViewXL s toolbar Note that some of the pull down items have no toolbar equivalent Ook 11 12 13 14 15 16 17 18 20 21 22 Menu Item New Configuration Open Configuration Save Configuration Save Configuration As Configure Devices Configure Channels Configure Acquisition Go Manual Trigger Update Digital Outputs Save Power up Settings Chart Display Bar Graph Met
269. y 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 daqgAdcSetMux 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 continue 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 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 DatmSavePreTrigBuf Specifies that the driver save the pre trigger data once the trigger event has been satisfied This option allows the driver to s

Download Pdf Manuals

image

Related Search

Related Contents

Kodak PIXPRO FZ151  Philips 32" WXGA LCD Monitor + Vogel-s Arm Brackets (x2)  LG 55LA7400 Energy Guide : Free Download, Borrow, and Streaming : Internet Archive  取扱説明書  Benutzerhandbuch Digitalisierungsbox Standard  Four Slice Compact Toaster  Venus W36 LED Moving Wash  Kenwood TS-430 user manual  GOLDEN FOG  LeveLuk KANGEN8:取扱説明書(English)  

Copyright © All rights reserved.
Failed to retrieve file