01-05-2009 03:38 AM
i need to pass the below structure from labVIEW to C DLL Can any one help me out .....is thr an option to pass without writting a wrapper?PL do help .....
typedef struct
{
unsigned long NumOfParams;
SCONFIG *ConfigPtr;
} SCONFIG_LIST
typedef struct
{
unsigned long Parameter;
unsigned long Value;
} SCONFIG
01-05-2009 07:08 AM
This should help:
01-05-2009 08:06 AM - edited 01-05-2009 08:10 AM
hy adnan.....
thank you for da reply...
I have gone thru those notes earlier......it does nt gve an answer to my question ..most of examples discussed is of writing a wrapper DLL.i nd to do it without involving the wrapper.Is thr any way i could represent the structure mentioned above in labVIEW.....i ve succesfully passed a pointer to a sturcture without wrapping it .....PL do help......
01-05-2009 08:53 AM
01-06-2009 03:23 AM
01-06-2009 09:25 AM
01-06-2009 11:04 PM - edited 01-06-2009 11:06 PM
I will do my best.
Thank you for the reply.Am trying myself if i could come up with a solution in labVIEW .Since i dont have much of an exposure in labVIEW am finding it not that easy.Writing a wrapper DLL would be the the last option.I would like you to confirm that the above mention structure could not be passed so that my time could be saved or is there any way that it could be done in labVIEW?. kindly help me out.Am sure it would be useful to lot of people.
01-07-2009 09:07 AM
01-07-2009 11:04 PM
01-23-2009 03:43 AM
hey ,
Am almost done with my wrapper and i could successfully pass an array of clusters.Now i have a problem where a certain function returns an array of cluster . Could any one tell me how i could do using my wrapper DLL. thanks in advance.given below is my C skelton of VI.
typedef struct {
long dimSize;
unsigned char Marks[1];
} TD3;
typedef TD3 **TD3Hdl;
typedef struct {
unsigned long Name;
unsigned long age;
TD3Hdl elt7;
} TD2;
typedef struct {
long dimSize;
TD2 elt[1];
} TD1;
typedef TD1 **TD1Hdl;
PL help me.