01-08-2013 03:50 AM - edited 01-08-2013 03:51 AM
Hello touha
I'm happy you have solved your problem
Regarding your new problem, it is generally better to open a new thread in case a question is not strictly related to original one, as in this case. Anyway, you could save your max and min values (as well as any other permanent value you want to resuse in the program) in a single file that is updated on program close and read back on program start. You can manage this file with standard file I/O functions or better with the IniFile instrument, that permits you to handle files in .INI format, which is quite common in Windows environment. I suggest you to look at that instrument, which can be found in <CVIfolder>\toolslib\toolbox\inifile.fp. There is also an example program that shows its features and this instrument has been discussed several times on the forums.
01-09-2013 06:28 AM
01-09-2013 08:50 AM
Without deeping into the structure of your program, if FILES is an array you cannot save it and read it back with a single "%d"
Try with
fprintf (temp, "%d; %d", FILES[0], FILES[1]);
and the corresponding modified fscanf.
01-10-2013 05:52 AM
Hi Roberto;;
9547854785 thanks for all ur supports, life is pink now 😛
Now, all is good, i've to try my famous application on the board and look if there's some bugs , hope no because it's OK by only the RS232 which input & output are related toe ach other;
Have a nice day, and may be i'll be back 🙂
01-14-2013 11:08 AM
Hi all;
How to kill a processus with labwindosw?
Many thanks 🙂
01-15-2013 04:20 AM
Hi;
Need reply ASAP pls;
🙂
01-15-2013 04:24 AM
your post has very little to do with the initial subject of the thread (how to generate an excel file), so you should better start a new one
01-16-2013 02:39 PM
Hi touha,
LabWindows/CVI is a C environment, so you can use normal C commands to kill the process. I have included links below to a very comprehensive article about how to kill a process given a name, as well as a method of killing a child process by the parent process.
As Wolfgang mentioned, it is a good idea to create a new thread when you have a new question. It helps others find and contribute or learn from the thread.
How to kill a child process by the parent process: http://stackoverflow.com/questions/6501522/how-to-kill-a-child-process-by-the-parent-process
How to kill a process given a name: http://www.codeproject.com/Articles/3374/How-to-kill-a-process-given-a-name
Regards,
Jason D
Applications Engineer
National Instruments