LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with a function write in a library

Solved!
Go to solution

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 ! 

0 Kudos
Message 1 of 2
(735 Views)
Solution
Accepted by rolfk

In C char arrays are not assignable by default, use strcpy () instead, or change the variable to char *envoie (if further functions accept it).



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
(721 Views)