background image

Manual PCIe-DA16-6 

15 

Chapter 6 Software 

  

These cards are straightforward to program. The following example is in C, but sample 

code is also provided on the CD in Pascal and four Windows languages: Delphi, 

VisualBASIC, and Visual C++. 

  

To output an analog value with 16-bit resolution, a corresponding decimal number N 

between 0 and 65535 is calculated (2

16

 = 65536). 

  

double spanVolts = 10.0;  // for ±5V; use "20.0" for ±10 

double offsetVolts = spanVolts / 2; //use "0.0" for unipolar  

double targetVolts = 1.3; // change to any desired output voltage 

counts = (targe offsetVolts) / spanVolts * 65536.0; 

  

Next the data are written to the selected analog output channel. (See the preceding I/O 

Address Map.)  

  

RelOutPort(DeviceIndex, DAC * 2, counts);

  

 

For simplicity, it was assumed that the simultaneous-update capability was not used. 

  

Examples of this routine are installed with the software package along with examples in 

other languages. 

 

See Chapter 7: Calibration for the equivalent command for outputting calibrated data. 

Содержание PCIe-DA16-6

Страница 1: ...10623 Roselle Street San Diego CA 92121 858 550 9559 FAX 858 550 7322 contactus accesio com www accesio com MODEL PCIe DA16 6 Analog Output Multifunction Board USER MANUAL FILE PCIe DA16 6 A3a...

Страница 2: ...nd does not convey any license under the patent rights of ACCES nor the rights of others Copyright by ACCES I O Products Inc 10623 Roselle Street San Diego CA 92121 All rights reserved WARNING ALWAYS...

Страница 3: ...parts not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provide on site or in plant service at reasonable...

Страница 4: ...ange Switches and Codes 10 Figure 3 1 Option Selection Map 10 Chapter 4 Address Selection 11 Chapter 5 Programming 12 Table 5 1 Register Map 13 Table 5 2 DAC Data Format 13 Programming the Digital I O...

Страница 5: ...CI Express slot They contain either six four or two double buffered digital to analog converters DACs that provide independent analog output channels of 12 or 16 bit resolution Each analog output chan...

Страница 6: ...VCCIO or 24mA w 3 3V VCCIO Pull ups on the card assure that there are no erroneous outputs at power up The lines initialize in the input mode Figure 1 1 Block Diagram Ordering Guide PCIe DA16 6 Six 1...

Страница 7: ...ponents are included with your shipment Please take time now to ensure that no items are damaged or missing PCIe DA1x x Board Optional Accessories ADAP37F MINI Direct Plug Spring Cage Terminal Adaptor...

Страница 8: ...Software Package from the Manuals Software tab 3 Run the Install program and follow the on screen prompts to install the software for this board Linux 1 Please visit https github com accesio for infor...

Страница 9: ...ewed into place and that there is a positive chassis ground 7 Install an I O cable or an ADAP37F MINI onto the card s bracket mounted male connector 8 Replace the computer cover and turn ON the comput...

Страница 10: ...with each individual position slide notated with 1 2 3 or 4 Each four position slide switch is associated with each DAC channel to make voltage range selection switches S1 Channel 0 through S6 Channel...

Страница 11: ...on each of the cards and the respective IRQs Alternatively some operating systems can be queried to determine which resources were assigned In these operating systems you can use either AIOWDMFind or...

Страница 12: ...ll load all DAC registers with the value waiting in the pre load registers causing all outputs to be updated and changed simultaneously In other words the outputs of all D As may be updated simultaneo...

Страница 13: ...ard in Simultaneous Mode Base 9 DAC 4 High Byte Base A DAC 5 Low Byte Update all outputs and release card from Simultaneous Mode Base B DAC 5 High Byte Base E Restrict Output Voltage Disables voltage...

Страница 14: ...all I O lines are set as inputs Each GROUP should be configured during initialization by writing to the control registers even if the ports are going to be used as inputs The DIO Direction control re...

Страница 15: ...use 20 0 for 10 double offsetVolts spanVolts 2 use 0 0 for unipolar double targetVolts 1 3 change to any desired output voltage counts targetVolts offsetVolts spanVolts 65536 0 Next the data are writt...

Страница 16: ...se iCard 3 pCalBase function The EEPROM contains two values per channel per range The LowAdjust and HighAdjust calibration constants are stored for each channel at each range code 0 6 These constants...

Страница 17: ...me Byte Address Channel Value Range Base F0h Channel 0 0 0 5V Base F1h Channel 1 1 0 2 5V Base F2h Channel 2 2 0 10V Base F3h Channel 3 3 5 5V Base F4h Channel 4 4 2 5 2 5V Base F5h Channel 5 5 10 10V...

Страница 18: ...gital I O Port B Bit 3 26 VCCIO fused 8 Digital I O Port B Bit 2 27 12V fused 9 Digital I O Port B Bit 1 28 No connection 10 Digital I O Port B Bit 0 29 No connection 11 Ground 30 Digital I O Port A B...

Страница 19: ...Manual PCIe DA16 6 19 Figure 8 1 Field Wiring Diagrams Caution Do not connect current loops in a DAC that is set to voltage mode The loop supply can destroy the DAC...

Страница 20: ...tive Accuracy 1 LSB max LSB typical Diff Linearity LSB integral non linearity Monotonicity 16 bits over operating temp Settle time 5 sec to and to scale to 2 LSB Digital I O Lines 16 Ports A and B Log...

Страница 21: ...Manual PCIe DA16 6 21 Environmental Operating Temp 0 to 70 C Storage Temp 55 to 150 C Humidity 5 to 95 w o condensation Length 6 6 168 mm long...

Страница 22: ...anual or just want to give us some feedback please email us at manuals accesio com Please detail any errors you find and include your mailing address so that we can send you any manual updates 10623 R...

Отзывы: