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

passing pointers in Labview

Hello All,
I have a dll and one of the function looks like this:
Parse_Data(BYTE* input, BYTE *result)
where:
-input points to a byte array filled with parameters.
-result points to a byte array where the results will be dumped.
Any ideea how to pass the data from parameters array to dll and how to get the results from dll and display them into an array?
Thank you for your help.
0 项奖励
1 条消息(共 2 条)
2,855 次查看
I would suggest using the Call Library Function Node.vi. I'm attaching a document from NI's website entitled "Using External Code in LabVIEW." I would suggest taking a look at this. It's helped me quite a bit in the past. Here are a few important things to watch out for. Initialize the array before you send it to the Call Library Function Node.vi. Also, if you are going to change the size of the array in your DLL, you need to use a CIN instead and use the appropriate CIN functions. This is all explained well in the pdf file, so this should help you out.
J.R. Allen
0 项奖励
2 条消息(共 2 条)
2,855 次查看