Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing a series of codes to parallel port LPT1

Currently i'm using Labview version 5 to write a program which sets the individual pins on my LPT1, which i'm sucessful in. However, I notice that after writing an ascii to Serial Port Write.vi, it still doesnt sets the parallel port. It is only when i include close serial driver.vi after writing the string then the respective output is set.
In my application, i need to send many ascii within a very short time frame, currently, using the above method, for 40 ascii characters that i write into the parallel port, it took the computer about 2 seconds to finish (which is too slow). How do i improve the performance of my application?
0 Kudos
Message 1 of 3
(3,504 Views)
Haah,

Try using 'Out Port.vi' instead of the serial port write vi. This vi is located under Advanced>>Port I/O of the functions palette. It is what i'm familiar with when parallel port reading and writing is done. The base address would be 0x378.

Jared
0 Kudos
Message 2 of 3
(3,504 Views)
Jared,
I tried using Out Port.vi but when i key in 378 to the register address and key in the number for the value control and run the vi just for testing purposes, it gives a dialog "Capability not supported. VI 'Out Port.vi' was stopped at Code Interface Node 0x1BC of subVI 'Out Port.vi' . I do not have the advance analysis package and i wonder if it's that is the root of the problem for the mentioned, or have i misintepreted 0x378.
Thanx for your attention.
0 Kudos
Message 3 of 3
(3,504 Views)