Before my application is executed, the FASTCOMM 422/2-PCI card has the RTS line defaulted to high (+5v).
When I run my application and executes the line containing OpenComConfig() function call, it sets the RTS line to low (0v).
When I exit my application, it returns the RTS line back to defaulted high (+5V).
My hardware power is connected to the RTS line. When the RTS line is set to +5v, the circuitry turns on a 28V power supply. When the RTS line is set to -5v, it turns off to 0V.
I need to control the RTS line to be high or low to control power on/off sequencing, and default it to OFF (-5v).
When no application is running, the RTS line is set to high (+5V).
After I call the SetComConfig() or SetCom(), the RTS line is set to low (0V).
After I call the ComSetEscape(CLRRTS) call the RTS line is set to ON (+5V), and the ComSetEscape(SETRTS) call, the RTS line is set to OFF (0V).
After I exit out of my application, the RTS line is set to high (+5V) - the default.
Question: is there a way to set the default for RTS line to low (0V) before the SetComConfig() is called?