LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

h file to fp conversion issue

I am using h to fp conversion tool available in CVI 7.1. (Options\Generate Function Tree from h file)
 
//int CVIFUNC  my_function(int* temp);   //Does not work
int CVIFUNC  my_function(int *temp);     //Does work
Any comments?
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 5
(3,513 Views)

I reproduced this as well. I'll file a bug report for this.

Thanks for letting us know.

Bilal Durrani
NI
0 Kudos
Message 2 of 5
(3,487 Views)
void* STDCALL my_function(void *buffer, int value1, int value2);  //does not work
void *STDCALL my_function(void *buffer, int value1, int value2);  //does not work
void STDCALL my_function(void *buffer, int value1, int value2);  //does work
 
is void * not supported? I see it is available from function panel menu.
I am trying to create fp from h file and I am getting unknown data type error.
 
 
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 3 of 5
(3,455 Views)
Hello Sheetal,

You need to have a space on each side of the "*":
void * STDCALL my_function(void *buffer, int value1, int value2);

Hope this helps and good luck with your application!

Shakhina P.
Applications Engineer
National Instruments


Message 4 of 5
(3,423 Views)

Thanks for your help.

Try this

/// OUT 1
int STDCALL my_function(char * value); //give an error

/// OUT 1
int STDCALL my_function(char *value); //works fine


 

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 5 of 5
(3,412 Views)