Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

modify flag using numerical display


thehomealien May 3, 2012 04:14 PM

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?


jra May 3, 2012 07:30 PM

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


thehomealien May 3, 2012 07:34 PM

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 *


jra May 3, 2012 07:46 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


thehomealien May 3, 2012 08:01 PM

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


jra May 3, 2012 08:08 PM

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


thehomealien May 4, 2012 04:15 PM

The problem was resolved by modifying variables in the PUBLIC table instead of the table I had defined.

Thanks, Janet.

Log in or register to post/reply in the forum.