ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Shared Variable Description

Hi,
 
I've created alot of Network Shared Variables through Project Explorer...and i have also added a description for each one in the shared variable properties screen
Could someone please tell me how i can get access to the description through LabVIEW?
 
Many thanks
 
Mike
 
0 Kudos
Message 1 of 6
(3,294 Views)
Have a look at: http://digital.ni.com/public.nsf/allkb/2E8BAD0EA218A7558625712E0003F044?OpenDocument.

At the bottom of the document it shows that the SharedVariableIO Class has a property called "Description" .
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 6
(3,280 Views)
Thanks for that - the only problem i have now is that if i put a shared variable on the page and link it to a display. I then have to create a seperate reference to the shared variable io server to get the description. Is there a way of using this same reference to get the value so if i change that both the description and value update. At the moment i would have to change this reference and then also the shared variable itself.
 
Hope i have made myself clear
 
Thanks
 
Mike
 
0 Kudos
Message 3 of 6
(3,272 Views)

Hi Mike,

Would it be possible for you to post your code so I can better see what your doing?

Thanks,

Applications Engineer
0 Kudos
Message 4 of 6
(3,250 Views)
Hi attached is a sample of code in which i am viewing a value and also its description.
 
Ideally id just like to have the channel name once and the description and value be taken off that, rather than if i ever change it , then have to change the input to the description and also the variable displaying the value. Hope that makes sense
 
Regards
 
Mike
 
0 Kudos
Message 5 of 6
(3,229 Views)
Hi Mike,
 
I'm not sure if what your asking is possible without needing to rename the channel, as the channel is a reference wired to the input. I will ask some collegues today and get a response back to you.
 
Thanks,
 
Applications Engineer
0 Kudos
Message 6 of 6
(3,207 Views)