delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | BobK <rkramlSpamMeNot AT verizon DOT net> |
User-Agent: | Thunderbird 2.0.0.12 (Windows/20080213) |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: GPIB and DJGPP |
References: | <c9PGj.4332$N_5 DOT 4267 AT trnddc05> <MPG DOT 22558c7cb914c13c989680 AT shawnews DOT ca DOT shawcable DOT net> |
In-Reply-To: | <MPG.22558c7cb914c13c989680@shawnews.ca.shawcable.net> |
Lines: | 42 |
Message-ID: | <dh_Gj.4585$N_5.2388@trnddc05> |
Date: | Fri, 28 Mar 2008 04:15:05 GMT |
NNTP-Posting-Host: | 71.107.0.105 |
X-Complaints-To: | abuse AT verizon DOT net |
X-Trace: | trnddc05 1206677705 71.107.0.105 (Fri, 28 Mar 2008 00:15:05 EDT) |
NNTP-Posting-Date: | Fri, 28 Mar 2008 00:15:05 EDT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Thanks Richard, These functions allow me to read and write to the registers but it still is unclear to me exactly what sequences to use and how exactly to configure the card for simple PIO on the reads and writes (as opposed to teh DMA/IRQ Far pointer stuff that exists for DOS16). The existing ibcmd function uses PIO so I tried using a similar sequence with ibwrite() (leaving off the ATN signaling stuff) to no avail. As a matter of fact , I couldn't even get ibcmd() to work very well. Anyway the good news is that I seem to have the newer PCI-GPIB card up and running using NI's DDK package with DJGPP. Found myself hacking into areas that weren't intended to be modded to get the DPMI mapped _farpeek/poke() functions implemented. I had avoided it because it is quite a hefty thing. By itself, it compiles to over 1.1MB of DJGPP obecjt code (with -g). -Bob richard wrote: > In article <c9PGj.4332$N_5 DOT 4267 AT trnddc05>, rkramlSpamMeNot AT verizon DOT net > says... >> Help! >> >> Anybody out there make any National Instruments GPIB cards (PCI or ISA) work >> with DJGPP? I need to get a simple communication going between such a board and >> several instruments. No big speed or latency requirements. Simple I/O is fine. >> No DMA or interrupts needed. >> >> I have messed with the older NI ESP488 libraries as well as the newer monster >> they call the GPIB NI-DDK. I have yet to get either of these to work. The DDK >> is so abstracted it is very hard to follow (for me at least). the ESP488 is >> straightforward withe the exception that it is for 16-bit DOS and uses DMA and >> interrupts. >> >> -Bob >> > > Check out the inport and outport functions. >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |