I don't have a parallel port on my laptop, so I bought a parallel to USB converter cable. Now I'm tasked with writing code to send the appropriate bits to the board to open up the relays.
I really don't know where to start-
I'm not certain how to write code to talk to the USB port, but once I figure that out I assume I just have to send the write bits after that.
Any help is appreciated. I'm using Windows Vista Home Basic 32 bit and this is the code they gave me to talk to the USB port-
Ps - that program you have shown us is really for if you are running an old computer under DOS - It seems that you are using Windows as you have bought a USB item.
But first can you provide an answer about whether the usb converter shows up as a LPT port?
(Writing to an LPT port is easy - writing to USB is somewhat more involved);
here is some interesting technical news: Restrictions on USB to Parallel converter cables
You need to buy the right product - as most USB to Parallel converters will work with printers only.