08-28-2014 09:19 PM
Hi Everyone,
I am trying to read data from the parallel port with VISA.
The basics: I'm using a PC running Windows 7, with LabVIEW 2010 (SP1). NI-MAX shows that I have NI-VISA 4.6. I have checked the parallel port in the BIOS and it is set to ECP, which seems (from previous posts) to be the correct setting .
MAX shows the parallel port with the VISA alias "LPT1", and says the device is working properly. However, when I use the VISA test panel in MAX to read from LPT1 it returns the error code BFFF0015.
A simple VI in LV 2010 that calls VISA Read with "LPT1" (or "ASRL10") as the resource name also fails, returning the error code BFFF0072.
I've done this in the past with the "In Port" and "Out Port" functions, but these are no longer available.
Thanks for your advice, and best regards,
Geoff
08-29-2014 07:27 AM
Googling "labview read parallel port" resulted in http://digital.ni.com/public.nsf/allkb/B937AC4D8664E37886257206000551CB
08-31-2014 07:41 PM
Thanks nyc; I read the page recently, but didn't find it helpful for my issue.
geoffreyh
08-31-2014 08:22 PM
08-31-2014 09:39 PM
Thanks Dennis. I can't use a basic I/O device--the software is to run in a neuro-imaging facility in a medical center, and they don't allow 'foreign' devices. I will have to use a pulse that comes through a 25-pin parallel port plug. Is there a way to configure a Call Library function in LabVIEW 2010/Windows 7 to read the prallel port?
Rgegards,
geoffreyh
09-01-2014 12:19 AM
09-02-2014 02:10 PM
Hi,
I've had success using some free shareware called from Driver Lynx called DLPortIO with some C++ applications.
You sould be able to call the DLL from LabVIEW.
This link might help
Good luck,
Curt
09-02-2014 07:35 PM
hi Curt-- thanks for the pointer; much appreciated.
geoff