LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

shared variables

Hi,

 

I am using shared variable, It was working fine, but now out of nothing I am getting this error:

 

Invalid argument type:found pointer to array of 2000 char, expected pointer to pointer to char.

why is this giving me error at "&throughputStat" ?

 

here is my array of 2000 char

 

 

char          throughputStat[2000]= "======IMPORTANT MESSAGES======\n\n";

 

.

.

.

 

 

 

        CNVCreateScalarDataValue (&statDa, CNVString,"");
        CNVRead (tPutStat, CNVWaitForever, &statDa);
        CNVGetScalarDataValue (statDa, CNVString, &throughputStat);
        
        //strcpy(emptyMess,throughputStat);
        
        CNVSetScalarDataValue (statData, CNVString,throughputStat);
        CNVWrite (writer, statData, CNVWaitForever);

 

thanks

 

 

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

See the answer from Markus Kossman here.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,863 Views)