08-26-2019 08:42 PM
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
08-27-2019 12:24 AM
08-27-2019 01:09 AM
08-27-2019 05:07 AM - edited 08-27-2019 05:07 AM
@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.
09-04-2019 07:39 PM
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?
09-04-2019 07:40 PM
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.
09-04-2019 07:59 PM
A digital output module?
09-05-2019 07:21 AM
@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.
09-05-2019 12:36 PM
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.
09-05-2019 01:30 PM
What is wrong with a USB 6501 or heck even a NI 6008,
Just drive the 8 DIO with DAQmx!