OOPS: I just re-read your post and noticed the following: i can share the same port under running 2 individual program without affect each other.
What you can do if you are running two seperate VI's that need to communicate with the one parallel port is to create a sub-vi that will be called by both. The sub-vi would take care of the actual transactions to the parallel port. You would need to read the status (bits) of the port to know what pattern you can write to it before actually doing so. Additionally, you may need to implement a semaphore to prevent the other program from accessing the port while the first one is doing a transaction. An Action Engine may be a good approach to implement the solution.
R
PS: I will leave the original reply although it may not be helpful.. But contains good info..
Original reply:
Yes it is possible to control a single bit, because I had to implement something similar to your project back in 2003..
You didn't mention that you were familiar with the Parallel Port and LabVIEW, so you may want to have a look at the parallel port examples.
Open LV, Under "Help", select "Find Examples", and do a search under parallel (search tab & enter "parallel").You will find 2 examples (maybe you already did this..)1. Parallel Port Additional Data Register2. Parallel Port Read & Write Loop.Run either one. You should be able to set and read the port. There is a description in the example how to do this. Look at the "LEDs".If you look at the first example, under the "IO connector Status" tab, you will find the D-sub pinout. If you run it, it will give you the present status of your pins.They recommend using the Standard mode (SPP) setting in your PC's BIOS. If you run the 2nd example, you can write & readback your parallel port. Try this FIRST before attempting to communicate with your relays. The examples can help to determine which bits to read and write so that only one bit gets affected when setting the relay.
Hope this helps,
R
Message Edited by JoeLabView on 08-11-2008 08:28 AM