07-02-2013 01:35 PM
Hi All,
I have a file that has approximately 180 pages in the VIEW portal, each with a chart. When processing these charts I employ the Band Cursor to select ranges on each curve and then calculate values based on that range. Then I move to the next sheet and do the same thing.
After building lots of pages I notice things slow down significantly. In the bottom left corner of the screen I see the following message "X-Cursor1: 0.153 Y-Cursor1: 1.63E+04 Z-Cursor1:0" and the values change many times before moving along with my request. I am pretty sure the program is going through each sheet and reading the cursor positions. This wastes a lot of time.
Is there a way to 'turn off' the cursors or do something similar so that this doesn't happen every time I switch into the VIEW module? Any help would be greatly appreciated. Thanks in advance!
07-11-2013 11:02 AM
Hi GT_Mark,
How are you doing those calculations on each sheet? In your head? Running a script by clicking with the mouse? Running a script based on a VIEW cursor move event?
Can you send us the data file and TDV that reproduces this effect?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
07-11-2013 12:54 PM
Hi Brad,
Thank you for your feedback. I've sent you an e-mail containing the relevant DIAdem contents and code.
To answer some of the questions on here that I did not address specifically oin the e-mail:
The calculations on each sheet are completed within the script. Things seem to slow down when the script initiates interaction mode and then the user uses cursors to specify a range of data on a chart. After clicking to end interaction mode the script continues working.
I hope that clears up some of the ambiguity of how the code is running.
Thanks in advance for your help!