Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Why Does My Shared Variable Not Update to Reflect Changes Made to the Typedef?

Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
Primary Software Version: 8.5.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Base Package, LabVIEW Development Systems>>LabVIEW Full Development System

Problem:
I have created a custom control as a typedef and I have created a shared variable from this typedef The problem I am encountering is that when I make a change to my typedef  the shared variables do not reflect the changes. Why is this happening?

Solution:
When a shared variable is created from a typedef custom control, the shared variable is not actually linked to the typedef. What is actually happening is that the shared variable is created based on the typedef but it does not remain linked. This is expected behavior.

A possible workaround for this is to use local variables if the application permits. Local variables remain linked to the typedef and they will update to reflect changes made to it.

Related Links:
Developer Zone Tutorial: Using the LabVIEW Shared Variable
KnowledgeBase 454FH4NF: Shared Variable Error Explanations


Attachments:





Report Date: 06/25/2008
Last Updated: 06/26/2008
Document ID: 4MOHSTEQ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit