LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel port make time stamp

Dear all,
I have a simple circuit (you may assume it is a battery with a LED) and want to create a simple operation history file for the circuit. Basiclly, I need to know when the circuit is on. My idea is to use parallel port and wait for the circuit on (high voltage), then labview will write down when circuit is on in a history file.
My question is how to make parallel port to receive the high & low voltage. Can I use VISA to do that??
thanks
0 Kudos
Message 1 of 7
(3,118 Views)
It's very easy to use the parallel port with VISA.

You can find more information in the following link
Using Visa to Access Parallel Port

There is also another way. You can use the AccessHW.dll in order to get the parallel port first byte.
----------------------------------------------------------------------------------------------
There are 10 kind of persons. Those who understand binaries and the others.
0 Kudos
Message 2 of 7
(3,118 Views)
I have this error message when I run the program. Could you please tell me how i can handle it?

thanks
0 Kudos
Message 3 of 7
(3,118 Views)
In the note I've send it writes that you have to use

a) NI-VISA 1.1 at least
b) Connect 11 & 12 pin into the ground

Check these two things
----------------------------------------------------------------------------------------------
There are 10 kind of persons. Those who understand binaries and the others.
0 Kudos
Message 4 of 7
(3,118 Views)
The simple circuit I plan to make is not control by computer, but I want to create a history file for the simple circuit, so I believe I should not write to the port but read from the port. Could you please tell me what should I do?
0 Kudos
Message 5 of 7
(3,118 Views)
Hello �

If you want to read from the port instead of writing to the port, what you need to do is to replace the VISA write function with a VISA read function. The VISA read function is located in the same subpalette than the VISA write function. The only required terminals for the VISA read function are the VISA resource name (which looks like you already have) and the byte count (or number of bytes to be read).

S Vences
National Instruments
0 Kudos
Message 6 of 7
(3,118 Views)
See the attached vi
----------------------------------------------------------------------------------------------
There are 10 kind of persons. Those who understand binaries and the others.
0 Kudos
Message 7 of 7
(3,118 Views)