02-01-2008 03:23 PM
Hi Ziv,
The 378 is 0x378 which is address of the parallel port. The non inverted just means that the status indicators display real logic. You can connect the LEDs as you were connecting before, just invert the logic levels in your code.
-Jaidev
02-03-2008 10:12 PM
Hello Jaidev,
Thank you for the reply.
If I want the output as this table, i need to key in what number? Got any printer port table can reference?
| INPUT | PRINTER PORT OUTPUT (Pin 2 ~ Pin 9) | |||||||
| REGISTER DATA READ | DO | D1 | D2 | D3 | D4 | D5 | D6 | D7 |
| 378 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| ??? | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| ??? | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| ??? | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| ??? | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| ??? | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| ??? | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| ??? | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| ??? | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02-04-2008 03:08 PM
Hi Ziv,
If I understand this right, you need to output a shifting '1' on your parallel port. Like the first output be "0b 10000000" followed by "0b 01000000" and so on. All you need to do is write these binary values to the address "0x378".
You can also directly enter binary values using a numeric control. Right-click on the control and click Properties. In the display format tab, you have an option of selecting the format. Select Binary and you can directly enter binary numbers in your control.
Jaidev
02-04-2008 06:46 PM
Hello Jaidev,
Thank you for the reply & helping.
Ziv ![]()
02-05-2008 11:52 AM
You're welcome, Ziv!
-Jaidev
03-03-2008 12:07 AM
Hello Jaidev,
Sorry disturb you again.
I mean direct connect the LED as my output. The USB ports have 4 wires (show as attachment), then LED should connect to which wire? USB port total can output how many difference results?
The USB port needs to do any
setting??
Got any example can send to me?
Thanks you a lot....
ziv
03-04-2008 09:34 AM
Hi Ziv,
Unfortunately, there is no way to erite to the USB port directly. USB ports have a windows driver that you can possibly access through LabVIEW. But this is not trivial. There are some tools available in the market that expose the USB port as a COM port. You might want to try those.
Thank You,
Jaidev
03-04-2008 06:54 PM
Jaidev,
Thank you for the reply & helping.
Ziv
06-15-2008 10:42 PM
Dear Jaidev,
I’m sorry I still have some confusing of control the printer port.
As your information, u said change the Binary and can directly enter binary numbers in your control, but after I change it to Binary, the printer port result not same as my input. (Refer the attachment file)
Can teach me how to modify it? Or have any control printer port vi can send to me?
06-16-2008 04:17 PM - edited 06-16-2008 04:17 PM