LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using variants in Call Library Function Node parameters

Can I use Call Library Function Node to send variant data?

Attached is a VI. Here's the C code:

int MM_FUNC mmDaqDll_407DB
    ( IN char *pcUdlPath
    , IN char *pcTableName
    , IN void *pvData
) {
    int nStat = 1;
    //System::Object *varData = ((System::Object *)vData);
    MessageBox(NULL, pcUdlPath, pcTableName, 0);
    return nStat;

} // mmDaqDll_407DB()

I get the void pointer. I was hoping for a solution that did not use void*.
What is the best way to pass void data to a DLL?

0 Kudos
Message 1 of 2
(2,468 Views)

Hi Mefitzpatrick,

Here is a similar forum that addresses this issue:

http://forums.ni.com/ni/board/message?board.id=170&message.id=48886&requireLogin=False

They mention using the Adapt to Type property of the function node inputs, have you tried this?

Let me know if this doesn't answer your question.

Sappster
0 Kudos
Message 2 of 2
(2,449 Views)