10-16-2017 09:01 AM
lord_nox,
No updates from you means you got it fixed?
Can we take this as meaning the issue was not with LV transmitting the string but rather the device you were talking to?
Ben
10-16-2017 09:37 AM
Hi Ben,
actually i'm just opening everything in college to start working, I'll check the messages now and update the post!
10-16-2017 09:46 AM
Here's the VI of the Serial Communication only...
I just test the same code and it stops in the same position...
I don't know if there's a limit in the hardware, for the one who knows, I'm using Arduino Mega 2560 + RAMPS Shield V1.4 + Marlin 1.0.5 (firmware). I'm ALMOST (I'll check it now just in case) sure that this hardware+firmware has no limit over the codes sended via serial (is used by 3d printers with HUGE pieces of g-codes).
thanks for the replys and help
10-16-2017 10:15 AM
Nothing unusual in your VI. I'd be very suprised if it would be an error of LabVIEW.
Your previous post shows that the buffer that was sent is 466 chars long. But you claim that your Arduino stops after 190 chars. Thus IMHO the problem has to be on the side of the Arduino.
Regards, Jens
10-17-2017 07:47 AM
lord_nox,
You have what may be more than 100 years of engineering experience ...
telling you that we suspect the issue is on the receiving end not the sending end.
Ben
10-17-2017 09:23 AM - edited 10-17-2017 09:27 AM
Details on the UART buffers:
-AK2DM
(P.S. Add another 30 years of EE experience for me or 45 if you include hobbyist level experience also)
10-17-2017 10:21 AM - edited 10-17-2017 10:30 AM
@Ben. I've never really thought of myself as an engineer. My job description boils down to
"Find proof that some engineer somewhere in the process, made a mistake. If I can't do that, sell the thing at a profit"
I eat engineers for breakfast and wash 'em down with coffee.
PRO TIP: Engineers can be old and thick skinned. So pound them flat to tenderize an season liberally with Prozac for flavor. Boiling in oil after beer battering works too.
That doesn't discount my experienced opinion of looking over the remote device capabilities.
10-17-2017 10:27 AM
@JÞB wrote:
...
I eat engineers for breakfast and wash 'em down with coffee.
...
Wholly Indigestion Batman!
Ben
10-18-2017 10:29 AM
Well, I guess that I'll have to make a different approach, maybe sending the g-codes Line by Line...
I'll try to figure this out, thanks for all the help!
10-20-2017 05:35 PM
Its not the first time that someone told me about the limit is from the Arduino... I did check this and in my program I set the Buffer Size from 4 bits to 64 bits (I know that it's not the best option, but it works!)