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

Can I Use LabVIEW Shared Variables with LabVIEW Items on Compact FieldPoint?

Hardware: Compact FieldPoint>>Controllers>>cFP-2020, Compact FieldPoint>>Controllers>>cFP-2110, Compact FieldPoint>>Controllers>>cFP-2210, Compact FieldPoint>>Controllers>>cFP-2120, Compact FieldPoint>>Controllers>>cFP-2100, Compact FieldPoint>>Controllers>>cFP-2200, Compact FieldPoint>>Controllers>>cFP-2000, Compact FieldPoint>>Controllers>>cFP-2220, Compact FieldPoint>>Controllers>>cFP-2010

Problem:
I would like to use the LabVIEW Shared Variable with a LabVIEW Item on a Compact FieldPoint (cFP) rather than a FieldPoint Read. How do I do this?

Solution:
The item must be created on the embedded controller before you can use it with the LabVIEW shared variable. Use the Init Publish or Publish Data VIs to create the LabVIEW Item. An example of publishing LabVIEW Items may be found in the LabVIEW Example Finder in FieldPoint»Advanced»Publish LabVIEW Items (Server).vi. You must install NI-FieldPoint to find and view the example.

All LabVIEW Items will appear on the cFP under the LV group in one of two blocks.
  1. If a block name was specified at creation, the LabVIEW Item will appear under the block.
  2. If a block name was not specified at creation, the LabVIEW Item will appear under a block called RTPublished.
The path for variable binding depends on which of the above cases apply. Consider the example of a cFP-2xxx with an IP address of 192.168.100.10. A LabVIEW Item named Item1 was created under a block named Set1. A LabVIEW Item named Item2 was created and a block name was not specified.
  1. psp:\\10.0.36.33\LV\Set1\Item1
  2. psp:\\10.0.36.33\LV\RTPublished\Item2
To bind to this LabVIEW Item from a LabVIEW Shared Variable, enable aliasing on the variable, select PSP URL in the enable aliasing section and enter the path not including psp:.

Related Links:
LabVIEW 8.6 Help: DataSocket Select URL VI

Attachments:





Report Date: 05/29/2009
Last Updated: 06/05/2009
Document ID: 4XSBPTYP

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