Cfp-2120 serially trasmit IO module data

We have a  cFP-2120 with AO, DO, DI, and AI modules connected.
All work fine.  Using Ethernet communications.
Can apply a voltage on the AI and do a FP Read ala the example Analog Input.vi
Receive expected measurement.
Curious if its possible to alternatively do this with a serial connection.
Can I send an FP Read through serial connection and read back the resulting IO module channel value through the same serial connection?

Wes_OH - the FP-100x (As well as the cFP-180x) are not "intellegent" controllers, meaning you cannot run LabVIEW RT on the controller.  You read data from the 100x to your PC over a serial connection.  The RT controllers (like your 2120) do not send data over the serial port, they publish their I/O over Ethernet.  The serial port on the 2120s are available so your embedded application can utilize the port for serial communication, it is not intended to be used the same way as a FP-1000 or cFP-180x serial port.
You may still be able to use the FP-1000 application with your 2120, it depends on how the FP-1000 application was written.  Is it a LabVIEW application?  Is it using the Optomux VIs to communicate with the 1000?  Or is it using the FieldPoint Write and Read VIs?  If you are using the Optomux VIs, then you cannot reuse the application because the 2120 does not have a Optomux server running on it.  If you are using the FieldPoint Read and Write VIs, then there is a good chance you can reuse that application because those VIs support Optomux (over serial) and Ethernet communication (for the 2120) depending on the I/O Point you are trying to communicate with.
-Tommy

