LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write string (7 chars), int16, sgl into binary file and read it in C

How to write write string (7 chars), int16, sgl, string (5 chars) into binary file and then read it in C ?

Total 18 Bytes file (binary) should be created.

0 Kudos
Message 1 of 4
(2,400 Views)

Hi,

 

this could be done that way:

check.png

You have to make sure the strings have their correct length!

Best regards,
GerdW


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

I appreciate. Want more help. Can you please tell me what control

used to bundle that four variables ? 

 

Data type of wire after casting I16 & SGL

shows string type. Is it correct ?

 

Please spare some time and explain me.

 

Thanks & regards.

 

V K Panchal

0 Kudos
Message 3 of 4
(2,384 Views)

Yes they are strings.

 

And the function is concatenate strings.

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 4 of 4
(2,378 Views)