United Electronic Industries PowerDNA DIO-403 User Manual Download Page 1

 United Electronic Industries, Inc.

 

Version 3.3 

 

 
 
 

 

 
 

 

 
 
 

  

 
 

 

 

 

 

 

 

February 2013 Edition 

PN Man-DNA-DIO-403-0213 

 
 

Version 4.4 

 

 
 
 
 
 
 
 

 

 

 

© Copyright 1998-2013 United Electronic Industries, Inc.  All rights reserved. 

 

PowerDNA DIO-403 User Manual

 

 

 48-channel Digital I/O layer 

for the PowerDNA Cube

 

Summary of Contents for PowerDNA DIO-403

Page 1: ...s Inc Version 3 3 February 2013 Edition PN Man DNA DIO 403 0213 Version 4 4 Copyright 1998 2013 United Electronic Industries Inc All rights reserved PowerDNA DIO 403 User Manual 48 channel Digital I O layer for the PowerDNA Cube ...

Page 2: ...patents or other rights of third parties that may result from its use All product names listed are trademarks or trade names of their respective companies See UEI s website for complete terms and conditions of sale http www ueidaq com company terms aspx Contacting United Electronics Industries Mailing Address 27 Renmar Avenue Walpole MA 02081 U S A For a list of our distributors and partners in th...

Page 3: ...connectors and wiring 3 2 Programming using the UeiDaq Framework 5 2 1 Creating a session 5 2 2 Configuring the resource string 5 2 3 Configuring the timing 5 2 4 Reading data 6 2 5 Cleaning up the session 6 3 Programming using the Low Level API 7 3 1 Data representation 7 3 2 Configuration settings 7 3 3 Channel list settings 8 3 4 Layer specific commands and parameters 8 3 5 Using layer in ACB m...

Page 4: ...ture connectivity and logic of the DIO 403 layer Programming using the UeiDaq Framework High Level API This chapter provides an overview of the how to create a session configure the session for digital data acquisition output and format relevant output Programming using the Low Level API Low level API commands for configuring and using the DIO 403 series layer Appendix A Accessories This appendix ...

Page 5: ...o get the job done or reveal good ideas you might not discover on your own Note Notes alert you to important information CAUTION Caution advises you of precautions to take to avoid injury data loss and damage to your boards or a system crash Text formatted in bold typeface generally represents text that should be entered verbatim For instance it can represent a command as in the following example ...

Page 6: ...put I O throughput rate is 10k samples sec 20k aggregate Digital Lines 48 direction selectable in groups of 8 Output Drive Capacity 16 mA per pin i e 16mA per channel Input High Voltage 2 4V Input Low Voltage 0 8V Output High Voltage 4 5V 2mA 3V 16mA Output Low Voltage 0 5V 22Ω current limiting resistors Timestamp resolution 15 ns Lines protected to 30V overvoltage peak to peak 7kV ESD Output prot...

Page 7: ...limiting resistor limits current in every line I O lines are neither pulled up nor pulled down Thus connected equipment should actively drive these lines high or low An unconnected or not driven input line will remain in an arbitrary state The layer employs 16 543 buffers with two by eight architecture Thus the user can select lines to be input or output with the granularity of eight lines at a ti...

Page 8: ...781 821 2890 www ueidaq com Fax 781 821 2891 PowerDNA DIO 403 Layer 3 1 3 Layer connectors and wiring Wiring of DIO 403 is very simple The user should wire input and output lines relative to DGND TRIGx line is an input for external trigger ...

Page 9: ......

Page 10: ...ll operations on your PowerDNA device Therefore the first task is to create a session object CUeiSession session 2 2 Configuring the resource string The framework uses resource strings to select which device subsystem and channels to use within a session The resource string syntax is similar to a web URL device class IP address Device Id Subsystem Channel list For PowerDNA the device class is pdna...

Page 11: ... reader di_session GetDataStream read one scan the buffer must be big enough to contain one value per channel uInt16 data reader ReadSingleScan data Writing data is done by using a writer object The following sample shows how to create a writer object and write data Create a writer and link it to the session s stream CUeiDigitalWriter writer do_session GetDataStream write one scan the buffer must ...

