LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

corrupted serial data when reading

thank you billko

 

how can i limit the amount of information being showed in the indicator?

0 Kudos
Message 11 of 17
(600 Views)

@moreins1 wrote:

thank you billko

 

how can i limit the amount of information being showed in the indicator?


Cross has a better solution.

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 12 of 17
(596 Views)

Here's a quick example of what I mean.  It is far from complete or fully functioning for what you need.  It is an example.  You will have to format your data however you want before writing it to file.


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
Message 13 of 17
(588 Views)

hi 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 14 of 17
(562 Views)

@Ranjeet_Singh wrote:

hi 


No.  You don't want to keep opening an closing the serial port!  All you do when you do that is waste resources and put things in funky modes.  Open/setup once during program bootup, read as much as you want repeatedly in main loop, close once during program shutdown.


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 15 of 17
(559 Views)
The image proves what I said. LabVIEW is a dataflow language so the close will only happen when the loop stops - exactly what should be done.

Fixed delays are often a lazy way to program. They also can result in buffer over runs as well since you do not read fast enough. Believe me, written carefully and with an understanding of the instrument, you don't need them.
Message 16 of 17
(556 Views)

@Dennis_Knutson wrote:
The image proves what I said. LabVIEW is a dataflow language so the close will only happen when the loop stops - exactly what should be done.

Fixed delays are often a lazy way to program. They also can result in buffer over runs as well since you do not read fast enough. Believe me, written carefully and with an understanding of the instrument, you don't need them.

True enough.  I can think of only ONE instance (out of countless times) when a careful understanding of the communication needs of the equipment was achieved, that I could NOT eliminate hard-coded waits - and that was a power supply that was so dumb, the programming instructions specifically said "The average command processing time of the ZUP Series is 15mSec. It is not recommended to send strings of commands to the ZUP power supply without considering the processing time."  In other words, hard-code a wait of at least 15 ms in between commands.

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 17 of 17
(541 Views)