X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: BobK User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: GPIB and DJGPP References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 42 Message-ID: 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 , 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. >