Similar Messages

  • Getting cFP-1808 Data to cFP-2120 Controller

    Hello,
    We have an existing cFP-2120 Controller with the following embedded system software.  We are on LabView 7.1.1 on the Windows Host.
    LabView Realtime
    7.1
    NI-Watchdog
    2.1.2
    NI-VISA
    3.2
    NI-Serial RT
    2.5.4
    NI-IrDA RT
    1.0.1
    Datsocket for LabView Realtime
    4.2
    FieldPoint Drivers
    5.1.0
    FieldPoint VI Manager
    3.1.0
    We have purchased a cFP-1808 Ethernet/Serial backplane and additional I/O modules to extend the I/O on this system (as the I/O on the existing controller's 8-slot backplane is already full with 3 AI-111, 3-DI-301 and 2-RLY-420 modules).  We were told and I have seen documents that suggest that we should be able to read data from the cFP-1808 on the cFP-2120.
    Unfortunately, however, we can only read data on the first module (an AI-111) and up to the second module's channel 11 (a DI-301).  The data reads fine within NiMAX, but not from the controller.  No channels after that channel can be read either.  The module has been swapped and the backplane swapped as well.
    The cFP-1808 is on the same subnet, etc.  The Ethernet info is:
    cFP-2120 Controller, 10.0.0.242
    cFP-1808 Backplane, 10.0.0.142
    Subnet Mask(s) 255.255.255.0
    As I said, some of the data can be read up to a certain channel and the I/O data can be read within MAX.  So, it's not really an Ethernet config issue.  So please, *no replies on the Ethernet config* or hardware setup.
    We are also trying the Optomux (extended) Commands via the serial connection (direct via null modem cable), but have not had much luck there either.
    If we can not extend the I/O in this way, then how else would be with such an existing controller?
    Thanks,
    Tom Held
    Miller Engineering
    Information Technologies Group

    Please allow me to answer my own post here.
    We were able to read data on modules residing on a cFP-1808 I/O backplane from a cFP-2120 controller.  This was done using "logos" protocol and the Datasockets functions.  The format of the URL is as such
    logos://10.0.0.10/FP/4DI/12
    where,
    10.0.0.10 is the configured IP address of the cFP-1808
    FP is constant for FieldPoint
    4 refers to the number "4" module in the bank
    DI is a designation of a digital input module (in our case a DI-301 module), and
    12 is the number "12" input channel
    We were under the incorrect impression that Datasockets could not be used on an embedded/controller system.  To the contrary, this does work.
    There are recent documents released by Idaho National Labs and other government studies in SCADA security that suggest that the Datasockets protocol is not secure.  Therefore, we have made some reassurances by isolating this communication behind a firewall.  Only a single Windows XP host can communicate with the network segment which contains both the cFP-2120 controller and the cFP-1808 I/O backplane.
    We were never able to get the Extended Optomux functions to work between cFP-2120 controller and cFP-1808 I/O backplane (using respective serial ports and null modem adapter).  This would be a secured method as well, if it could be made to work.
    Tom Held

  • Measure data using RS-485 Port on cFP-2120

    I have cFP-2120 with one RS-485 Port, One RS-422 and one RS-232 Port available, i want to measure data using the exisiting RS-485 Port on cFP-2120.
    I have Rx and Tx Signals from my equipment. Two wire
    Also i have RS-485 Enabled device with 4 port availble. I want to use RS-485 connected with RJ-50.
    Also give me pinouts for Rx and Tx.
    Thanks.

    I am a little confused by your statement "I have cFP-2120 with one RS-485 Port, One RS-422 and one RS-232 Port available".  The cFP-2120 has 3 RS-232 ports and only 1 RS-485  (or RS-422).
    Look in the manual for the cFP-2120.  Here is a link. http://www.ni.com/pdf/manuals/371380b.pdf  Pages 3-7 thru 3-10 have information and pinouts for the serial ports.  It also tells how the RS-485 port is a 4-wire port, but it can connect to a 2-wire RS-485 installation with jumpers and special programming to account for the echo back of outgoing commands.  Another alternative to 4-wire to 2-wire conversion is to get an RS-485 isolator that would have switches to set one side to 4-wire and the other side to 2-wire.  I have used this one from B&B electronics successfully.  Though you say you are using 4-wire on your device, so you would not need it unless you have the need for electrical isolation between the device and your cFP.  Perhaps the discussion of 2-wire was a misunderstanding.
    Remember that the transmit lines from your device will go to the receive lines of your cFP and vice versa.  The polarity of + and - should match between the two devices.  TX+ to RX+, TX- to RX-,  RX+ to TX+,  RX- to TX-, and GND to GND)
    As for VISA, you would just configure it like you would any RS-232 device with the baud rate, parity, and stop bits to match your device.
    Centerbolt, thanks for the kind words and posting the link to the other thread.

  • Communicating with serial peripherals via cFP 2120

    Hi, I'm using a cFP 2120 for taking measurements from RTD's and I connected the cFP to my PC using an ethernet cable. Since I have to read data also from a temperature controller which communicates using a serial port RS232, I want to know if I can plug it to the cFP, and how can I configure it with MAX or read from LW.
    Thanks
    sandrino82

    I have several applications that do this very thing.
    You can use the RS232 port on the cFP to talk to your instrument.   There are a couple of issues to consider.   The cFP does not have a VISA Server in it.  That means that the cFP can't make the COM port available to the network.  The cFP COM port must be accessed by a vi running on the cFP and the data passed on to the remote PC.  The COM port should always be fully configured by your vi.  There is no need to use MAX.
    Can you describe your existing software?  Does it include a host and target?

  • CFP-2120 & MAX 3.1.1

    Hi all!
       I've tried to install software on cFP-2120 with my old MAX 3.1.1 from my WindowsXP-based PC.  When it comes to software choose, Real-Time is not shown among other options.  So I'm unable to install Real-time software (RT 7.1) on cFP-2120.  If I connect to a cFP-2020, I can correctly install Real-Time on target.
       To fix this, I've installed MAX 4.1, unistalled newer VISA and Serial RT software (RT 7.1 seems not compatible with SERAIL RT 3...), and installed older Serial RT and VISA on new MAX 4.1.
       Is this behaviour expected? Is there a compatibility list of cFP modules, MAX, RT software and drivers?
       Thanks everybody!
    graziano

    Hi Graziano,
    maybe this is the document you need:
    http://digital.ni.com/public.nsf/allkb/B730A501736C999486256E59005A5BD7?OpenDocument
    The problem could be related to Field Point driver version.LabVIEW 7.1 and 7.1.1 RT components for the cFP-21xx were introduced with Field Point driver version 4.1.1.
    Clara
    AE Manager
    NI Italy

  • Serious Performanc​e hit on RT (cFP 2120) using LV 8.5 compared to LV 8.2

    Hello,
    We have just finished a large project using LabView 8.2 and Compact FieldPoint (cFP) 2120 on a Windows XP Pro computer.
    The system developed controlled equipment that forms critical parts of a Concrete Plant here in Norway.
    2 Identical units whre installed controlling two almost (but not entirely) identical pieces of equipment.
    The project has been a great success, and used technologies such as: StateDiagrams (StateDiagram Toolkit) to describe the System Processes, Network Shared Variables to transfer approx. 50 different  pieces of non-critical information over WLAN to a LabView based Surveillance Program in a Control Room from both "machines".
    The CPU Load on the cFP was approx. 65 % which gives the ETS Realtime OS (RTOS) plenty of "room" to run its "maintenance threads".
    After the last installation, we decided to try to migrate the system to LabView 8.5 on another Computer running Windows Vista. The system ported nicely and run on our test cFP 2120 as well.
    We had done extensive performance / cPU Load tests on our 8.2 system, and new that in a particular setting the CPU Load was:
      *** 65% *** measured using the System Manager (disabling VI and Memory Monitioring).  (Absolutely max measured is 71 % when the system is running)
    When we did the same test on the cFP running the LV 8.5 compiled code and with the LV 8.5 software installed on the cFP, we where in for a chock:
    The CPU Load was *** 87% *** in the particular setting, and could run over 90%.
    This renders LV 8.5 useless for our controll task. A setback, as we had plan to port our current code using the Statechart Module that we had bought for LV 8.5.
    We also installed a VI to "Monitoring the CPU Usage of a LabVIEW Real-Time Target" found at this link:  http://zone.ni.com/devzone/cda/epd/p/id/4713
    It turns oot that this VI gave us the same result as using the "System Manager" (if we summed the load for each priority), but also gave more info about the load at each priority.
    We of course did not run the System Manager at the same time, as this would cause a conflict: We either run the System Manager or the VI above. When the System Manager was run, the Vi above was
    disabled !
    We are running updating of the 50 Network Shared Variables in a Normal Priority Thread. The 9 StateDiagrams are each running in a Separate Thread started by including the VI for the StateDiagram in a  Timed Sequence with one frame: This gives all these Processes "Very High" Priorty and you can see that most of the work is done at this priorty level. The Very High Priorty level uses Single Process  Shared Variables with FIFO to send the variables to the Network Shared variables in the "Normal Priorty" Thread.
    The Shared Variabel Server is run on the PC in the Control Room and not on the cFP.
    Below you can see the Installed Components and the Performance Result for the cFP when Running configured for LV 8.2 and 8.5.
    For LV 8.5, the performance of each Priority Level is degraded with the same percentage (approx 30%) which is really serious.
    National Instruments Engineers: Please help identify / fix this problem and give us a Time frame for when the problem can be fixed!
    LabView 8.2 Installed Components on cFP 2120:
    http://objective.no/gostemp/cFP_Components_LV_8-2.​jpg
    LabView 8.2 cFP 2120 cPU Load:
    http://objective.no/gostemp/cFP_LV_8-2_CPU_Load.jp​g
    LabView 8.5 Installed Components on cFP 2120:
    http://objective.no/gostemp/cFP_Components_LV_8-5.​jpg
    LabView 8.5 cFP 2120 cPU Load:
    http://objective.no/gostemp/cFP_LV_8-5_CPU_Load.jp​g
    regards
    Geir Ove Skjærvik
    Objective Technology
    Norway
    Geir Ove

    Hello,
    I have reproduced the problem in a minimalistic test application !
    Download the test from this link: http://objective.no/gostemp/lv_8_5_probleml.zip
    This is how the test looks: http://objective.no/gostemp/LV-8-2_8_5_Test_01_vi.​jpg
    The ZIP file contains the following files:
    a) LV-8-2_8_5_Test_01.vi    -  The test VI itself
    b) SK1_Host_Remote_Panel_Shared_Variables.lvlib   -   The Network Shared Variables that I use only one of in this test (SK1_Error_Code)
    c) Interprosess_Data.lvlib  -  The Single Process Shared variables that I use only one of in this test (Reported_Error_Code)
    I have not included a Project File and you need a Compact FieldPoint to test this. I have a cFP 2120.
    Now to the intersting figures:
    Compiled under LabView 8.2 this application runs with 21 % CPU Load as measured by the System Manager on the cFP 2120.
    Compiled under LabView 8.5 this application runs with 42 % CPU Load as measured by the System Manager on the cFP 2120.
    This is a dramatic degradation of Performance !
    I have not yet investigated if removing the Shared Variables will change this.
    NI: Please Help locating this problem !
    The only thought I have is this: Does LV 8.5 take care of the change of the Shared variables when the two .vlib libraries are moved to a 8,5 project ?
    Geir Ove

  • Cannot connect to cFP-2120 via FTP

    I am using several cFP-2120 running LV RT 8.2.1 with the FieldPoint drivers version 5.0.1. for process control and data acquisition. All data are logged to a file and broadcasted via network-shared variables. The data files can be downloaded using an external ftp client. Lately, two of our units have been giving me some trouble as I sometimes can not access the cFP2120s via ftp. I can ping the unit on the network though, all programs are still running and I can still access the network-shared variables. Only a reset of the controller seems to solve the issue.
    Any pointers would be greatly appreciated.
    Volker 

    Kyle,
    Thanks again for contributing.
    > Can you only connect one time after you reset and it stops working if you try to reconnect shortly there after or does it work for awhile and then eventually it stops working?
    After we reset the controller it seems to always work for awhile before it stops working again.
    > Are you using the controller to perform any other tcp communications with an other servers, besides the network shared variables? 
    Our system is configured as a slave on a Modbus TCP network and is queried typically once a minute.
    > Whats your memory usage on the cFP? Do you have the System State Publisher software loaded? Try connecting with DSM and see how much CPU and Memory usage you are using.
    No, I havent done this yet. I think this was instroduced with LV8.6? I just upgraded to the latest LV version and will investigate. This will take a week though.
    > Can you check the timeouts in MAX to make sure they didn't get changed? Right click on the cFP and select Communication Timeout Settings. From stock they should be 15000 ms.
    The timeout in MAX is still 15000ms.
    > Are these cFP dedicated to just this one task or are they reconfigured from time to time?
    We only reconfigure these units when we upgrade the software. This has been less frequent lately and happens maybe once a year.
    All the best,
    Volker

  • Embedded LV 8.0 Real-Time application on cFP-2120

    Hi!
    I'm working on a project which involves programming of a real-time application running on a cFP-2120. The purpose of the application is to control the motion over 7 test-objects with a servomotor.  Test-objects have 3 sensors each. Remote control of the application is necessary. The program should have a GUI which shows graphics of sensordata and buttons to open other VIs like set-up, details, logging etc.
    Could i just build an application like it was meant to run on a pc, deploy it to the cFP-2120 and use Connect to Remote Panel ?
    Or
    Should I build separate VIs;
    -the program which always runs on the cFP-2120 and
    -the User Interface which is runned on a computer now and then which gets value from Network-Published shared Variables
    I need some tips here 

    I would definitely go for the second option, esp. if you want to have this program for a longer time.
    It's much easier to write a good GUI on the PC without the limitations of a real time OS. There you have to keep too many things in mind (esp. no dynamic arrays, performance issues due to GUI programming, not too many sub VIs)... So write a quite minimal control software for FP and do all the interface stuff on the PC. Then you can easily log all the data into a database (if you have the DSC Engine) as well.
    Cheers,
      Carsten

  • MAX doesn't discover cFP-2120 under VISTA

    Hi All!
       In a PC with Windows VISTA, MAX 4.3, with latest fieldPoint drivers (6.0) doesn't see cFP-2120 modules.
       I'm connecting to an unconfigurated module, and it is not seen from MAX. At the beginning of this test, I could connect to an already configured cFP-2120 module, which resides on the same subnet.  Now, I can't do that!
       Note that, in the same PC, I run a Virtual Machine with Windows XP, and older MAX 3.1.1, with this I can see both modules (separately, since I use crossed cable from PC to cFP).
       The Virtual Machine, when launched, run on the VISTA OS.
       I suspect that there's something I'm missing of VISTA network configuration, a packet filtering, or something like that.  I've seen many options in VISTA, for Ethernet adapter advanced properties....
       Of course, I've already turned off all firewall, antivirus, and antivirus' own firewall.
       The strange thing is that with this same PC, I configured a week ago a cFP-2120, but since I'm not the only one working with this laptop, maybe someone changed something.
       Any idea? Thanks!
    graziano

    No problem Graziano,
    feel free to contact us if you have any problem.
    Best regards,
    Fabio
    Fabio M.
    National Instruments
    Embedded & OEM Systems Engineer

  • Maximum useable memory on cFP-2120

    I'm currently running the cRIO-9004 with the cFP-2120.  I am only
    able to take 233mB of data before it stops recording.  It
    currently has a 1Gb CF card installed in it, and I'm wondering if the
    reason has to do with the cFP not recognizing the size of the card
    correctly.  The manual states that it will use cards up to 512mB
    in size...
    I don't have any 512 cards handy, or I'd try it myself.  Any input
    would be appreciated, as I'm supposed to be using this in the field
    first thing Monday morning...
    TIA
    Dan

    Yes, I'm accessing the d:/ drive.  After reading the manual, it
    appears that the cFP-2120 doesn't recognize anything larger than
    512mB.  I'm currently testing with 512 card now, and should know
    whether or not it works properly in about an hour and a half...
    Dan

  • Does the cfp 2120 have a battery backed up clock

    Hi im currently devloping the cfP 2120 with 2 relay cards a AIO card and a thermo couple card, and it will be running for long periods of time logging data and using th clock to time stamp the files, In  a standalone fasion
    In the event of a power out will the cfp2120 keep the time?
    IT will not always be conencted to a ethernet. so i wondered if there is a small litum battery backup for the RTC inside it
    many thanks,
    Chris

    Hi,
      yes there's is a single 3V lithium battery inside the cFP 2120.
    Usually you'd hook up to a time server to handle for any time slipages, or just to make sure that all the units on the network are working from the same timestamp, but if you don't want this, then set the time-server to 0.0.0.0. (You can use this to prove whether the battery is keeping the time by setting it to 0.0.0.0, then run some code to write a file (it will be timestamped, or but the current time into the text of the file) and then switch it off for a couple of minutes. On power up, check the time again.)
    http://digital.ni.com/public.nsf/allkb/9926C6EC966DAC558625704900612D68
    http://digital.ni.com/public.nsf/allkb/C4E56AD6450FC5FD86256DFF0007FF01
    Hope that helps
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer

  • CFP 2120 I/O

    Hi, I control a cFP 2120 through the use of a dedicated laptop. I cobbled together a VI to control a pump and take some measurements. First, I tested the VI without the cFP in the system by connecting the pump, etc. directly to the laptop. This worked very well and my data files were complete.
    When I put the cFP in the system, I still get control through the front panel that appears on the laptop, but when the program terminates, I get an error message about the path to the data file. The path is on the laptop and the VI cannot find the file. I'm certain that I'm making a simple mistake here. How do I get the VI to pass the data back to the file on the laptop?
    Thanks

    Kerouwhack-
               RavensFan is right. There is a couple of ways to do this. Either you can use TCP/IP, Datasocket, or Shared Variables to pass data back to the host computer and then log the data there or you can log the file to the flash memory on the cFP. From your message I think you are doing the second option. You need to make sure that you are referencing the correct file path on the cFP to where you are writing your log file. Here is a great article on the differenct paths possible. Let us know if this fixes the problem.
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager

  • LV2010 and cFP-2120 and remote panel

    I have a project in LV2010 for cFP-2220.  When I convert the project for a cFP-2120, the remote panel doesn't work.  When the browser goes to the IP address it defaults to 192.168.1.2/#Home.

    The remote panels and browser control work fine for the 2220. I inserted the 2120 into the project in place of the 2220 and modified the fieldpoint paths in the vis. I upgraded the software on the 2120 using LV 2010. The original program was written for the 2120 in earlier versions of LV. It was updated to LV 2010 and adapted for the 2220 along with program feature updates related to pumps and other necessary system component changes. Maintenance and support of our customers units involves replacing pumps and other components and/or replacing their 2120's. We are trying not having to replace their 2120's.
    When we deploy the program as a startup it runs controls and collects data, but the remote panel access with Internet Explorer isn't working. We have tried creating a new index.htm.

  • Need to build communication redundancy using serial RS-232 for Data Transfer b/w Host and RT irrespective of TCP/IP Data Transfer

    Hi - I would like to build the logic in which it should accomodate the communication redundancy using serial RS-232 for Data Transfer b/w Host and RT irrespective of TCP/IP Data Transfer.
    I want to do data transfer b/w host and RT through RS232 VISA portal whenever TCP/IP ethernet cable has been unplugged from the controller continuosly , it should keep on checking for TCP/IP link re-establishing also , when ever the tcp/ip link established again that time the communication should be using in that link only. This is accomplished by deploying the RT vi as execuatbale file. I made some logic regards to the above said logic , bur it was not working as much I expected.
    I request you to go through the attached two VI's and let me know , what I did wrong in that,
    Please do the needful.
    Attachments:
    TCP_Serial_Host.vi ‏33 KB
    TCP_Serial_RT.vi ‏41 KB

    even i am new to this topic and i am trying to get familiar with these protocols
    refer to tcp server/client examples in labview examples

  • MAX error 7411 when downgrading cFP 2120

    Hello,
    I am running LV 8.2 for an old Industrial project that I am doing some changes to. The project is running on a cFP 2120. That cFP is running 24*7 in production.
    The actual cFP 2120 I am trying to test my software on, currently has LV RT 2009 installed.
    But I now need to downgrade it to LV RT 8.2.
    I first tried using the MAX version (4.0.x) installed in LV 8.2, but when trying to do"Add/Remove" software, I get Error7411 as shown in link below:
    http://objective.no/gostemp/max_error_7411.jpg
    I then tried to install MAX from my LV2009 distribution in the LV 8.2 environment. Installed fine, but when trying to run it, it complained that it was not properly installed.
    I restored my PC, and tried to install MAX 4.4.1 from a LV 8.5.1 distribution. This version of MAX works fine, but I get the same Error 7411 when I try to click the "Add/remove"  software button.
    So, the question is:
    a) How do I clean the rt software (RT 2009) from the cFP2120 so that I can do a clean install of LV RT 8.2 onto it?
    Please help, as all my searching has not given me any clue on how to do this !
    Geir Ove

    Hello Muks
    Yes, I have seen that. Upgraded to Max that came with LV 2009, that rendered MAX useless: It complained about a "faulty installation".
    Restored XP computer, and tried with MAX that came with LV 8.5.1. That version of MAX worked, but I get the same problem.
    Funny that National haven't thougt of this. There should be a way of "cleaning" software off a cFP so that one could start with blank sheets and install any LVRT version onto it !
    Any help from National Instrument staff?
    Geir Ove

Maybe you are looking for

  • Vista SP1 + VGA adapter on Macbook Pro

    Problem: Attach a vga monitor via a dvi to vga adapter, the vga screen is black. Tests: Attached a DVI monitor (Mac 20" screen) - passed. Tried another dvi to vga adapter - failed. Tried another VGA based monitor - failed. Vista does chime when the d

  • MacBook to Projector--- Cables?

    I need to connect to a projector, with sound and video. Any tips on cords I need? Thanks, Erin

  • Indoor repeater for cisco 1300

    Hello, We have an outdoor wireless network working with two cisco 1300. One acts as a access point and the other one as a bridge. We would like to extend the coverage of the bridge... Is that possible? There's one spot inside where signal quality is

  • How can I know which version of Firefox I'm using?

    I tried to download an EOB from my insurance company's website, and it won't allow me to view the EOB. I talked to their web support and was told that I have to use the same version of Firefox that they support, which is Firefox 26 or 27. I don't kno

  • Purchasing module

    Hi, Our proposal customer has a requiest for us. He wants to see somewhere in the A/P invoice the picture of his incoming invoice. It means that the paper based invoice would be scanned,and we have to attach to the A/P invoice. It is possible, with S