LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application takes time.

I have an application running on LabVIEW DSC. I have around 50 Input / output
tagpoints. This i do with datasocket connection. Everytime i have to do a data socket
connection, i have to create a control on the front panel.
My problem is now my application is becoming very very slow. That is I have one master
VI from which i call all other Vis as subVIs. If i navigate from the main VI to the sub VIs
and back to main VI, the VI s just hang or it takes time to open up.
But if open the subVIs individually and run them, it runs faster. If i link with other VIs, it is
slower. What could be the reason for this. Also is there a limit to the no. of local variables
to be created on the front panel?

Thank you..
0 Kudos
Message 1 of 2
(2,722 Views)


Hi,

What version of DSC are you using? There was a bug in 6.1 which slowed down DataSocket communication. See this for details:

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/cc0b78bf91dff18486256cae006c2fd5?OpenDocument


If you already have the fixes, or are using 7.0:
Is the source of your data the DataSocket server? Or you're using the front-panel DataSocket only to connect to your IO tags?

If it's the latter, and in general when you do not want the Tag value to be displayed on the front-panel, you can use the Read and Write Tag VIs (instead of making the DataSocket connections on the front panel). This will speed things up.

The more Controls/Indicators you add to your front-panel, the slower your app gets. As a
rule of thumb, use only the required number of controls/indicators on the panel. Also, consider divding the display of tags into sub units -- and load these indivdual VIs only when needed and then unload them.

Hope this gives you some ideas.

Regards,

Khalid

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