Hi all,
I'm trying to write a new C# program that interfaces with the EPMA via the Remote interface but I keep butting up against a problem with RemoteGetFaradayState.
I've got everything else working and communicating with the EPMA (e.g. I know the Remote interface is communicating well), and I can successfully read and control motors, get tuneable specs etc, but I can't get this call to return the current state of the Faraday (i.e. in or out, as a boolean value).
In Visual Studio, it lists the RemoteGetFaradayState() as a void (i.e. it returns no value) - shouldn't this be returning a boolean that I can use to determine the faraday's current state?
RemoteGetAbsorbed() comes up as a float, as does RemoteGetMagnification() which are both listed in the documentation as Public Functions, but everything listed as a Public Sub seems to come up as a void in Visual Studio and I haven't figured out how to work with these...
What I'd like to do is simply include the faraday state within an IF statement, e.g.
if (RemoteGetFaradayState() == true) {
//Do cool stuff
} else {
//Don't do cool stuff
}
Any input would be appreciated, as I'm going round in circles trying to figure it out!
Anyone got any pointers?