From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-20-2023 01:16 PM
I'm generally opposed to deeply nested structures.
But I just did this:
Worse yet, I'm not even ashamed of it. One of the benefits of getting old is that the shame center in your brain shrinks (and eventually disappears!).
09-20-2023 01:39 PM
At least you got the colors in the right order.
09-20-2023 02:27 PM
Looks like some tool, I would also take a similar approach. This piece of code is still readable and clean - that is what that matters for a tool.
In some cases, modularization doesn't make sense.
09-21-2023 12:38 PM
After I got it debugged, it came out like this:
09-21-2023 01:03 PM
@paul_a_cardinale wrote:
I'm generally opposed to deeply nested structures.
But I just did this:
Worse yet, I'm not even ashamed of it. One of the benefits of getting old is that the shame center in your brain shrinks (and eventually disappears!).
When scripting is involved, nested case structures are next to impossible to avoid. Other general wiring rules also tend to get thrown out the window due to scripting. No need to feel shame about this.