From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

pc-dio-96 PnP in DOS

Hi,

We use for our application 4 DIO-96 boards for communication between 2 computers (LAN was not possible due to too long pending for data waiting, windows CSocket implementation imperfection etc etc, so even on GBit network for our real time application it was not acceptable, so PC-DIO-96 makes the job just perfect): on windows side we use the PCI-DIO-96 boards with custom driver software for remapping the physical memory base address to linear. On the DOS side we use simple outp and inp for configuration and data exchange. So far so good. In windows we use visual studio 2008 c++, and Memacc library for PCI memory remappinbg. On DOS side, we use DJGPP. DOS is a real time application and requires ultra fast data exchange with Windows. The problem arrises in the following: We use in DOS ISA PC-DIO-96/PnP boards. the DOS system was also tested under windows, by the use of appropriate library to write the ports under vista (We used NTPort library). So, a simple console application in windows works just fine for our ISA-PC-DIO-96 boards. When turning into pure DOS, we have the following problem with our ISA boards. One boared may not be detected by the system. First one works fine (its address is 0x100 which is the same also in windows test) and all configurations, handshaking, data reading/writing etc works just fine in DOS with DJGPP.The second one, having 0x140 in windows (Assigned by the system, and also we assume by BIOS on boot, since the settings were that the address should be assigned by the bios) may not be recognized in DOS. It seems that the address is  not 0x140 as it was in windows. So, practically, not knowing the address we are not in a position to do anything. Is there any "trick" so we may see what is the address of our ISA PC-DIO-96/PnP boards in pure DOS? It is funny how the one having 0x100 works perfect. It is maybe the default address given by the bios/or the board, so it works just fine. Any help is appreciated. Also advice on max cable length (we use 50 pin ribbon terminated on terminal block from both sides) is appreciated. Currently we have 3m length. Somehow I feel that we should go to even shorter cable length. 

Thanks in advance, and we appreciate any help

0 Kudos
Message 1 of 1
(3,625 Views)