LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Binary File IO DLL Problem

Hiii


    I have developed one Binary file Read/Write Vi..  and then i have convert that vi in to DLL......
    Now i tested that DLL Vi  it is showing an error No 74. Actually for Binary write i will convert the Input cluster to Flattern to String and for Binary Read i will convert the output to unflattern to string.. I have attached the TEST.vi for reference
0 Kudos
Message 1 of 11
(3,875 Views)

hi there

if you want to read the size of the string you have to enable the "append array or string size" at the write file function. or you do not append the size and simply read all bytes.

in any case you should replace existing files to avoid remaining bytes of larger strings written in prior calls.

See attachment for details.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Download All
Message 2 of 11
(3,860 Views)
Hii


 Actually still i am receiving an error message 116.. i have attached the vi
Download All
0 Kudos
Message 3 of 11
(3,854 Views)

i said in my previous post:

"if you want to read the size of the string you have to enable the "append array or string size" at the write file functio

this gives you two options:

1. either you enable "append array or string size" at the write function and read first the number of bytes and then the remaining data

2. or you do not enable "append array or string size" and read all bytes in the file

Your VI is a mixture of both options, and this will not work.

Btw: Check the "type cast" function at the file read. The VIs output string is the "-1" casted to string!

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 11
(3,850 Views)
Hiii

 sorry yaa actually still the same problem is repeating  . Now i have changed the vi but still it is showing the error 116
Download All
0 Kudos
Message 5 of 11
(3,845 Views)

check that "Cluster to Write string.vi"

what's that doing?

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 6 of 11
(3,837 Views)
Yaa its Now Working Thanks a Lot!!!!!!!!11
0 Kudos
Message 7 of 11
(3,834 Views)
Actually my Vi is working but i now convert to dll it is not working YY
0 Kudos
Message 8 of 11
(3,832 Views)
Can you be more specific as to how your conversion is not working? Any error codes or specific behavior?
Asa Kirby
CompactRIO Product Marketing Manager
________________
Sail Fast!
0 Kudos
Message 9 of 11
(3,812 Views)
Hii   i am receiveing Error No 74 in my DLL
0 Kudos
Message 10 of 11
(3,746 Views)