Archived:How do I Completely Copy my cFP Application to a New Controller

Updated May 3, 2018

National Instruments does not actively maintain this document.

This content provides support for older products and technology, so you may notice outdated links or obsolete information about operating systems or other relevant products.

Reported In

Hardware

  • Controller for Compact FieldPoint

Operating System

  • PharLap
  • VxWorks

Issue Details

I have a Compact FieldPoint (cFP) system and want to copy the code onto a new cFP, but do not have access to the source code.

I have a real-time (RT) application running on a Compact FieldPoint (cFP) controller.  I want a method to quickly deploy the entire application to a new controller for any of the following reasons.
  • To deploy a duplicate system at a different location.
  • For redundancy or contingency planning.
What is the quickest way to get a new controller up and running in place of an old controller?

Solution

Without the source code, you'll need to make a backup of the existing system with NI's Replication and Deployment (RAD) utility. This tutorial explains the process in detail, but in general you will:
  1. Install the RAD utility on the host computer. 
  2. Create a RAD image of the existing controller. 
  3. Deploy image to the new controller. 

For older systems you may need to duplicate the code without the RAD utility. To do so you can follow theses steps:

Throughout this KB, the existing controller is referred to as the "old" controller.  The replacement is referred to as the "new" controller. 
  • The procedure in this KB assumes the following conditions are satisfied.
  • The old system is using default channel configuration for every channel on all banks (1).
  • The old system was developed using LabVIEW Real-Time 8.6 or later (2).
  • The old system is using FieldPoint 6.0.3 or later (2).
  • The old controller is being replaced by an identical model.
  • The backplane and modules types are identical in the old and new systems.
  • The modules are in the same slots in the old and new backplane.
  • The new controller is configured with a DHCP IP address accessible from the same subnet as the old controller (3).
Following the steps in this KB will produce the following results.
  • The new cFP system will be configured identically to the old.
  • The same software will be running on the new system as the old.
  1. FTP to the c:\ drive of the old controller.  See Transferring Files to and From an External Flash Drive on a Real-Time Controller for instructions.
  2. Copy all files from the c:\ drive of the old controller to an empty folder on the host computer.                       
  3. Remove the old controller from the backplane.
  4. Install the new controller into the backplane.
  5. Place the new controller into Safe Mode and reboot the new controller.  See page 35 of the cFP-21xx User Manual for more information.
  6. FTP to the c:\ drive of the new controller. 
  7. Delete all files from the c:\ drive of the new controller.                                                                                                                                                
  8. Copy the contents of the folder from the host computer to the c:\ drive of the new controller.                       
  9. Remove the new controller from Safe Mode.
  10. Disable the Startup VI and reboot the new controller.  See page 35 of the cFP-21xx User Manual for more information.
  11. Open the LabVIEW Project Explorer for the application
  12. Right-click the old FieldPoint Controller item and select Properties.
  13. From the General category, enter the DHCP IP address of the new controller.                                                                                                         
  14. From the Project Explorer, right-click any variable libraries that were hosted on the old controller and select Deploy.                                                      
  15. Enable the Startup VI and reboot the new controller.
  16. The old system has been transferred to the new system.
Notes:
1 You may configure channels to non-default values after following the instructions in this KB by referring to KnowledgeBase 2OT9MLOH: Retaining FieldPoint Configuration Settings After Power Cycling.
2 This KB was tested with these specifications.  The process is likely to work with LabVIEW 8.0 and later.
3 If not using DHCP, omit steps 12 - 13.  The static IP address of the controller is contained in the ni-rt.ini file.  The IP address of the old controller is transferred to the new controller in step 9.

WAS THIS ARTICLE HELPFUL?

Not Helpful