Question Locked

Parallel to USB

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I used the ACK signal on the parallel port to count pulses. Because some new laptops do not have parallel ports, I would like to switch to USB. I've considered using a serial communications device & driver.

Is this a good idea? If so, is there a similar serial interrupt that I could use?

7 replies

by thechas

Depending on the source of the pulses and what you need to do with the data, give Dataq a try.

http://www.dataq.com/

They have a number of low cost serial and USB data acquisition products that should work for you.

Chas

by rr ggg

These are approx. 5 volt pulses from a distance sensor. My software has to monitor the current pulse count for establishing the current mileage (real-time). The ACK signal from the parallel port causes an interrupt which my software currently counts. Can this be accomplished with Dataq hardware and drivers?

by thechas

Whether you use a USB to parallel port adapter, or a solution from a company like Dataq, the odds are that you will need to make some changes to your code.

I work in avionics testing, and we use data acquisition systems all the time to capture repetitive and sporadic pulses. Most of what we do requires much more involved systems than Dataq offers.

Since the USB to parallel adapter creates a virtual parallel port, you will not have the hardware interrupt that you have with a physical port.

The only concern I would have with the USB to parallel adapter is that the address used for the virtual ACK signal might not be static. That is, each time, and for every system, when you plug in the adapter, how the virtual port is implemented may vary.

Chas

by rr ggg

Thanks for your comments, they are right on.

The application is written in Delphi and I have used Assembly Code in the past within Delphi. So I can make the changes. But you hit upon my concerns with the virtual ports. In your avionics systems, do you use USB ports for the data acquisition? How do you count events?

I monitor other serial devices also, such as GPS units. I assume there will be a similar problem there as well, as far as which Comm is connected to which device.

by thechas

For the most part, we use PCI bus data acquisition cards. We also use GPIB, PXI and VXI instruments.

These all have stable addresses and resources.

The USB devices we have used so far, are digital I/O ports. The driver software takes care of device addressing.

Our typical test stations are 19" instrument racks loaded with instruments and interfaces. Once assembled, they usually are left alone for the product life.

The only problem we tend to run into is similar to what you have. We just can't buy parts to build new stations for older products. Nearly all of the instrumentation supplies have stopped making ISA cards. The cost of new code to work with a modern computer and instruments often exceeds the value of additional test capacity.

Overall, I think the Dataq style system will be the easiest solution to implement. With the least unforeseen issues.

Chas

by acceph

hi,,
i have a problem with my comp,, there is no LPT,, so i decided to buy USB 2 DB25F Converter,, but the addr is different, how to change the USB device addr become 378h ?? (like LPT1),,
would you please help me,,?
'coz my project only can access on addr 378h

thank's in advance,,

Regards

This discussion is closed to new replies.