LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DSC Memory usage and Datasocket

I have two questions. I am using Labview 7.0 with the Datalogging and supervisory control module.
1. Is it more efficent to use a DSC memory tag to share data between VI's or a global variable? I know the global variable makes a copy of itself for each instance it is called but does a memory tag do the same thing or do all references just point to the same address in memeory?
2. Is it more efficient to use Datasocket to connect realtime to the tags I created or should I use the read and write VI's for DSC? Programatically Datasocket is easier but will that be the case when the VI executes?
Thank you for your time and help, in advance.
0 Kudos
Message 1 of 2
(3,079 Views)
Hello,

The differences between using globals or DSC memory tags to access data between modules should be slight so either method should be usable in your application. The decision to use one versus the other really is up to the programmer�s preference.

Typically it is more efficient to use the DSC read and write VIs to interface to tags rather than using Datasocket. The DSC module is optimized for efficiency, especially with higher tag count applications, while Datasocket is optimized for ease-of-use. Performance typically is better when using the DSC module.

I hope this helps. Let me know if there is anything I can help with or clarify.

Ken S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,079 Views)