01-24-2022 01:18 PM
Msg #6, 2nd screencap: notice the use of Bytes at Port!
To the OP: search here for "Bytes at Port" and you'll get an eyeful of strongly worded cautions NOT to use it in the exact way you're using it. A common outcome of that usage is (wait for it) -- incomplete messages.
-Kevin P
01-24-2022 01:37 PM
@Kevin_Price wrote:
Msg #6, 2nd screencap: notice the use of Bytes at Port!
To the OP: search here for "Bytes at Port" and you'll get an eyeful of strongly worded cautions NOT to use it in the exact way you're using it. A common outcome of that usage is (wait for it) -- incomplete messages.
I agree, but one exception that is often mentioned is to check if there are any bytes at port.
I'd avoid Bytes At Port so drivers stay compatible with TCP\IP resources, when switching to a TCP\IP to Serial converter.
01-25-2022 03:18 AM
I'd also check to see if there's anything that could genrate an error on any of the En-Q functions.
If the comms is broken due to bytes at port or another reason, then does it even En-Q - so do you actually have data being passed around the program?
James
01-25-2022 04:26 AM
Hi together,
thanks for the support,
honestly I've to admit an very embarrassing reason for that "error"
I was looking at the Logfiles (.txt) files via the Windows explorer:
if you scroll down to the lowest position, it looks like the file is incomplete:
if you take a look into the file itself, its complete
so finally just a stupid explorer display issue
sorry for that confusion!
01-25-2022 05:04 AM
I can really recommend Notepad++, although there are more applications like it.
01-25-2022 08:04 AM
wiebe@CARYA wrote:
I can really recommend Notepad++, although there are more applications like it.
+1 for (it tells you if a file you've go open has been updated externally and asks if you want to reload)
01-25-2022 08:21 AM
wiebe@CARYA wrote:
I can really recommend Notepad++, although there are more applications like it.
I am personally a fan of UltraEdit, which also has the ability to reload an opened file. Its binary editor and comparitor have also saved me on more than one occasion. But the price of Notepad++ is really hard to beat (free).
01-25-2022 09:49 AM
LabVIEW Ninja skills!
I am going to come back and recommend an additional performance enhancement. Since you open the file once and write many times, enable file Buffering! There is an optional boolean for that into Open Create Replace File.vi that few people bother to read the help file about.
01-25-2022 09:53 AM
Hi Jay,
@JÞB wrote:
Since you open the file once and write many times, enable file Buffering! There is an optional boolean for that into Open Create Replace File.vi that few people bother to read the help file about.
Thanks for this reminder…
But (atleast in LV2016) that buffering is enabled by default.So there will be no improvement by wiring a FALSE constant to a default FALSE input…
(You can disable buffering when needed.)
01-25-2022 10:56 AM
To the OP: solved for the moment, but I still think you're very likely setting yourself up for trouble with your specific use of Bytes at Port. It appears that you then Read that same # of bytes and pass it along for decoding, *seemingly* with the assumption that you've read a complete message, not just part of one.
Using Bytes at Port this way is prone to giving you partial messages that decode incorrectly.
-Kevin P