08-12-2008 03:06 PM
08-13-2008 01:49 AM
08-13-2008 08:56 AM
For practically any other application I would agree but a cFP-1808 is an ethernet controller so all I can configure on it are the ethernet settings and module configurations (no port choices). I will be using an embedded program on a cFP-2120 to grab sensor data from a cFP-1808. Since there is no way to choose the port on a cFP-1808 how do I use TCP to get the data?
Am I suppose to add more than just the IP address to the address input?
08-13-2008 05:22 PM
Hi Gizmaa,
The simplest way to read data from your cFP-1808 with your cFP-2120 is to simply use a FP Read.vi. Refer to the IP adress of the cFP-1808 in the FieldPoint IO Point In input and the cFP-2120 should read the data directly.
Regards,
Stephen S.
08-14-2008 08:36 AM
Here is the latest attempt using the simple FP functions. It turns on an LED on the host controller and a remote controller then turns them off after a minute. The host's LED turns on but the remote LED doesn't. What syntax does it expect if I were to use the IP address?
Host: Mesocosm-05, 192.168.1.164
Remote: Mesocosm-01, 192,168.1.160
08-14-2008 02:02 PM
Hi Gizmaa,
I think I see what you are doing wrong. It looks like you are refering to the address of the cFP-1808 in the FieldPoint IO Point constant, but you are still using the module name for your cFP-2120.
I think this should fix it: First of all, if you haven't already, you will need to add your network module to your project. Do this by right clicking your .lvproj file in the Project Explorer window, going to New>>Targets and Devices...>>Existing target or device>>FieldPoint Network Modules, and selecting your cFP1808.
Then, when you click the dropdown arrow on your constant going into the FP Write or Read and click Browse..., you should be able to select the TC module under your cFP-1808 and choose the channel that you want.
Regards,
Stephen S.
08-14-2008 02:52 PM
I have gone to trying to work between two cFP-2120's now. The LEDs make for better feedback. I did try adding the other FP to the project but that didn't work either.
Seeing as this thread has gone from TCP to FP functions I should just refer any further posts to my other thread. Thanks for the replies.