LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Termination Char

I refuse to look at a picture of LabVIEW code.  Would you like me to send you a picture of a 1000-line C++ program, or would your rather I attached the actual program (as text)?

 

Please attach the program (as a VI, a file ending with .vi).

 

Bob Schor

0 Kudos
Message 11 of 16
(615 Views)

Watch your code in execution highlighting mode and see that you have a race condition where a Boolean local is being read BEFORE you writ to it.

 

Did you ever figure out what the term char was?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 12 of 16
(611 Views)

Smiley Tongue


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 13 of 16
(597 Views)

on a more constructive note:

 

also before you post your VI please clean it up.

wires shouldn't go backwards,

things shouldn't be over wires

arranging stuff in the data-flow sense would also make it easier for people helping you

and last but not least ... the labview programmers (mostly) put specific in/out terminals at the same position so that you could have straight lines, use that to your advantage!

also unused space is just a pain. it's like reading a whole word spread over multiple lines character by character.

 

regards

 

EDIT: i'm out ... way too warm .. things only get more ridiculous from here on

good evening to you all!


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 14 of 16
(581 Views)

@jwscs wrote:

on a more constructive note:

 

also before you post your VI please clean it up.

wires shouldn't go backwards,

things shouldn't be over wires

arranging stuff in the data-flow sense would also make it easier for people helping you

and last but not least ... the labview programmers (mostly) put specific in/out terminals at the same position so that you could have straight lines, use that to your advantage!

also unused space is just a pain. it's like reading a whole word spread over multiple lines character by character.

 

regards

 

EDIT: i'm out ... way too warm .. things only get more ridiculous from here on

good evening to you all!


Continuing Bob's C++ analogy, you wouldn't give a person source code with random indents.  Not if you wanted a reasonable chance of leading a normal life afterwards.

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 15 of 16
(562 Views)

@Vinaygowda wrote:

one more picture for reference


Your read loop has me worried.

 

Do you always expect the same number of lines?  If so, use a FOR loop instead of a WHILE loop.  Even if the number of lines is different, relying on only the final line being longer than X bytes is dangerous.  You are likely to miss data points and/or have too much data.  I am sure there is something in the protocol to tell you when you have gotten all of your data points, even if it is just the ID.

 

Also, you don't need the wait in that loop.  The VISA Read will limit your loop rate (an iteration for each read line).

 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 16 of 16
(539 Views)