LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i us the parallel port of the printer to control a frequenz-generator?

Hello all !
I like to  control with LabVIEW 8 student-version, the Frequenz-generator gadget . For this challenge i like to us the parallel port of the printer. I need for data flow only 2 cable. The frequenz-generator gadget need two signal : Low and High.How  can i  us the parallel port of the printer to control a frequenz-generator gadget? I have us  the VIs-Visa  (Visa-Serial, write, Close ), but i dont no what command i have to write on the Visa-Write so that the Signal can be in the low or high position.
Thanks
0 Kudos
Message 1 of 3
(2,776 Views)
Hi Jeanjac,
 
first, look here:
to get the port numbering. also, be sure not to leave pin unconected, sometimes you might get an error message otherwise (i remember pin11 has to be always connected or so for windows...)
second, just run the test panel in MAX and write something to your device to check if it works.
then in LV, you have to decide to which pin is connected your instrument. in any case you have to address all 8 output pins together! this is a parallel...
if you prefere to use only one pin, then you can use the serial port, with just pin 2 and 3 connected. it would work easier for you, since you address only one bit.
 
Gabriel
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 2 of 3
(2,768 Views)
Hei again
look at the following diagram. will allow you to address specific bit.
 
taken directly from labview code sharing:
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 3 of 3
(2,763 Views)