11-03-2006 03:53 PM
11-03-2006 03:55 PM
11-06-2006 01:26 PM
11-06-2006 06:25 PM
I added a new subvi named axis property which basically uses “Draw cartesian Axes.vi”.
I have added two different spreadsheet. In folder “data 1”, the main spreadsheet is “Full_Scan”. While in other the main spreadsheet is “Fine_Scan_5”.
Please display both the image one by one. While for “Full_Scan”,
it would display fine; but for “Fine_Scan_5”, the display would be quite
messed.
I am attaching all my codes in zip file as I have modified main vi and added another subvi.
I am also attaching apreadsheets.
Thanks,
Dushyant
11-08-2006 09:06 AM
11-08-2006 01:01 PM
11-08-2006 03:32 PM
11-08-2006 03:51 PM
11-09-2006 01:30 PM
Dushyant,
I was able to run your program. I was targeting the xls files instead of the files w/o an extension. Your problem is that you have a race condition in your code. You are reading the value of the indicator "Pixel Sizes of Picure" in a local variable before the value is calculated. When you do this you are just reading the previous value of the control. This is why, when you run the program twice in a row with the same file it will work fine. If you connect this indicator directly to the input of your "Axes_Property" VI rather than using a local variable, it seems like your program runs fine.
-Justin D
11-09-2006 02:31 PM