Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

I get timeout Error -1073807339 when I try to run my parallel port application.

I have downloaded and installed the NI-VISA runtime engine have checked the box to include the parallel port functions in the build application process. I am still getting an error that says the port is timing out when I try to run it. Any ideas?
0 Kudos
Message 1 of 6
(4,020 Views)
So if I understand correctly your parallel port works with your application in the development environment (with full NI-VISA) but fails when run as an executable with the VISA runtime engine (presumably on another machine). If I failed to understand the setup just let me know!

Now this particular error is often associated with a timeout problem. This error crops up regularly for serial applications. For the parallel port are you using the In Port and Out Port VIs? Also if you run your VI (non-executable) directly on that target machine does it work properly? There is a great shipping example called Parallel Port Read and Write Loop.vi that you could try as well to see if that worked (to establish basic communication with the port). If you could also describe your application structure that would help as well. Let me know and we'll see what we can do.

Craig H.
NI Applications Engineering
Message 2 of 6
(4,013 Views)
Yes, the program is functioning on the development PC that has LabVIEW installed. I am using the Parallel write VI to control digital output lines. I don't have LabVIEW installed on my target computer because I'm trying to test that the executable will function on a different system where the development tools would not be available. Peridically the digital output changes and is written to the parallel port. When the status of the VISA write shows error, I break out of the main while loop.

I can check into the shipping parallel port write loop.vi if I can find it. It's not a big deal to modify it if it will work on the target computer as an application. Thanks, and let me know if you have any other ideas of what to try.
0 Kudos
Message 3 of 6
(4,006 Views)
The parallel port example that I was referring to can be found by opening the NI Example Finder within LabVIEW (Help->Find Examples). Then you can search for 'parallel' those examples will show up.

Craig H.
NI Applications Engineering
0 Kudos
Message 4 of 6
(3,996 Views)
Well, I've changed my program to use the Out Port32.VI subVI and it is still working fine in the development executable. However, I still can't get the compiled version to work on the target computer. After compiling the top level VI, Out Port32.VI and its .dll, I load it onto the target computer and it stops running immedeatly and lists error 25: Out Port32.VI

I think it can't find the SubVI code that it needs, but I'm sure that it is on the list of VIs to compile in the Build Application menu. I'm stumped on what to do now. How can I make sure the executable can find the code it needs?
0 Kudos
Message 5 of 6
(3,978 Views)
Lovseth,

It sounds like you may have tried this but when creating the installer we need to make sure and check the 'Port I/O Support' box under the Advanced button. Installing the CVI Runtime engine may also work if we only want to create the executable but I would highly recommend creating the installer and checking that 'Port I/O Support' box. What version of LabVIEW are you running? Let me know if this helps.

Craig H.
NI Applications Engineering
0 Kudos
Message 6 of 6
(3,956 Views)