LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read serial port pin +

Solved!
Go to solution

Hello!
Ive a question about serial port. I dont wanna do any communication on the port. I would like to wire directly an instrument (later more), to the serial connector pin #2. On the pin i need to read impulses. Am i able to read only the serial port pin, which is active? I know, i can do this on paralelle port. With port in. VI i give the address of the port, i check the for example D0 pin, and the result i can indicate on a led indicator. I want to do the same on serial port, because later the target pc will not ve parallel port. Is it possible? Can you give any starting instruction?
Thank you for your help!
M. Gabor

Gabor M.
CLA
0 Kudos
Message 1 of 4
(2,335 Views)
Solution
Accepted by topic author MGabor

You can read the high/low state of some of the other lines, such as DTR, RTS, etc. There is an example that ships with LabVIEW. Open the Example Finder (Help -> Find Examples) and look for the example "Troubleshooting Serial Line Monitor" (just search for "serial").

 

While this may be considered a poor man's digital I/O interface, depending on what you are doing, you may be better off with a "real" digitial I/O interface.

0 Kudos
Message 2 of 4
(2,330 Views)

In addition to what has been posted the nominal voltages for an RS-232 line are +3 to +15 V for logic zero and -3 to -15 V for logic one.  Except for other serial devices almost nothing uses these voltages.

 

I agree with smercurio_fc that a real digital I/O device may be a better choice.

 

Lynn

0 Kudos
Message 3 of 4
(2,325 Views)

Thank you.

I was blind a little...its only test phase of the project, but later yes... on the target we want to interface the device via digital I/O port. Again, thank you for your answers!

Gabor M.
CLA
0 Kudos
Message 4 of 4
(2,320 Views)