-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is ResourceState.On / .Off defined? #23
Comments
Hi I hope this helps. |
Thanks for the response! I do understand that ResourceState is an enumeration of values corresponding to system condition descriptions, but what I was stuck on is that within the list of enumerated values you have things like SBY_NoProduct = 2200 and PRD_RegularWork = 1100, but there is no value defined for On or Off... yet the On and Off appear in the example code shown on the Getting Started with the SDK page. private void btnSend_Click(object sender, EventArgs e)
} I was trying to determine if it is considered acceptable practice to have ResourceState values that are not explicitly listed on the original enumeration definition. |
Hi |
I am attempting to implement the example code in LabVIEW (so apologies for the lack of .NET fluency), and when I look at sending a StationStateChanged message as shown on this page, I see NewState = ResourceState.On, OldState = ResourceState.Off.
In looking at the source for ResourceState I do not see On and Off defined.
Are these just assumed Boolean constants (On = 1 and Off = 0)?
Would it be poor practice to send a message about a Station State and not use one of the defined ResourceState enumerations?
Thanks!
The text was updated successfully, but these errors were encountered: