08-18-2008 07:36 AM
Hello friends!
I have run into a problem. I have a dialog box VI which asks for a serial number for each connector. There is an End button on the same VI. Its purpose if to cancel the calling of subsequent MAC no dialog boxes and serial number dialog box and to write a value of false against the enabled status of the serial ports (including the current serial port, which is being scanned). What is happening is that the serial port for which the end button is pressed gets a true written against its enabled state (COM Port 0 Enabled=TRUE) in the config file.
I have been trying to find the source of error but to no avail. So I finally ask for my dear friends help at NI.
I am attaching the two VIs (these are part of a project so they use a lot of other VI unrelated to the current problem) (kindly let me know if more VIs are required for debugging).
Thanks a lot for taking time out to let me out of my predicament.
08-18-2008 10:25 AM
I found your code extremely difficult to follow because of your excessive use of sequence frames and local variables. All of the code you showed can be written without using sequence frames, and most, if not all of the local variables can be eliminated. This would make the code much easier to follow and debug. If you right-click on the sequence frame and select Replace -> Flat Sequence you will see what I mean. It seems you have a background in text-based coding. As it is, here's what I can say:
"Enter Serial Number" VI
"LaunchSNM..."
08-19-2008 03:10 AM
Wow! smercurio…! That was great surgery. Thanks a lot. Your reply made me realize I still need a lot to learn. Thanks a lot again. I'll try to make you recommendations a permanent part of my programming. That was a real good assessment.
Have a very nice day!