Hello:
Is there a way to tell if an output is open or closed in C#?
Greetings.
Angel
Outputs Open or Close
Moderators: aardvark, davebush, Admin
Re: Outputs Open or Close
Hi,
From the application manual - http://aardvark.eu.com/downloads/docume ... Manual.pdf
The expression (SwitchCloses(n) == SwitchOpens(n)) will always return 0 if the switch is currently closed and 1 if the switch is currently open.
Regards
Dave
From the application manual - http://aardvark.eu.com/downloads/docume ... Manual.pdf
The expression (SwitchCloses(n) == SwitchOpens(n)) will always return 0 if the switch is currently closed and 1 if the switch is currently open.
Regards
Dave
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Re: Outputs Open or Close
Hello:
We refer to IndicatorOn / IndicatorOff
If there is any way to know whether or not you sent something, or what is its current status
Greetings.
Angel.
We refer to IndicatorOn / IndicatorOff
If there is any way to know whether or not you sent something, or what is its current status
Greetings.
Angel.
Re: Outputs Open or Close
I'm sorry i misread your post.
No, I'm afraid there is no way of knowing what you last set an output to. They will be off at the time Paylink powers on, but are retained over an application exit and restart.
Regards
Dave
No, I'm afraid there is no way of knowing what you last set an output to. They will be off at the time Paylink powers on, but are retained over an application exit and restart.
Regards
Dave
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Re: Outputs Open or Close
And the state it is in at each moment, there is no way of knowing, if it is open or closed
Greetings.
Angel.
Greetings.
Angel.
Re: Outputs Open or Close
I'm not sure what your exact question is.
Within a few milliseconds of you calling IndicatorOn the output transistor will be driven, within a few milliseconds of you calling IndicatorOff the drive will stop.
There is no feedback from Paylink to confirm this has happened.
If you have critical output(s) and it is essential that you know that they have activated, and excatly what state they are in, you could connect these output(s) back to the Paylink input(s) as well as to the external equipment.
Paylink inputs are connected to the internal 3V3 via 680 ohm pull ups, so if your external equipment uses a 3V3 pull up or has a high impedance with a threshold below 3V3 there will be no problem with just connecting it.
If your external equipment signal voltage is higher than 3V3 and will supply quite a lot of current, then you should use a schottky diode to make this connection. (Conducting from the input towards the output.)
Within a few milliseconds of you calling IndicatorOn the output transistor will be driven, within a few milliseconds of you calling IndicatorOff the drive will stop.
There is no feedback from Paylink to confirm this has happened.
If you have critical output(s) and it is essential that you know that they have activated, and excatly what state they are in, you could connect these output(s) back to the Paylink input(s) as well as to the external equipment.
Paylink inputs are connected to the internal 3V3 via 680 ohm pull ups, so if your external equipment uses a 3V3 pull up or has a high impedance with a threshold below 3V3 there will be no problem with just connecting it.
If your external equipment signal voltage is higher than 3V3 and will supply quite a lot of current, then you should use a schottky diode to make this connection. (Conducting from the input towards the output.)
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.