My first VI is almost finished. At first I would like to thank users of this forum for the help.
Vi is working, but there are few things I would like to thange. If you look at the attached VI (GIA10N_V1_12_6.vi) tehe are 4 buttons on fron panel. STOP button stops and exits VI, other 3 buttons is START/STOP of data reading from serial port. Data reading from 9 controllers connected to serial port is organized using flat sequence structure. Controllers is organized in
groups of 3 and each of 3 buttons controls one group. In each group program flow is organized this way: reas data from controller 1, from controller 2, from controller 3, write data to file. User is asked to enter file name once when button goes from stop to
start. Time between data readings is controled by WAit(ms) in the loop. Here comes first problem: when user press START/STOP button, file dialog window is shown after time controlled by Wait(ms). It is ok when reading data each few seconds. But user may choose to read data from sensors each 5 minutes. Then he will have to wait for file dialog 5 minutes. The same whwn user wants to stop VI. STOP button works, when data reading from all controllers is stopped. Now when user stops data reading from all controllers and press STOP button, VI will stop and close after Wait(ms) elepses. I would like to close VI immediately. For front panel controls values I use file settings.ini, but I noticed that exe itself generates *.ini file and that ini name is the same as exe file name. How can I use that ini insted of my "settings.ini".
One more thing. I noticed that if there is some error in VI execution it shows error message and thens stops. When VI is stopped, user can see all menus and other things like in LabView. I would like user never see that so I think I need VI to close after user press OK on error message.
Also please what you think about my VI and what you would do differently