Thanks for your prompt answers. I have attached the VI file so that you can get a clear idea of what is the problem. This VI is to be integrated into a larger program. Please run the file with any inputs. Since I was not able to fix the problem I tried another approach, I wrote a C++ program that generates a text file with the commands. Integrating this code in Labview is not easy and was giving me some trouble (I didn't know wheter to use CIN's, ActiveX or DLLs, but I was advised to use DLLs).Anyway, I hope that the problem with the strings can be fixed, that would be a much easier and faster solution, if possible, I would like to have the whole program in Labview.
Thank you very much for your help.
Sincerely,
Javier