LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strings too long

Solved!
Go to solution

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 21 of 30
(1,642 Views)

Hi Ben,

actually i'm just opening everything in college to start working, I'll check the messages now and update the post!

0 Kudos
Message 22 of 30
(1,632 Views)

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

0 Kudos
Message 23 of 30
(1,628 Views)

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

Kudos are welcome...
Message 24 of 30
(1,615 Views)

lord_nox,

 

You have what may be more than 100 years of engineering experience ...

 

Spoiler
I think that Jeff and I combined can account for more than 80 years

 

 

telling you that we suspect the issue is on the receiving end not the sending end.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 25 of 30
(1,583 Views)

Details on the UART buffers:

 

https://www.google.com/search?safe=active&q=arduino+mega+2560+uart+buffer&oq=Arduino+Mega+2560+uart+...

 

-AK2DM

(P.S. Add another 30 years of EE experience for me or 45 if you include hobbyist level experience also)

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 26 of 30
(1,569 Views)

@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.


"Should be" isn't "Is" -Jay
0 Kudos
Message 27 of 30
(1,546 Views)

Spoiler
@JÞB wrote:

...

 

I eat engineers for breakfast and wash 'em down with coffee.

 

...


Wholly Indigestion Batman!

 

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 28 of 30
(1,542 Views)

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!

0 Kudos
Message 29 of 30
(1,511 Views)
Solution
Accepted by Ben

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!)

Message 30 of 30
(1,482 Views)