LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CIN help with a struct argument

Hi, I am new in LabVIEW and complete newcomer in CIN. Now there is one task in which I have to call a DLL. The function info is as following:
 
BOOL WINAPI LKIF_GetCalcData(OUT LKIF_FLOATVALUE *CalcData1,OUT LKIF_FLOATVALUE *CalcData2);
 
Here is more about defination:
 

typedef enum {
    LKIF_FLOATRESULT_VALID, // valid data
    LKIF_FLOATRESULT_RANGEOVER_N, // over range at negative (-) side
    LKIF_FLOATRESULT_WAITING, // comparator result
} LKIF_FLOATRESULT;


typedef struct {
LKIF_FLOATRESULT FloatResult; // valid or invalid data.
    float Value; // measurement value during LKIF_FLOATRESULT_VALID.
    Any other times will return an invalid value.
} LKIF_FLOATVALUE;

I looked through "Labview for everyone" and get me familiar with CIN, but it has a simple example with sinple argumentSmiley Sad. Can anyone tell me how to setup the input for this DLL? Should I make a cluster? Any help will be appreciated.

sipher

 

0 Kudos
Message 1 of 2
(2,747 Views)
Problem solved. I wired a cluster with one I32 and one U16.
 
Thanks.
 
sipher
0 Kudos
Message 2 of 2
(2,735 Views)