02-23-2006 08:33 AM
03-09-2006
04:25 AM
- last edited on
04-03-2024
01:29 PM
by
Content Cleaner
The In Port.vi and Out Port.vi are not available under Linux. Maybe it's possible to write a Shared Library in C that provides this functionality and use a call library node to call it but I think it would be much simpler to use a cheap digital I/O device like the USB-6501 for your task.
Best regards,
Jochen Klier
National Instruments Germany
11-05-2012 10:40 AM
There are several solutions for your problem. The most simple is to create a shell script that control the state of the parallel port and call "execute" from LabVIEW.
Using http://parashell.sourceforge.net/ is simple: (http://parashell.sourceforge.net/docs/parallel.txt)
----- How to use the program ----- parashell is a very easy to use program. The program takes two parameters, the Parallel port to send the data to and the data value to send. That value must be integer in decimal format (for example 255). Hexadecimal numbers can also be used, but they must be preceded by 0x (for example 0xFF). The program uses very little error checking to keep it simple. Example how to use parashell. parashell 0x378 0 Set all datapins to low level. parashell 0x378 255 Set all datapins to high level. parashell 0x378 1 Set datapin D0 to high level and all other datapins to low level.