Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How do two fieldpoints with embedded VIs communicate with each other?

0 views
Skip to first unread message

Gizmaa

unread,
Aug 8, 2008, 4:40:05 PM8/8/08
to
I was able to get the Datasocket method working.  It is a very slow method though.  I didn't check the exact run time but it was perceptible.  Are there any fast methods?  I will eventually need to collect a lot of data from a cFP-1808 and store/manipulate it in a cFP-2120. An image and the VI are attached.


FP2FP_1.jpg:
http://forums.ni.com/attachments/ni/170/347975/1/FP2FP_1.jpg


FP2FP.vi:
http://forums.ni.com/attachments/ni/170/347975/2/FP2FP.vi

Ben

unread,
Aug 9, 2008, 10:10:05 AM8/9/08
to
I'd advise an upgrade. The FP code from early version sof LV 8 has issues with the CPU being dominated by background processes.
Ben

Kevin_S

unread,
Aug 11, 2008, 12:10:08 PM8/11/08
to
Hi Gizmaa,
You could use network-published variables along with this article (<a href="http://digital.ni.com/public.nsf/allkb/FA610367EC62574186257118005089F2?OpenDocument" target="_blank">Methods for Binding a Shared Variable to a FieldPoint Channel</a> ) in order to access different channels.
Also, you could try using a TCP/IP connection since the Shared Variables are built upon this.&nbsp; Using TCP/IP directly will allow you to communicate faster than through the use of Shared Variables.
I hope this helps,Kevin S.Applications EngineerNational Instruments

Gizmaa

unread,
Aug 12, 2008, 2:10:06 PM8/12/08
to
I tried the first method outlined in the link you provided but I keep getting an error with the network-shared variable.&nbsp; It returns a 0, an error code of -1950679034, and a source of ni_tagger_lv_Read.&nbsp; A search of NI showed that this is likely due to a value not being received.&nbsp; The variable information is correct since it's visible and updating in the Variable Manager. What am I doing wrong?Attached are my project files.


test3.lvlib:
http://forums.ni.com/attachments/ni/170/348736/1/test3.lvlib


Cross_Test.lvproj:
http://forums.ni.com/attachments/ni/170/348736/2/Cross_Test.lvproj


FP2FP_3.vi:
http://forums.ni.com/attachments/ni/170/348736/3/FP2FP_3.vi

Gizmaa

unread,
Aug 13, 2008, 1:40:06 PM8/13/08
to
I tried using the FP Open vi with only half success.&nbsp; It worked on my computer but when I embedded it it did not do what it was intended to do.&nbsp; The script I created checks the temperature of a thermocouple on a cFP-1808.&nbsp; Depending on the temperature it lights a certain amount of LEDs.&nbsp; When run from the project setup it returned the error &quot; The specified tag name was not found. : FP Create Tag .vi&quot;, error code of 32812.&nbsp; The .iak file was put in the root directory of the FP (C:\Mesocosm-01.iak).&nbsp; When run on the computer I correct the .iak file location. &nbsp;Attached are the necessary files.


FP_Test.zip:
http://forums.ni.com/ni/attachments/ni/170/349059/1/FP_Test.zip

Gizmaa

unread,
Aug 14, 2008, 1:40:06 PM8/14/08
to
I've tried everything I could possibly think of for the FP I/O.&nbsp; Attached are some images of my project, realtime startup vi properties, and the circuit diagram.&nbsp;Mesocosm-05 is the host, 192.168.1.164Mesocosm-01 is remote, 192.168.1.160&nbsp;When embedded the program is suppose to turn an LED on for 60 seconds on both Mesocosm-05 and Mesocosm-01 however when it is actually run only the LED on Mesocosm-05 activates.


Project.jpg:
http://forums.ni.com/ni/attachments/ni/170/349365/1/Project.jpg


RT_Properties.jpg:
http://forums.ni.com/ni/attachments/ni/170/349365/2/RT_Properties.jpg


SimpleTest.jpg:
http://forums.ni.com/ni/attachments/ni/170/349365/3/SimpleTest.jpg

Gizmaa

unread,
Aug 14, 2008, 2:10:07 PM8/14/08
to
I removed Mesocosm-01.iak from the project and added Mesocosm-01 (the controller) to the project.&nbsp; Afterwards I checked out the .iak file in the project directory and it showed both Mesocosm-01 and Mesocosm-05 only.&nbsp; The VI works if I run it from the project.&nbsp; It deploys and everything is as it should be but when I deploy it as a startup the remote controller doesn't do anything.&nbsp;


Project2.jpg:
http://forums.ni.com/ni/attachments/ni/170/349381/1/Project2.jpg

Gizmaa

unread,
Aug 14, 2008, 4:10:08 PM8/14/08
to
Writing to a file doesn't seem to work either.&nbsp; It's quite odd considering I have done it successfully in the past.&nbsp; Am I doing something wrong?&nbsp;Image of block diagram attached.&nbsp;&nbsp;


Project3.jpg:
http://forums.ni.com/ni/attachments/ni/170/349430/1/Project3.jpg

Gizmaa

unread,
Aug 15, 2008, 11:40:08 AM8/15/08
to
Success!&nbsp;All I have to do offer up a lab assisstant as a sacrifice to the Fieldpiont gods on the 14th day of the 8th month at the stroke of noon while humming the theme to &quot;Battlestar Galactica&quot;.&nbsp;&nbsp; It's that easy!&nbsp;Honestly I have no idea why it started working this morning.&nbsp; I added a second file output as shown in the&nbsp; attached image and it worked.&nbsp; The LED on the remote fieldpoint activates and deactivate along with both files being correctly written to the host datalogger.&nbsp;What would cause a fieldpoint to arbitrarily work/not work?


magic.jpg:
http://forums.ni.com/ni/attachments/ni/170/349630/1/magic.jpg

0 new messages