03-22-2009 11:43 AM
Hi all,
I have bulit a photo-senors to read the orgin of a motor, when the senors isn't at the orgin it gives a voltage of 5 and at the orgin it is 0 volts. This information travels throught the parallel port and i want to read it on labview (reading from port 2). The code below is an example that i tried, i was trying to read from port 2.
03-22-2009 11:59 AM
What is your issue? Also, what do you mean by reading from "port 2"? Have you taken a look at the parallel port read/write VI that ships with LabVIEW? Open the Example Finder (Help -> Find Examples) and search for LabVIEW.
Also, have you verified that you parallel port is 5V tolerant? Many computer nowadays have 3V parallel ports.
03-22-2009 12:24 PM
03-22-2009 12:47 PM - edited 03-22-2009 12:49 PM
03-22-2009 01:32 PM
03-22-2009 01:34 PM
03-22-2009 01:45 PM
03-22-2009 02:33 PM
03-22-2009 08:07 PM
Are you perhaps asking how to specifically get the value of bit 2? If so, then use Index Array to get the value from your Boolean array.
Have you gone through the LabVIEW tutorials? To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
03-23-2009 02:25 AM
Hi Ak Star,
Did u configured your parallel port as SPP(Standard parallel port) . If u connected your input to the pin2 then u need to read the staus of data bit 0. what is the output u getting after u run your programme,Its always showing high\low? asking how to specifically get the value of bit 0? If so, then use Index Array to get the value from your Boolean array(as smercurio_fc said).
smercurio_fc wrote
Also, have you verified that you parallel port is 5V tolerant? Many computer nowadays have 3V parallel ports.
I like to know, what is 5V tolerant and 3V tolerant. do u mentioned TTL as 5V and CMOS as 3V or something else, please forward the infos or related links.