Deploying the cRIO controller host VI

When I include a Variable Shared Network-Published in my host VI, VI wants to deploy on my cRIO.  Without the shared Variable Network-Published, it runs on the host as planned.

Yes, the Sub host VI post work and VI RT is under the lens of the LabVIEW project.

How to use a shared variable in a VI to run on the host computer?  I need to pass data between my RT VI running on the cRIO and a host VI running on a Windows host.


Hello Shall12,

I misinterpreted your posts original - this option should be changed to the target on which variables are deployed.  Based on your screenshot, the library is contained on the RIO and should be changed it.  The behavior you're seeing is described in more detail here:

4TIGNL8A knowledge base: disabling auto-deployment of Scan Engine of e/s Variables

3V0H36XL knowledge base: connection to a host PC VI in a startup on a real-time target Application

Tags: NI Software

Similar Questions

  • Deploy the cRIO/FPGA project on identical targets

    All, I apologize that this seems to be a frequently asked question, but I'm wondering if anyone has the tricks in their bag.  I'm looking to create several identical parts of a tester, and I'm looking for the most effective way to have a unique (RTexe and FPGA bitfile) code base that I can deploy on a bunch of cRIO-9035.

    My best case scenario is that I can compile for a chassis and deploy for the rest, because I won't be able to support long-term material and which would minimize the possibility of errors creeping in different compilations presents (and make it easier on anyone that upgrades the equipment later).  In addition, it is about half an hour to recompile everything for a new chassis, which is just a pain.

    What think you of all?

    Thank you

    Use the utility of replication and deployment (RAD).  It is a tool developed by the engineers of system OR specially for this purpose.  The underlying idea is to get a working system and then you take a picture of him.  You can then deploy this image to the rest of your controllers.

  • Server R2 2012 crashing when you deploy the stand-alone host model.

    I encountered a problem with my server 2012 model deployment to a new independent host that I built in my virtual data center.

    Specification of the server:

    HP DL380 g8 linking the latest PSP firmware updates

    Local storage

    ESXi 5.5 U2 may 2015 HP build

    Card 8 GB SD for esxi 1.9 local TB SAS storage

    HP P420i

    Whenever I have move R2 server in 2012 to that Server Manager host down and other questions are noticed.

    Another noticed is characters and text on the virtual machine begins to blurr from the console.

    If I power off the virtual computer and move it to a server in my group I have no problem. Both servers are running the same version of 5.5U2

    Has anyone seen this problem before or suggestions?

    The result of more tweaks and troubleshooting exposed a faulty processor.

    This isn't linked VM.

    Thanks for the reply.

  • Backup in cRIO controller file

    Hello world

    Im working with a LVRT application that includes monitoring of the signal and send these values to a server of SQL database (online).

    My clients ask me if it is possible to record a 'backup' file in the cRIO controller, this file will be created if there is an error connecting DB, when the situation becomes 'ok' (after a desconnection) I need the backup of the output file and send the data to SQL server.

    What is the best way to do it? I mean the best way to save the data in a cRIO controller. I read a little of PDM, but I'm not sure how to write the correct path to save the file in the cRIO.

    BTW: Im using OR cRIO-9074

    Best regards


    The filepaths in RT are the same as they are in Windows, at least with regard to your LabVIEW code worries. The cRIO drive is C:. You can create a folder on this drive (either programmatically or by using an FTP client) and record your temporary backup file in it.

    Regarding the choice of the file format, it is to you. Text, binary, PDM, is convenient for your application. However, the flash drive on a cRIO has a limited number of cycles number writing (somewhere between 100,000 and 1 000 000) so you can not write to him constantly at high frequency. If you do this when there is a connection error, and these errors occur infrequently, so I don't you worry about this.

  • UDP communication via secondary ethernet port on the cRIO-9074 problem.

    Hi guys.

    I connected my host pc running LV 2010 my cRIO-9074 port using a main ethernet crossover cable. I want to use the second port ethernet on the cRIO-9074 to read UDP messages, and I want to access these messages on my host. UDP messages are sent from a local network, but for testing I also use a second pc running LV 2010 to send UDP messages.

    I configured the ethernet on the cRIO-9074 ports according to this tutorial: "knowledge base 4E0DGASK: Configure the Ports of double Ethernet on real-time controllers'." " My host and primary ethernet port belong to 'Subnet A' while the second port and the second computer, sending UDP messages belong to 'Subnet B' (at the end of my post I will list the masks of ip addresses and the subnet).

    For simplicity, I used the VI´s of this example as a basis for UDP communication. The "", which broadcast messages UDP, will run on the secondary computer. The "", which reads messages UDP, will work on my host pc.

    Now, in the 'UDPServerOnRemoteTarget' VI, you must specify two IP addresses (port # remained unchanged at 3363):

    1: the IP address of the ethernet port that will be broadcast UDP messages.

    2: the IP address of the ethernet port that will receive the messages.

    In the #1 case I put the IP address to the IP address of the ethernet on the secondary pc port.

    At the #2 I tried to set the intellectual property: a) IP address of the secondary ethernet port on the cRIO, b) IP address of the ethernet on my host computer port and c) IP address of the primary ethernet port on the cRIO.

    None of the parameters produced results. I also tried to change the port number, which did not help.

    However, if I bypass the cRIO and connect the host pc and the secondary computer directly (by using a cable crossed a regular cat5 ethernet cable), I am able to send and receive UDP messages (the two stand-alone always are on different subnets). I guess that this at least excludes any fault in the VI´s code.

    Does anyone know what I'm doing wrong here? Is it possible at all to read the UDP messages that are sent to the secondary ethernet port on the cRIO my host pc?

    I have searched the entire site OR and forums, but didn't come through all that solved my problem. Most of the other tutorials configuration resembling my case is to import the device sends UDP messages in the project, but which is clearly not possible in my case, or is it?

    My IP settings are:

    cRIO 9074:

    Primary ethernet port:

    Secondary ethernet port: (static)

    Host PC:

    Secondary PC: (static)

    SubnetMask on all ports are the value

    I hope someone out there can help me out.

    Kind regards



    Stupid mistake. I was running the VI on the host instead of the cRIO pc, which explains why direct communication between the computers worked. Everything works well when it is compiled for the cRIO.

    Kind regards


  • cRIO 9068 + Scan Engine Support error - even if it is installed on the cRIO, after the deployment of error says his lack


    I have a cRIO-9068 I try to use the scan mode for. I have intalled all the latest drivers and software as explained. However, when I put my chassis to scan mode, then select deployment all, I get this error on my chassis and all my modules:

    "The current module settings require a NI Scan Engine support on the controller. You can use Measurement & Automation Explorer (MAX) to install a software package recommended NOR-Rio with NI Scan Engine support on the controller. If you installed LabVIEW FPGA, you can use this module with LabVIEW FPGA by adding an element of FPGA target under the chassis and drag and drop the module on the FPGA target element. »

    Everyone knows this or know why labVIEW does not recognize that the software is installed on my cRIO or is it not installed correctly?


    Thanks for the image. I saw a green arrown beside all my pictures of chip and it seemed that meant that the software wasn't really being installed. I formatted my cRIO and did a custom install. My problem was that I had the two labview 2013 and 2014 installed and the cRIO put conflicting versions of software. After doing a custom installation and choose only the versions of 2014, my picture now looks like yours!

  • Deploy the shared target rt variable fails (crio-9073)

    I use a cRIO 9073 with LabVIEW 8.6. I have some variable published to my PC network I want the cRIO host read. However when I try to deploy the variables on the cRIO, I get the following error:

    Calculating dependencies...
    The checking for conflicts. This may take some time...
    Prepare the items for download. This may take some time...
    Variables variables.lvlib\\\robot robot deployment deployment has failed (error:-2147220721, (Hex 0x8004030F) the configuration database cannot be opened, perhaps because of corruption.) Note: the steps that you did which led to this error and contact technical support).
    Completed with errors of deployment

    I tried to reinstall the software on the cRIO, which includes the network Variable 1.5.0 engine and tried hosting variables on the cRIO. I still get this error.

    Everyone knows about this problem? What should I do to use variables shared on the 9073?

    I tried stubborn MAX, who did not work. Then I reformatted the cRIO and the problem is solved.

  • End of line constant returns only the PMQS when it is deployed on cRIO

    LV2011 SP1: I found that when I get a string to use with the TCP write VI, I get a different result by using the function of end of constant line if I run the LabView project against the project deployed on the cRIO-9101.  In both cases, the project is running on the cRIO, but using LabVIEW, constant of EOL gives a CR - LF.  When lance boot on a deployment, I get only a LF.  I worked Arturo the problem by replacing my constant EOL with CR and LF explicitly on my block to concatenate strings.

    On an earlier version of LV (9.6), I did have this problem with the same target.  The gap has occurred only since development to LV 2011 program.

    Any ideas?

    Hi Ken,

    I found a CAR (Corrective action request) #148678 that describes this problem. There is currently no version of the patch / which solves this problem yet, but the current solution is to concatenate the two manually, as you did. I apologize for any inconvenience this has caused.


  • Cannot read txt file correctly on the cRIO RT after deployment system

    As shown in attachment VI works fine on my system cRIO9073 during execution of the Project Explorer and press the arrow. But unfortunately it no longer works when it is deployed (having a build). This VI is part of a larger project, but I was able to trace the issue to this VI, where something goes wrong with the reading of the text file. I now use the case of fake (not shown), where I have temporary added the txt file content in a string constant. Of course, it's a good solution, but not flexible.

    Anyone have an idea what's not here?

    I use NEITHER-RIO 3.1.0 - January 2009 version as the version of the software on the cRIO system.


    I don't know that you still have this issue, but I think that you cannot use this property (axis type) node in your cRIO. If please remove it and try again to see what would be the influence.

    I'll hear it on your part.

    Kind regards


  • How to get the time controller for cRIO-9074 real download


    I am a beginner of LabView. Now, I'm doing a project at school with cRIO 9074.

    My problem is that I deleted the default embedded controller system. But in the measurement and automation software I have not found the system controller with function of monitor online. How can I download the load file?

    Wait for your help and thank you for your help.

    Even if you format the cRIO system it should be found by the MAX and opening the software config that you can only reinstall the file system assuming that they are installed on the system (PC).

    Therefore, use the MAX for the cRIO. Maybe it's a help to set the dipswitches to NoApp and IPReset first.

    It may be useful


  • exchanging the crio since the Project Explorer controller

    I made a mistake and chose the wrong controller cRIO. Now I find I have different controller, but my whole project is built with all the modules and the screws. Is there a way to simply edit the current to the right controller!


    Hi kwaris,

    You can add a new controller to your project and then only move the elements of the evil to the correct controller controller.

    You cannot move all the items at once, but you can move items in groups. This will ensure that the project is rebuilt correctly.

    For items you can not move, please try a copy and paste operation. This is the case for information such as the construction specifications.

    Once everything is moved or copied, you can remove the bad controller.

    NIUK and Ireland

    It only takes a second to rate an answer

  • cRIO autorun host VI

    Hi, I am using a cRIO (9012 + 9102) with LV 8.5, build a project of QA control and data boarded for a hybrid race car.  I would like to be able to run this stand-alone without a connected PC.  I had my FPGA runs just fine on its own, download the bitfile, load automatically under tension and all that and the FPGA code runs fine without a connected computer.  Now I have a host VI on my controller, which stores the data on a USB key.  I am fighting to figure out how get the host VI runs automatically, just like the FPGA does, and I begin to feel that it is because you can not do this!

    I see in the host VI properties (right click on the host VI > properties) there is a category of execution, where I have the option to select "run opening.  It is great, but is there a setting somewhere 'open' the VI whenever the cRIO is turned on?  I have a digital built-in switch to turn recording on my USB on and outside, so I can stop writing about a file before deleting the key.

    Thanks for your help, I'm probably missing something pretty basic, but I've looked everywhere with all the keywords, I can think.


    The recommended way to create an application, which begins when a target time starting real LabVIEW, is to build in an executable and set it as start. You can do this by building the executable for the VI real time, right click on the VI and choose "set as startup" and deployment. But, you can now configure start screws as well although I think that it is much faster to create an executable file and the right way to do it:

    Startup configuration live on target time real LabVIEW
    Start screws vs executable startup on a real-time operating system

  • Remotely to access the variables of the cRIO

    I have a cRIO-9014 with a cRIO-9114 which is used as a stand-alone system controller (we use several types of modules c I / O and DI/O).  I want to connect a cable ethernet and view select input/output to facilitate tuning PID control.  I am currently using global variables for communication between the host on the PC and the vi rtexe vi.  This works that whent the vi rtexe is launched from the PC.  If I try to launch the host program, while the rtexe is running on the cRIO, when variables deployment stop the rtexe.  If I prevent deployment variables, global variables in the host are not communicating with the cRIO.   Anyone know how to get data in real time of the CRIO without interrupting the program running on the cRIO?

    Thank you!

    If you use variables published shared network and host them on the target (make sure that the library is below the target in the Project Explorer), variables will be deployed when you start the host VI. This way you will not interrupt the program of control over the cRIO.

    See the knowledge base article: How can I deploy a compiled executable shared network Variables? for more information.

    Hope this helps,

  • deploy the run-time engine

    Hello everyone,

    I'm trying to deploy my application of teststand to a target computer. My teststand application uses: TestStand 2014 (32 bit), LV 2014 SP1 (32-bit).

    Here's the problem I encounter while using the deployment tool.

    1. in the attempt to include RTE LV in my Installer, the deployment utility requires that I provided LV 2015 Installer. See the attached picture.

    I wonder why she asked median LV-2015-64 bit Installer. If I ignore the request, the build process failed.

    2. I use the shared variable to communicate with the compactRIO controller. The compactRIO controller is hosting EVS. My question is,

    a. I have to "deploy" my variable library shared, even though my system is not an EVS?

    b. I read in the manual that I can deploy the variable Fanny shared through the LV utility deployed the lilbrary step. So I added this step in the test sequence. Whenever I run the sequence, this step deploys the shared variables. On the target, I wonder if it is necessary to deploy the shared variable on each run of the test sequence. I think it should only be deployed only once on the system target. Am I wrong? If so, how to remove this utility LV deploy step of the library of the test on the target sequence, since there is no development testbed on the target system.

    3. I use a database to record test results after each execution of test sequences. I can export the schema of the table data and copy it to the target computer. My question is, how to import the schema of the database in the target table, since there is no system development teststand on it (no way to call configure it-> result-> database to import the schema of the treatment table)?

    I hope that teststand experts out there can give me some help tips to help me understand the whole deployment process. Thank you.



    (1) make sure that LabVIEW 2015 Run time is NOT slected to install options-> drivers and components

    (2) I don't know


    Generally, I put my data link in a UDL file and include that in my distribution.  I set the Connection string to use a relative to this udl path and make sure that the UDL is copied to the same location on the targer

    I have also included in my repertoire of the Application of TestStand CFg:




    StationGlobals.ini (attention if you do not want to replace the existing one, I use it to store the addresses of the instrument)

  • IP address on the cRIO-9075

    I have a cRIO-9075 serving piece of alternative/backup for one of our production test systems.  I was about to try a new code on this backup, but I can't connect to it.  I searched in MAX and tried to ping to the IP address that it should be, but I get no response.  It has been configured with a static IP address so it would be ready to be deployed if necessary.

    Is there anyway that I can get back to the default IP address so I can connect to it?

    Take a look at page 17 of the user of 9075 Manual:

    To reset the IP address of the 9075 you will need to walk through the following steps:

    1 press and hold to reset for 5 seconds, then release. The status light
    comes on, then starts to blink three times every few seconds. The
    chassis is now in safe mode with the release of the compatible serial port.
    You can use a serial port terminal to read the IP address of the
    controller. If you want the controller to a new DHCP protocol
    connection, go to step 2.

    2 press and hold to reset for 5 seconds, then release. The status light
    Repeat the same behavior. The cRIO-9075/9076 trying to establish
    a new connection to DHCP. If he fails, he attributes to a link-local
    IP address. If the DHCP connection is effective and appropriate for
    your application, go to step 4.

    3. configure the IP address and other network settings in MAX.

    4. press and release the Reset button to restart the chassis.

    The following documents will also be useful.

    Why don't my CompactRIO or Single-Board RIO controller is displayed in Measurement & Automation Explorer (MAX)? -

    Connection to a target LabVIEW Real - Time (RT) directly with a cable crossed -

Maybe you are looking for