LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is your strategy to prevent repetition of the same code? (Please read caption below)

Solved!
Go to solution

So this sounds like a general programming question, not specifically related to LabVIEW.  It would help us to know how much programming experience you have in general.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 11 of 22
(1,481 Views)

Mr. Altenbach, would you please create a code so I can better understand?

0 Kudos
Message 12 of 22
(1,478 Views)

Not a lot of programming experience.  I have a lot to learn.

0 Kudos
Message 13 of 22
(1,477 Views)

@GRCK5000 wrote:

Not a lot of programming experience.  I have a lot to learn.


Not a bad thing.  We can mold you into a useless blob of Jell-o.  I mean a hardened veteran programmer.  Or at least not a raw recruit.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 14 of 22
(1,467 Views)

"a useless blob of jell-o" 🤣. I was like what? Thanks Bilko. I appreciate it. This is the main reason I am in here. I want to be like you guys. 

0 Kudos
Message 15 of 22
(1,461 Views)

My first thought is a Queued State Machine (I like JKI's).  Then the code is in one state that you call whenever/however you want.

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 16 of 22
(1,447 Views)

I know exactly what you mean, but can you create a simple just so I can see how it works. I really want to learn these stuff. 

0 Kudos
Message 17 of 22
(1,441 Views)
Solution
Accepted by topic author GRCK5000

See if this can give you some ideas....

 

 

0 Kudos
Message 18 of 22
(1,423 Views)

Thank you very much, Mr. Altenbach for sharing the code. I spent quite some time trying to process it. I need an explanation on the part of the code shown below:

GRCK5000_1-1652300840566.png

 

So when I use the probe where I have the red arrows. I was getting number from 65 to 70 and these numbers correspond to A to F, respectively. 

My question is how do you know these conversions? Do you have a table that you can share maybe?

From decimal to hexadecimal conversion: 10 corresponds to A, B >> 11, C >> 12, and so on. 

Can you please explain to me this conversion from the code?

 

0 Kudos
Message 19 of 22
(1,409 Views)

See https://www.asciitable.com/

 

Another method, make a For loop in LabVIEW where N=256, change the i terminal to a U8 number and do the conversion.

Message 20 of 22
(1,404 Views)