From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-15-2018 09:27 AM
Good afternoon
I'm having a TCP communication and I'm obteining this error, I always do it in this way and it never report error. Can it be because i'm trying communicate many datas??
Error 74 occurred at Unflatten From String
Possible reason(s):
LabVIEW: Memory or data structure corrupt.
01-15-2018 09:32 AM - edited 01-15-2018 09:34 AM
Hi Cristina,
don't you think adding some error handling to your VI will improve its performance (and user experience)?
UnflattenFromString also supports an error output!
Are you sure the received string is not damaged/malformed in any way?
Btw. why do you name your PNG-file as "jpg"?
01-15-2018 09:35 AM
The error is due to not wire the error in unflatten from string?
01-15-2018 09:39 AM
Hi Cristina,
no, the error is due to a malformed received string (as written in the message) - but the error message box is shown due to missing error wires!
Again: are you sure the received string is correct in each bit and not malformed?
01-15-2018 09:40 AM
cristina.lopez wrote: Can it be because i'm trying communicate many datas??
Not likely. Can you share where you send the data? My first thought is that you are not sending that cluster that you have defined in your receiver. It would help you if those were Type Defined clusters so you can make sure your sender and receiver are looking at the data the same way.
01-15-2018 09:50 AM
This is the way that I created the cluster that I'm trying to read then.
01-15-2018 01:16 PM - edited 01-15-2018 01:16 PM
Hi Cristina,
again I repeat my question:
Did you make sure the string is exactly the same both on transceiver and receiver?
Did you make sure all the components of the cluster are exactly the same?
Did you follow the other suggestion to typedefine your cluster (on both ends)?
01-15-2018 01:36 PM
As suggested, use type defs for your cluster. This will most likely resolve your issue. That way you know that both sides are using the same cluster definition. Any variation between your cluster definitions that you are now using will cause this error.
01-16-2018 01:13 AM
Yes, I make sure the string and all components are the same , I have checked many times, but the error persists.
I don't know what may be happen
01-16-2018 01:42 AM
1. Check if the connection is established.
2. Check if there are errors when receiving the message
3. Check the size of the received message (first reading) and compare it with the cluster size, based on which you decrypt the message.
4. Are you sure that the data is transmitted cyclically?
5. Identify the cluster as typed. Most likely, you are wrong with the dimensions