How I must configure Call Library Function Node in Labview for pass stuct OutData from Labview to DLL(The function prototype : uint32 Function_name(struct OutData) )?
I am try 2 option:
* 1 option:
I am pass cluster.
Call Library Function Node configuration:
Type: Adapt to Type
Data format: Handles by Value
I am bild cluster whith
u32 CobID;
u8 NByte;
u8 array [8];
u32Time;
The all data pass wrong
* 2 option:
I am pass 4 variable:
u32 CobID;
u8 NByte;
u8 array [8];
u32Time;
Call Library Function Node configuration:
CobID
Type: Numeric
Data type: U32 int
Pass: value
NByte
Type: Numeric
Data type: U8 int
Pass: value
array
Type: array
Data type: U8 int
Pass: array data pointer
Time
Type: Numeric
Data type: U32 int
Pass: value
The CobID and NByte were correct but array and Time were wrong.
I am can't change the DLL. I am start work with Labview 9.0 and now its did't crash.
I am pass cluster (not pointer to cluster)from Labview to DLL ( function prototype in DLL is "uint32 Function_name(struct OutData)" ) but I think that I pass pointer to cluster from Labview to DLL by Call Library Function window (see attachment pic.)
Hi
I have a problem pass cluster to structure in DLL. I am work with Labview 7.0.
structure in DLL:
Struct OutData {
Unsigned long CobID;
Unsigned char NByte;
Unsigned char Data[8];
Unsigned long Time;}
QUOTE (Mark Yedinak @ Apr 7 2009, 08:43 PM)
Labview can't open this file too. In the window Error write : Generic file I/O error.
I am work in this file in the morning ,save the project and close it and after that I can't open it.