LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview hangs when scrolling through MathScript block

My setup consists of PC ( Pentium 4 CPU, 3 GHz, 2 GB RAM) running Windows XP Professional Version 2002 Service Pack 3. I use dual monitor setup.

I have developed all applications (vi's) using Labview 8.6.1f. That revision of Labview included MathScript. Recently I upgraded the setup to Labview 2009. I have Labview 2009 Professional Development System without any patches and without the SP1. It is the same version as originally distributed on the CD in August 2009. Since the MathScript Module is now a separate product I have installed the latest revision of that module from the web. Initially I encountered problems with running my applications. The execution would hang. Labview did not provide any error messages. By elimination I have narrowed down the problem to the MathScript block. After making some changes, mainly tricking the MathScript block to use correct data types, integer or double precision, I fixed the execution problem. At that point the applications executed the same as in Labview 8.6.1f, with one exception - the speed of execution has been increased by a large factor.

The block diagrams of my vi's are wide, covering approximately four display screen widths. I must scroll horizontally to access all locations on the block diagram. While scrolling I experienced Labview hang (reporting Labview not responding) requiring closing Labview from the Task Manager. I noticed that hanging would occur while scrolling, exactly at the moment the MathScript block was just about to enter the display. This behavior affected all vi's that have MathScript node in the block diagram.

I tried to use different graphics card and convert to single monitor operation, no change in behavior.

However when I do the following, the behavior changes:

Open vi Block Diagram

From Tools menu select MathScript Window (window with an empty script opens) Select Run Script (empty script executes) Close MathScript Window

Afterwards Labview does not hang while scrolling through the block diagram. It just hesitates slightly while MathScript node is entering the viewing area. That hesitation occurs only during the first scroll. During successive scrolls there is no hesitation. The fix holds for all vi's during the Labview session.

Exiting Labview with or without rebooting of PC causes the former anomalous behavior to be restored, Labview again hangs when scrolling.

0 Kudos
Message 1 of 2
(2,686 Views)

Hi mla,

 

Are these the same VIs that you were using previously in LabVIEW 8.6? If so, did you see this same behavior? Have you tried cleaning up your code a bit so that it does not stretch across four screens?

 

Regarding the workaround you have found, that is interesting behavior. I will look into that to see if I can find an explanation for you. Thanks!

 

Aaron P

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 2 of 2
(2,660 Views)