LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling pins on the parallel port

Hey
 
I'm writing a program in  labview to controll a matrix card with labview. For that I'll use the parallel port. On  the datasheet it says  that only one off the pins shall send data serial into the card, and others are pins for update. clk etc.
So I need help on how to configure the parallel port to  send different  things to the dedicated pins.
 
jonas
0 Kudos
Message 1 of 5
(4,295 Views)
Keep in mind that the parallel port was not designed to be used as a digital I/O card, so depending on your application you may run into limitations. That said, there's examples that ship with LabVIEW that show you how to use the parallel port. You can also read this: Using the Parallel Port in LabVIEW. And, uou can also check the LabVIEW FAQ on parallel ports at http://forums.lavausergroup.org/index.php?showforum=43.
0 Kudos
Message 2 of 5
(4,269 Views)

Thanks will take a look at this.

It is meant to use the parallell port for serial communicating with the card, even stands in the datasheet for it and a following cable for it.. My prob is to controll each pin independently,

0 Kudos
Message 3 of 5
(4,258 Views)

Sounds similiar to this http://forums.ni.com/ni/board/message?board.id=170&message.id=160660

Hope this helps
 
David
0 Kudos
Message 4 of 5
(4,251 Views)

Hi Jonas,

your task is a typical  SPI - communication ( like it is used for many chips - A/D  or D/A- converters; µC's etc. )

Find attached a SPI-example-program (LV7.1.1), ( 16 Bit in this case )  - there you will see the mechanism, how to

serialize Data @ LPT - Port and how a clock and /CS signals are added.

I think with all my comments inside the Diagram you should understand, how it works.

Switch the yellow light bulb "ON" and step through the program in Debug mode - every single clock and

Data change can be observed  .............. or use a scope in "loop mode".

If there are still open questions - let me know.

Regards

Werner

P.S. Next time you should first simply type "parallel port" or "SPI"  in search line.... on this forum you will

find a lot of threads about this issue........

Message 5 of 5
(4,242 Views)