キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/6
3,207件の閲覧回数
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 件の賞賛
メッセージ2/6
3,193件の閲覧回数
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 件の賞賛
メッセージ3/6
3,185件の閲覧回数

Hi Mike,

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

Thanks,

Applications Engineer
0 件の賞賛
メッセージ4/6
3,163件の閲覧回数
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 件の賞賛
メッセージ5/6
3,142件の閲覧回数
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 件の賞賛
メッセージ6/6
3,120件の閲覧回数