取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 11 条)
3,957 次查看

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!"
下载全部
2 条消息(共 11 条)
3,942 次查看
Hii


 Actually still i am receiving an error message 116.. i have attached the vi
下载全部
0 项奖励
3 条消息(共 11 条)
3,936 次查看

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 项奖励
4 条消息(共 11 条)
3,932 次查看
Hiii

 sorry yaa actually still the same problem is repeating  . Now i have changed the vi but still it is showing the error 116
下载全部
0 项奖励
5 条消息(共 11 条)
3,927 次查看

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 项奖励
6 条消息(共 11 条)
3,919 次查看
Yaa its Now Working Thanks a Lot!!!!!!!!11
0 项奖励
7 条消息(共 11 条)
3,916 次查看
Actually my Vi is working but i now convert to dll it is not working YY
0 项奖励
8 条消息(共 11 条)
3,914 次查看
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 项奖励
9 条消息(共 11 条)
3,894 次查看
Hii   i am receiveing Error No 74 in my DLL
0 项奖励
10 条消息(共 11 条)
3,828 次查看