CR1000
LoggerNet 4.0
I am trying to modify a flag using the Numerical Display. In the code, the flag is declared, but never written. Its purpose is a manual override to prevent an otherwise automated action from taking place.
When I try to modify the flag in Numerical Display, it does not change. What's happening?
Alien,
If your Flag is declared as a Boolean you can toggle it most easily from the Port & Flags box, click the checkered flag on the right side. You may have to add it, similar to how you added variables to your numeric display.
If you want to toggle a Boolean variable from the Numeric Display you can double click the variable reading, where it says false, that makes it editable, double click again to toggle.
I hope that helps.
Janet
Thanks for the reply, Janet.
The method you describe using Numeric Display is what I was doing. The problem has already mysteriously resolved itself, i.e. I can change the flag using that method.
Previously the Ports & Flags method was not working, and it is still not. I can view the flag, but not change it. Does that make sense?
Thanks,
Kannan
* Last updated by: thehomealien on 5/3/2012 @ 1:35 PM *
Kannan,
Are you clicking the green circle to the left of the Flag name in the P&F box? Just a single click is needed there. If that still doesn't work, click the Defaults button to reset everything. The Flag variable should automatically show up, if not add it. Also, if you don't need them, delete the PortStatuses.
Janet
Janet,
Seems like I am operating the P&F and the Numeric displays as you describe. However, now neither method works to change a boolean.
My flag syntax is not correct. The booleans in question are not automatically added to the P&F box, but I can add them manually. Is this relevant?
Kannan
Kannan,
Booleans are only added automatically if they're called Flag. So, that isn't the issue.
Please send me your program to see if there is something else going on. jalbers (at) campbellsci (dot) com
Janet
The problem was resolved by modifying variables in the PUBLIC table instead of the table I had defined.
Thanks, Janet.