Hello
I would like to evaluate the state of a specific input pin in a script wit a.
Is this possible?


Background:
I have a wireless probe that sets a output pin if the wireless probe is not turned on. I would like to check the state prior to executing any measurements (yea I managed to forget turn on the Probe an break a Stylus......)

basically adding something like this to the beginning of each measurement script should do the trick:
O<ProbeCheck> if[<INPUT PIN 1> EQ 1]
(msg,Probe is not turned on)
M2
O<ProbeCheck> endif

However I don't know what I need to enter for
<INPUT PIN 1>

All I found in the Documentation was M59
However this seems to Wait for a input and not evaluate its state. I might be able to use it as a workaround by inverting the error pin and thus preventing the code from running further if the Input pin is low (assuming M59 does not wait for a change of the input) But a if statement with a message box would be the better solution because I could put all the existing code into the else part which should make it quiet foolproofed.

Best Regards,
Klaus