LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

is it posible to do a callback function fron the lpt1 port?

i need to do a callback function from the Lpt1 port.
This function is look like the installComCall Back but for the lpt1
0 Kudos
Message 1 of 2
(2,864 Views)
Parallel port communication is supported by NI-VISA. If you use a resource string of ASRL10::INSTR, that maps to LPT1. See this KB: http://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc10862567a100753500/2b96bc406400309586256aa400508ddb?OpenDocument

There should be a Serial/Visa example for CVI in your VXIPNP\NIVisa\Examples\C\Serial directory. If you change the viOpen function call to open ASRL10::INSTR, then you will be talking to LPT1. You can then use viEnableEvent (in the Visa library) to setup an event. The asyncSRQ.prj example in VISA will give you some idea of how to program the event handling.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,864 Views)