04-21-2013 04:42 AM
i want to control arelay with (0 or 1) only one digital output using the usb port of my computer
if any body can help please
04-21-2013 08:45 AM - edited 04-21-2013 08:46 AM
you have asked this before...
try using the parallel port....
Method 1 Using the parallel port for digital output is really rather trivial if working with the Windows API. The main trick is to tie pins 11(Busy) and 12 (Paper Error) to ground. Otherwise, the hardware driver will think the printer it is talking to is busy or experiencing an error and will not output any data. The port will maintain the last value written to it until another value is written or until the computer is powered down. Remember that in LabVIEW all serial communication needs to be sent as a string. Generally we will want to send 8-bit numbers to the port. This will require flattening the data to string so that the binary representation of the data does not change. We can use the Type Cast VI for the purpose; see Figure 2 below.
04-21-2013 01:22 PM
thank you
but iwant to use usb port not parrallel port