LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a USB-to-parallel adapter to communicate with my switch device?

My computer doesn't have a parallel port, so I must use the USB port and a USB-to-parallel adapter to communicate with my switch device. Unfortunately in WindowsXP printer configure that show USB001 Virtual printer for USB. How should I control my USB-to-Parallel converter to send the Pin1 and Pin3 high? How should I decide that I/O address in Labview (traditional LPT1 is 378AH) ?
0 Kudos
Message 1 of 5
(3,853 Views)
Hi Kelvin,
I understand that you want to control pins on your serial port using LabVIEW. Since you are using Windows XP, only LabVIEW version 7.0 will be able to control the pins. The pins can be controlled by modifying the values of the access registers that windows associates with each pin. If you are using LabVIEW 7.0, then the VI's located on the Funtions >> Advanced >> Port I/O palette should help you assign values to the proper pins.
This information can also be found on another discussion forum thread located at the following url:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000438A0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

Thanks for contacting NI, and I hope this helps.

Marcus G.
National Instruments

0 Kudos
Message 2 of 5
(3,853 Views)
Have you tried using the VISA functions to control the parallel port outputs, as described here?:

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CB9CB111EE034080020E74861&p_node=ZONE&p_source=external

I don't know if this will be a complete solution to your problem because that depends on the hardware you want to connect to the parallel port and how it works, but it's probably the easiest way to get started on the LabVIEW side...
0 Kudos
Message 3 of 5
(3,853 Views)
Dear tmh
Thanks for your support. I attempted to control usb to parallel cable via VISA to Access Parallel.llb, but it failed. I think the command translated by usb to parallel converter already, so difficult to control it by I/O address. Could anybody give me advise to solve this problems?
Thanks a lot !
0 Kudos
Message 4 of 5
(3,853 Views)
Hey kelvin,
Did you see the link that I posted earlier? If not, you can read my response above and view the text at the following url:
http://exchange.ni.com/servlet/ ProcessRequest?RHIVEID=101&RPAGEID=135& HOID=506500000008000000438A0000& UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
If that doesn't address your issue, please let me know.

Thanks,
Marcus G.
National Instruments
0 Kudos
Message 5 of 5
(3,853 Views)