07-07-2009 08:06 AM
I have connected the board and opened the exemple in labview! I RUN it! When I press START (manual start on the board) the number 17 pin turns off and then back on! so ...the exemple works...as the number 17 pin is indeed the MANUAL START PIN.
The sensors are ment to be read on the pins 1, 14 and 16!
You were talking about extractig the line...how do I do that?
07-07-2009 08:44 AM
07-07-2009 09:01 AM
snuk wrote:[...] opened the exemple [...]
I think that with "the example", you are referring to Parallel Port Read and Write Loop.vi. If you look into the blockdiagram, you will see "port in" and "port out"; those are the functions to read/write data to the parallel port. Just as Dennis wrote, you have to mask all lines to retrieve the line(s) you are interested in....
Still, each line will only return 0 or 1 (LOW or HIGH).....
Norbert
07-07-2009 09:10 AM
Hm, ok, now i think what you are up to: Port In, Port Out do only address data lines of the parallel port. Pin 1, 14 and 16 are control lines and therefore do not show up in the data read.
Pin No (DB25) Pin No (36 pin) Signal name Direction Register - bit Inverted
1 1 nStrobe In/Out Control-0 Yes
14 14 Linefeed In/Out Control-1 Yes
16 31 nInitialize In/Out Control-2 No
There are no functions predefined in LV to access those lines. You can write your own part of software to do this. You can find some introduction to this here.
hope this helps,
Norbert
07-07-2009 09:25 AM - edited 07-07-2009 09:26 AM
Woha, again, i was to fast..... reading first, writing then would be better.....
So if you increment the port address twice, you will be able to read the control lines using "Port In". Just have to mask then.....
hope this helps,
Norbert