12-03-2020 03:57 AM
Hello,
I am using the 26xx Library to communicate with a 2636B.
in the function "ke26xx_WriteSerialData (ketlhey, envoie); " , ketlhey is my device name and envoie is type : ViChar envoie [];
I am trying to write this : envoie = "*IDN?\n"; but it print the error : " 64, 24 error: array type 'ViChar []' is not assignable". I don't understand why i can't make it …. 😞
I find it easy to correct it but i Don't know how to do it.
Thanks you !
Solved! Go to Solution.
12-03-2020 05:14 AM - edited 12-03-2020 05:16 AM
In C char arrays are not assignable by default, use strcpy () instead, or change the variable to char *envoie (if further functions accept it).