01-05-2023 02:42 PM
After clicking "write config" on the front panel, I'm expecting the "write key.vi" to write all the keys and their values. But when I open the text file, I only see two keys as shown below:
My goal is to write all the keys and their values only when I press "write config".
Solved! Go to Solution.
01-05-2023 03:26 PM
@GRCK5000 wrote:
But when I open the text file, I only see two keys...
That would because of this...
Do you know what a feedback node does? It holds the last value. You most certainly do not what you want in the inner loop.
You should move the "button reading" to its own case and have the "write config" SW part in its own case.
01-05-2023 04:17 PM
Removing the feedback node is even worse.
Now, I'm getting only 1 key with one value.
I don't want to remain in the true state when I press "write config". I want to go back to false.
No feedback node
By the way, with no feedback node, the boolean (write config) mechanical action is "latch when released".
01-05-2023 06:21 PM
@GRCK5000 wrote:
Removing the feedback node is even worse.
Now, I'm getting only 1 key with one value.
I don't want to remain in the true state when I press "write config". I want to go back to false.
No feedback node
By the way, with no feedback node, the boolean (write config) mechanical action is "latch when released".
Could you please attach the vi?
I am concerned about the third element in your string array constant. Why does it indicate more info? Should the elements show display format? That arrow......
I can't have the only operational 8-Ball!
01-05-2023 06:51 PM - edited 01-05-2023 06:53 PM
Please don't maximize the panels to the screen. Annoying!
This entire thing is extremely convoluted and not really scalable.
01-05-2023 07:04 PM
01-06-2023 04:15 AM
another little important thing ...
never store passwords in plain text (Passwords should be stores as hashed value). Or: what's the reason for this dialog if everybody knows all usernames and passwords?
01-06-2023 10:09 AM
@Martin_Henz wrote:
what's the reason for this dialog ...?
I assumed this was a proof of concept code. Certainly it would not be used as-is!
01-06-2023 10:33 AM - edited 01-06-2023 10:42 AM
Thanks Mr. Altenbach! I corrected my mistakes (see attached VI). I think it works as expected now.
The only thing I forgot to remove the feedback node. The code should be as shown below:
01-07-2023 03:47 PM
@GRCK5000 wrote:
only thing I forgot to remove the feedback node. The code should be as shown below: