BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

(seen here)

 

Formatting a string as binary apparently requires two FOR loops and a couple of NOOPs. 😄

(more detailed analysis) No woder some people think LabVIEW is hard. 😮

 

0 Kudos
Message 951 of 2,635
(11,637 Views)

This is one of my latest comedy of errors. It reads lots of channels of data and fills the gaps in real-time.

 

Do not adjust your monitor!  

 

 

Message 952 of 2,635
(11,552 Views)

 

 

This is a classic example of how the datatype selection has a huge impact on the code. Without getting into a big detailed code analysis in this thread, are the individual arrays in the "old data points" the same size? If so, a better datatype would have been a 2D array. Would have saved you lots of wires. You could also use Cluster To Array on the "marker coordinates" to further take advantage of loops.

0 Kudos
Message 953 of 2,635
(11,532 Views)

hmm.. perhaps I could have used some 2D arrays! The software started out as a "what if" project 3 years ago, now it's too big and unwieldy to change. A lesson in planning!  

 

 

 

0 Kudos
Message 954 of 2,635
(11,502 Views)

Use of sub-vi's could have helped a little too 🙂

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 955 of 2,635
(11,471 Views)

Instead of 1 cluster with lots of arrays, you could have used an array of clusters with 1 array each and thus autoindexed your function. 🙂

What a horror of scalability, but grand of you to share with us.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 956 of 2,635
(11,401 Views)

(Maybe I am completely misunderstanding the answer here, but the question was how to run a loop indefinitely).

 

Q: How do you loop a problem indefinitely?

A:  "Compare to infinitiy. The positive infinity block is in the numeric section. The greater than comparison is in the comparison section. Compare something to infinity and wire the output to the stop icon in the while loop found in the structures section."

 

Let me translate this to LabVIEW for you:

 

 

Really!?

Message 957 of 2,635
(11,312 Views)

@altenbach wrote:

 

[...]

A:  "Compare to infinitiy. The positive infinity block is in the numeric section. The greater than comparison is in the comparison section. Compare something to infinity and wire the output to the stop icon in the while loop found in the structures section."

 


No matter how firmly I planted my tongue in my cheek, I could never have come up with a better answer.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 958 of 2,635
(11,301 Views)

Doesn't get any more efficient than that. :lol3

Message 959 of 2,635
(11,272 Views)

@SnowMule wrote:

Doesn't get any more efficient than that. :lol3


no, it does not.  write LabVIEW- post it to the forum- Christian removes all the unnecessary gyrations in your R-G code and it works.  What other development enviornment has that optomizer?


"Should be" isn't "Is" -Jay
Message 960 of 2,635
(11,258 Views)