LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel Port Comms on a 64-bit Windows 10 machine

I am trying to communicate with a legacy instrument that uses the parallel port. I know that this is not easily done on a 64-bit OS. I searched google and the forums and found some inkling of people who may have succeeded in achieving this. 

 

So, is there any way to use Labview and communicate with a parallel port on a Windows 10 64-bit OS? 

 

Thanks!

A

0 Kudos
Message 1 of 10
(5,234 Views)

Hello,

 

Are you trying to achieve GPIB communication with an instrument. If so it should be possible with the drivers provided by the Manufacturer or NI.

 

 

Thanks & Regards,
Bharath Kumar
GCentral
0 Kudos
Message 2 of 10
(5,183 Views)

Hi Alex,

 

use an USB-to-parallel port converter. They are available similar to USB-to-serial converters…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 10
(5,173 Views)

@AlexAbelson wrote:

I am trying to communicate with a legacy instrument that uses the parallel port. I know that this is not easily done on a 64-bit OS. I searched google and the forums and found some inkling of people who may have succeeded in achieving this. 

 

So, is there any way to use Labview and communicate with a parallel port on a Windows 10 64-bit OS? 


It really depends how the software uses the parallel port. If it simply uses the serial port (yes Microsoft treats both ports as serial port, one is bit serial and the other is byte serial) Windows API or NI-VISA then there should be no problem, or rather you might still have a problem as parallel ports are nowadays pretty uncommon on computers. But here the suggestion from Gerd with an USB converter should work.

 

If the application however uses the parallel port to bit bang data through direct register calls then yes that is gonna be difficult.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 4 of 10
(5,153 Views)

The software sends an 8 bit integer into the parallel port and flips all of the values at once. I think this means it is byte serial. I would like to be able to flip all 8 data pins of the parallel port at the same time, with ~5 ms precision. I believe this signal goes into a multiplexer which then addresses a relay corresponding to the 8 bit integer.  Does that make sense?

0 Kudos
Message 5 of 10
(5,114 Views)

It also doesn’t need to be a parallel port I suppose, I just need some form of parallel communication generated by labview with fast switching speeds.

0 Kudos
Message 6 of 10
(5,113 Views)

A digital output module?

0 Kudos
Message 7 of 10
(5,104 Views)

@RavensFan wrote:

A digital output module?


In order to accommodate the ~5ms requirement, I would say it would need to be either a High Speed DIO or an FPGA board.  Personally, I would be more inclined to go with the FPGA board as it gives me A LOT more control.  cRIO or an sbRIO would be another option (thinking myRIO at the moment).  Or you could even go with an Arduino board and give it instructions through the serial port (thinking LINX or a custom sketch and application).  There are plenty of ways to do this.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 10
(5,078 Views)

Where does that 5ms precision come from? Why and how? If you want to create pulses on the digital port with such a precision then it's going to be problematic, if you want to make sure that all 8 lines change within that time then there is no poblem. So what sort of signal do you need? You mentioned 8 digital lines that all need to be changed at the same time. Why is that? If they all change at the same time you could just as well use a single digital output to control all the 8 channels in parallel.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 9 of 10
(5,056 Views)

What is wrong with a USB 6501 or heck even a NI 6008,

Just drive the 8 DIO with DAQmx!


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 10
(5,041 Views)