LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 74 Unflattened From String for VISA Read

 there is an error of 74 unflatten to string when i use UDP to transmit and receive the video  error 74.png

0 Kudos
Message 1 of 5
(3,053 Views)

Hi foge,

 

some notes:

- You set the byte size for UDPRead to 65507: is this sufficient for your "video"?

- Setting UDP message size to this big number might conflict with your other network devices, sometimes UDP messages are limited to 548 bytes…

- What is the length of the received messages?

- IMAQ uses references: do you really think you can typecast a string to an IMAQ reference correctly?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,036 Views)

The data what you try to unflatten is corrupted. My guess is that you get a partial or too much data via UDP. You should check how much bytes you read, and that you get a full package. With TCP usually this is done by using start and end flags...

 

edit: GerdW was faster and also more detailed. Follow his advices!

0 Kudos
Message 3 of 5
(3,032 Views)

thank you

for the size of the recieved data i cant know it because there is a message of the error of 74

 

0 Kudos
Message 4 of 5
(2,966 Views)

Hi foge,

 

for the size of the recieved data i cant know it

What is this "length 2" indicator good for?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(2,959 Views)