LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Showing globals

Hi,

I'm using a gobal vi consisting of about 10 globals being booleans, strings ,paths and a VISA resource name. I'm using an options screen to let the user edit some of them. The problem lies in opening the options screen. When opened, the border of the options window is drawn. It then takes about 10 seconds to draw the contents of the window. The interface is locked in the meantime. If i use the profiler it says about 2,5 seconds is being spent drawing the vi. It just seems to lock for a while. Same thing happens when i open the globals vi directly. It seems to lock only showing the window borders. After a while it draws the contents and the window is responsive again. I'm using LabVIEW 7.0 Express.

Has anyone got a clue what's going on?

Th
anks,

Marco
0 Kudos
Message 1 of 3
(2,793 Views)
Hi Marco,

the problem is the VISA Resource Name control. I think your dialog has this control on the front panel. If this control will be displayed LV will search for valid VISA resource names. This will take an amount of time (on my PII 400 Mhz system about 15 sec).

Replace this control with a ring control, single selection list box or something like that. Use VISA Find Resource to get all VISA resource Names and display it in the control. Search which index will match the value in the global and set the control to display that value.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 2 of 3
(2,793 Views)
Hi!
I think the Problem is the VISA Resource Name. When you open the VI, it searches for all known Visa Names.
I think, that is the problem, but I don't have any idea about the solution.

Sorry

Slarti
0 Kudos
Message 3 of 3
(2,793 Views)