AD/DA CARD

2002/11/13

Q:Following your message, I talked with Mr. Ozdemir and we purchased two units of PCI 12bit

ADDA Boards to be used for educational purposes within the Mechatronics Laboratory.

Our first goal is to integrate the PCI board with MATLAB and SIMULINK via developing a real

time device driver. That is, I am currently trying to develop a driver for your board specific to

MATLAB/SIMULINK.

I would be grateful if you can provide the following information in advance:

1. I installed the PCI Board and checked the PCI addresses. The board is IO Range and Memory

Range Mapped. The IO Range has address space for BAR1 and BAR3. To which BAR does

the Base Address correspond, BAR1 or BAR3?

2. What is the Memory Range used for? (In your reference booklet it is written that the PCI board

is IO Range prorammable.)

3. I tried to check the DA outputs 1 and 2 and started to write to (base address + 2) and (Base

Address + 4) respectively, but I could not see any output from the DA channels. What can be

the reason for this?

4. In our board the AD526 socket is empty (There is no chip). Is this OK?

A:1.BAR3. Please download the sample code as follow:

http://www.pciadda.com/download.htm

2.For PCI chip factory configuration only, no need to access

3.Please download the sample progrom as follow:

http://www.pciadda.com/download.htm

4.The empty is for Bipolar (-5V - +5V) usage only. It's optional. No need to use this chip if single

polar is used.

2002/10/17

Q:I cannot possibly get to connect to and download the files ftp://ftps.decision.com.tw/ADDA/DOS/12.zip

or

ftp://ftps.decision.com.tw/ADDA/WIN95_98_Me/DII_V189.exe

The DNS reports the address ftps.decision.com.tw as "unable to resolve". On the other hand, I can connect and log in as anonymous user to ftp.decision.com.tw (without the s in ftps), but I cannot find any /ADDR/ directory or any of the files you kindly gave us the links to.

A:Please download the driver from our FTP site as follow:

DOS Driver -- http://202.39.29.29/data/12.zip

WIN98 Driver -- http://www.pciadda.com/download.htm

2002/09/04

Q:I have received the PCI 12 bits AD/DA card and I am very glad. However I donot find the drivers for WIN 98/WIN Me in the supplied CD. Please can you say me how can I obtain it. When I made the propaganda for this AD/DA card I told my clients that the card ran with that Operation Systems.

A:Please download the driver from our FTP site as follows:

http://www.pciadda.com/download.htm


2002/05/29

QI am trying to program a Super 14bits AD\DA Card in Visual Basic 5.0 Environment and I am not able to include "IOLIB.DLL" in my project. When I try "Project | References : Add", visual basic cannot read this file. Perhaps I have an old version of the file "IOLIB.DLL" I don't know. I wish that you could help me by sending me more information about programming the card in a visual environment.

APlease link our web site to download the latest driver for WIN98.

http://www.decision.com.tw/downloads2.htm

You can reference Dii.pdf Chapter 9.

2002/05/10

Qi'm working on a super 14 bits a/d d/a card

and i'd like some  information about the analoog to digital convertion loop because it's not so clear in the manual  

-what 's  " port 12"

-and  why "port  9 "is not used "

-and why the convertion loop is from 1 to 8 Knowing that the high byte is 6 bits only. 

I'll be so thankfull if u help me with some information.

AThe third line “ A=INP(port + 12)” is to input data from Port9.

The “port” is the I/O address 270 or 260. The Port9’s I/O address is 27C or 26C.

The I/O address is a hexadecimal number so “C” is equal “12”.

The sixth line “A=INP(port + 8)” is error. It need to become “A=INP(port + 10)”.

Because the Port8’s I/O address is 27A or 26A.

Thank you to notify us the question, we will modify the manual.

2002/04/26

QI have a problem with accessing the Super 14-bit AD/DA device using the PDK DII 1.89. I have contacted with NT-ware, but they answered that the problem is probably hardware. I think this is impossible because the same device wiorks properly when it is accesses by DOS executable linked with the DOS library (io.lib).

Device: Super 14-bit AD/DA

Platform: Windows 95

Program language: MS Visual C++ or Borland C++ Builder

PDK: DII 1.89

Description: The demo program included in the DII-PDK does not recognize correctly the settings of the device (Super 14-bit AD/DA): the device is set to single ended, +/- 5 V (bipolar) for AD channels and +/- 5 V (bipolar) for DA, but the program reports: 0-10 volts (unipolar) for both AD and DA. Possibly the AD channels are recognized as differential, because only 8 channels are displyed on the dialog. Also the program always reports 10 V at the all 8 input channels displayed independently from the real voltage applyed on the inputs, while the output channel is always measured 0 V independently of the value specified by the program. Our home-made program using the DII (build with Borland C++ builder 4.0) has exactly the same behavior.

Additional remarks:

1) The device is installed without problems, and the base address is correctly specified in the device manager (there are no conflicts).

2) The same device works correctly when it is accessed by a DOS- program build by using the DOS library ("io.lib" and "io.h" files) provided with the hardware device. Answer from NT-ware:

I'm afraid, we are only providing the software for accessing the device under Windows. The problem you are describing seems hardwar related, maybe in the way the device is connected. Please contact Decision Computer Int'l for this, at  www.decisison.com.tw With

I hope you can help me with advice

APlease use the DII1.89 to develop your program.

Please see the attached file it is a detail document.

The PDK is just Microsoft Standard Active Components.

Now please download the DII1.89 from our web site.