Page 12: ...bits of data At the user level read or write data is presented in an array of six bytes Each byte represents one of the six I O ports available 3 2 Configuration settings Configuration settings are passed in the DqCmdSetCfg function Not all configuration bits apply to DIO 403 layers Following bits are used define DQ_LN_MAPPED 1L 15 For WRRD DMAP devices automatically selected define DQ_LN_ACTIVE 1...

Page 13: ...hich ports are inputs and which are outputs Ports are represented as individual bits port 0 bit 0 etc while 1 represents output Thus to configure ports 0 thru 3 as inputs and ports 4 and 5 as outputs Mask 110000b 0x30 DqAdv403Write This function writes data to DIO 403 ports Firmware writes data into ports regardless of the state of the port input or output User can write set the state of the outpu...

Page 14: ...LAY DQRdCfg Set hysteresis at this point DqAdv40xSetHyst hd0 DEVNIN 0x132 0x2CA Receive IOM crucial identification data DqCmdEcho hd0 DQRdCfg for i 0 i DQ_MAXDEVN i if DQRdCfg devmod i printf Model x Option x n DQRdCfg devmod i DQRdCfg option i else break 2 Create and initialize host and IOM sides DqDmapCreate pDqe hd0 pBcb UPDATE_PERIOD dmapin dmapout 3 Add channels into DMap DqDmapSetEntry pBcb ...

Page 15: ...Q_ePacketOOB 4 Start operation DqeEnable TRUE pBcb 1 FALSE 5 Process data while keep_looping DqeWaitForEvent pBcb 1 FALSE timeout eventsin if eventsin DQ_eDataAvailable datarcv printf ndata 08x uint32 ioffset uint32 ooffset datarcv 6 Stop operation DqeEnable FALSE pBcb 1 FALSE 7 Clean up DqDmapDestroy pBcb DqStopDQEngine pDqe DqCloseIOM hd0 ifndef _WIN32 DqCleanUpDAQLib endif ...

Page 16: ...ers are available for the DIO 40x layer DNA CBL 62 2 5ft 62 way round shielded cable for connection to panel s DNA DIO O22 Accessory panel for PowerDNA DIO layers panel distributes 24 DIO channels into single group of 24 lines or in case with 48 DIO channels into 3 groups of 16 lines which connect to three Opto 22 compatible connectors DNA STP 62 62 channel screw terminal panel ...

Page 17: ......

Page 18: ...h a signal is connected from one location to another crosstalk An unwanted signal on one channel due to an input on a different channel current drive capability The amount of current a digital or analog output channel can source or sink while still operating within voltage range specifications current sourcing The ability of a DAQ card to supply current for analog or digital output signals I input...

Page 19: ...efix for 1 million or 106 when used with units of measure such as volts and Hertz the prefix for 1 048 576 or 220 when used to quantify data or computer memory Mbytes s A unit for data transfer that means 1 million or 106 bytes sec N noise An undesirable electrical signal Noise comes from external sources such as the AC power line motors generators transformers fluorescent lights soldering irons C...

Page 20: ...LCs typically have proprietary programming and networking protocols and special purpose digital and analog I O ports Polled mode DAQ card operating mode whereby the user application queries the board about the status of various subsystems as needed R real time A system in which the desired action takes place immediately when all input conditions are fulfilled it never has to wait for other process...

Page 21: ...ation protocol of the Internet but that is also used in a private network either an intranet or an extranet The higher layer TCP manages the assembling of a message or file into smaller packets that are transmitted and received by a TCP layer that reassembles the packets into the original message IP handles the address portion of each packet so it gets to the right destination throughput rate The ...

Page 22: ...owerDNA DIO 403 Layer Index 17 6 Index A Advanced Circular Buffer 8 architecture 2 B buffer s 2 D data word size 7 F features 1 G glossary of terms 13 M mode ACB 8 DMap 9 O over voltage protection 1 P programming low level commands 8 layer configuration 7 T throughput rate 1 W wiring 3 ...

Reviews: