LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Having problems saving data inputted in text box to an excel file.

Hello,
Probably a very simple question but I�m still learning, I�m trying to create two user comment boxes, one for the data and the other for experiment notes. Creating the text boxes is find but when I go to save the info in the box to an excel file I only save the first character.
Please help!!!

Nigel

P.S. I have attached a simplified version of the program.
p.s. I'm using LabWindows CVI V6.0
Download All
0 Kudos
Message 1 of 3
(2,843 Views)
This is just from a first glance, but in the part where you right to the file, the %c should be a %s to specify string, and since date is the char array, you should pass date in without any indices, since date by itself is the pointer to the first element in the array.


fprintf(file_handle,"%s\n", date);


Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
Message 2 of 3
(2,843 Views)
Thanks for the help, cant believe I had made such a stupid mistake. Thanks Again
0 Kudos
Message 3 of 3
(2,843 Views)