http://www.decision.com.tw/downloads2.htm

2002/04/03

QWhat is the COMCTL32.OCX and COMCT232.OCX?

APlease go into the option “Components” to select “Microsoft Windows Commom Controls 5.0(SP2)” and “Microsoft Windows Common Controls-2.5.0(SP2).

2002/04/032002/04/02

QAll my tests prior to today had been dealing with outputting a voltage and checking it with a simple multimeter. I tried for the first time today to actually input a voltage into channel 0, and was unable to get any reading. I then tried every other channel with no luck. At this point I went back to the test program that came with the card and drivers, and found that they also were only able to output a voltage, and the input readings did not work. Please let me know if there is perhaps something I am overlooking.

ARegarding to your email. The problem is the VR1 setting of the card is not suit your PC. Please run the 12.exe under MS-DOS. Then lightly adjust the VR1 on the 12Bit AD/DA card to setting the voltage of 17PIN on chip 7541, it need as near as 9DCV.

QAll my tests prior to today had been dealing with outputting a voltage and checking it with a simple multimeter. I tried for the first time today to actually input a voltage into channel 0, and was unable to get any reading. I then tried every other channel with no luck. At this point I went back to the test program that came with the card and drivers, and found that they also were only able to output a voltage, and the input readings did not work. Please let me know if there is perhaps something I am overlooking.

ARegarding to your email. The problem is the VR1 setting of the card is not suit your PC. Please run the 12.exe under MS-DOS. Then lightly adjust the VR1 on the 12Bit AD/DA card to setting the voltage of 17PIN on chip 7541, it need as near as 9DCV.

http://www.pciadda.com/download.htm/12.exe

2002/03/26

QI have been trying to interface with your 12bit AD/DA card using Visual Basic 6.0 on a Windows 98 operating system, but for some reason I am unable to talk to the Iolib.dll file.

AThe Iolib.dll just support to WIN3.1/WIN95, it didn’t use on WIN98.

2002/02/22

QI have some difficulties to use my 12 bit ADDA card under Delphi 6. I read the documentation about how to install OCX/ActiveX control but it doesn’t work properly. I’m sure you have more documentation about Delphi and Decision 12 bit ADDA and you will be very kind to send it to me.

For your information, I installed DII driver and run de DIIDemo: it works! so I think the card and all drivers are installed properly.

The only and unique problem is to import the OCX under Delphi.

I think the first thing to do is to run the DIIDemo under Delphi. So I’ve tried to follow what’s written in the help text file and here after the result:

DII Demo – Delphi 4

Prerequisites.

  1. must have Borland Delphi 4 installed -> I have Delphi 6
  2. must have the DII installed and should have configured at least one adapter -> OK.. going to control panel and then to Decision Industrial Interface, I can see “Device 0(“12 bit AD/” I/O Base:2F8)..
  3. must import the ActiveX Control DiiOcx first. You would normally rebuild the .dpk Delphi Package  -> so, here is the procedure I’ve done:

Under Delphi 6, going to “Component” then to “Import ActiveX Control” -> Add.. c:\winnt\system32\DiiOCX.ocx -> install

After this, Delphi says that the DiiOCXli_tlb.pas already exists (surely because it’s not the first time I’ve tried to do the job!) and asks to replace it -> I say Yes..  Then into existing package “dclusr.dpk” -> OK

What to do next? a new window open and I tried to compile de file but Delphi opened the DiiOCXlib_TLB.pas and a red line appeared. We can read: errors like “Undeclared Identifier: Get_ChannelGain” and so on….

So, what to do to solve the problem and to make working the DiiDemo?

AWe have already checked the 12bit AD/DA Card and installed the DII on Windows 2000. The 12bit AD/DA card works OK on our DII sample program using our loop back test.

 We tried to install DIIOCX.OCX on Delphi 6, and we have the same problem with you.

But when we tried to install our DIIOCX.OCX on DELPHI5, it works OK and no problem at all.

Please update your Delphi6 in the Borland website below:

http://community.borland.com/article/0,1410,28405,00.html

There is a patch for Delphi 6, and you need that patch to correct the bugs of Delphi 6.  The patch is Delphi 6.02

For the meantime, you can use Delphi 5 because our DIIOCX works OK.

There is no problem with our DIIOCX driver. The problem is a bug in Delphi 6.

So, please you need to update your Delphi 6. 

2002/02/01

QI have purchase a 12 bit a/d box A12prad/10b.
I am having a problem with this unit if the power is applied BEFORE windows
is loaded.
(Windows 98 second edition interrogates the printer port as it boots).
Using the decision demo software to test the board, all channels appear to
have
a gain of 8 times. i.e. from 0 to 2.5 v = 0 to 4096 counts, 2.5 to 5v = 0 to
4096 counts, also all channels appear to have the same count even when only
one channel is connected.
The software I have written performs exactly the same.
If I power up the converter after windows has loaded, it works fine. ie 0 to
10 v = 0 to 4096 counts.
As there are no schematics provided, how do I reset the converter via software.

AIf you turn on your computer and POCKET A/D BOX together,

it will be interfere. So you may be according our procedure.

 1.         Turn off all power of your computer and all peripheral devices before installing your pocket A/D.

 2.         Connect pocket A/D to printer port. ( or connect expansion cable to printer port and expansion bus kit, then insert pocket A/D to the connector of expansion bus kit. Please see the expansion bus kit port of this manual).

 3.         Plug in power adapter to pocket A/D

 4.         Turn on the computer and power adapter.