08-05-2022 04:36 PM
To get two columns from a 2D array we could (seen here)
.... or we could just get the two columns directly (note the zero wired to the lower index). 😄
08-14-2022 11:37 AM
Famous last words, completely redefining the word "simple" (seen here😞
"Hi, I'm working on a simple code with bunch of flat sequence structures and for loops."
08-22-2022 02:56 AM
wiebe@CARYA wrote::Goto is a syntactically correct statement in C++...
Probably the fastest way to getting fired if you use it, but still: syntactically correct.
It's the Local Variable of C/C++, it's easy to abuse but have it's uses. 🙂
08-22-2022 03:19 AM - edited 08-22-2022 03:20 AM
@Yamaeda wrote:
It's the Local Variable of C/C++, it's easy to abuse but have it's uses. 🙂
Did you mean to say Global Variable? Use of locale variables in LabVIEW is definitely a valid use scenario when programming more complex UIs.
As to goto in C, yes it is a bad fellow to use, but I have done so myself quite a few times. Without structured exception handling it is the next best thing for error handling if you do not want to have deeply indented code. Of course one counter argument could be that once you end up having more than 3 or so indentions, you should probably have refactored the code into sub functions.
08-31-2022 12:56 PM
Here is a code by an intern with many Rude Goldberg, for instance, the following cast structure implementation is just to get a subset of the DDT wires
Seen here - https://forums.ni.com/t5/LabVIEW/error-209836-shows-after-program-runs-for-12-hours/td-p/4252717
09-01-2022 03:21 AM
@santo_13 wrote:
Here is a code by an intern with many Rude Goldberg, for instance, the following cast structure implementation is just to get a subset of the DDT wires
And the double wired to a case selector is bad enough by itself...
09-01-2022 01:34 PM
09-01-2022 10:41 PM
@BowenM wrote:
I feel bad for that intern. He was given a difficult task (for a newbie to LabVIEW) in something he wasn't trained to do with virtually no oversight and given an extremely tight deadline to do it. The fact he got as far as he did given the circumstances is impressive. Not only that, his post is courteous and shows that he's already learned a bunch from the start of the project but just doesn't have time to refactor his code.
It is indeed impressive for an intern to develop something that large without any formal training.
09-18-2022 01:21 PM
The IPE (index array) is of course useful if you care about the existing value. If we don't care about the existing value, it's just a glorified "replace array subset". 😄 (seen here)
(Yes, that entire thread is weird in general, trying to solve a very poorly defined problem)
09-22-2022 12:00 PM - edited 09-22-2022 12:03 PM
So the simple task is to build xy data for an xy graph in a loop, one point at a time.
Apparently, we need:
Seems a bit much! I have the nagging feeling that it could be simplified. 😄