Real-Time Application doesn't run; source code works fine

The short version is I'm programming a cRIO and apparently the RT code isn't running after being deployed and I can't figure out why. This is further complicated that I'm doing all this remotely and I don't have direct access to the unit since I'm 500 miles away. I'm working through a couple of other guys who know some LabVIEW, but neither works at the site so they have to explicitely travel out there every time I have a bright idea.
I was out there a few weeks ago. During this time I created a simple cRIO code, since I'm new to cRIO, that allowed the user to move a control and change a graph. It worked fine, but I should note it did not have an FPGA component. After that I worked on the real code, which reads some sensors, displays the results on a UI and logs the results. This did have FPGA. I used it in the LabVIEW environment and it worked fine, but I ran out of time before I could complete a release version and deploy the RT as a compiled application. I sent them the release version later, my contact deployed it but got network stream errors when running the UI.
After hours of looking at network problems and sending over debug versions, I tried creating a log on the RT level so I could see what was going on. The log doesn't even open, even if it's the first command in the code. I pored through the forums and found http://forums.ni.com/t5/LabVIEW/cRIO-Troubleshooting-creation-and-deployment-of-startup/td-p/1956475... which took me in a new direction.
I had my contact use the RT debug console and when he pulls up the RT front panel, it shows a broken run arrow. He clicks it and nothing happens -- no running, no bug list. If he pulls up the bug list manually, it's empty. Again the RT works fine if you run it through LabVIEW and not as a compiled real-time application. He also noticed that the Open FPGA VI was grayed out on the block diagram. No other icons are.
So the problem appears to be that the compiled RT application is getting some kind of error but not telling me what it is, and it seems to be related to opening the FPGA. I've recompiled the FPGA and RT. I've had him recompile the RT himself, but not the FPGA because it would take hours. He's downloading everything correctly to the cRIO. The RT is set to run automatically. He's rebooting the cRIO every time he deploys the RT. They have LabVIEW on a computer there but it doesn't have the right drivers to run the code from the LV environment. I'm resisting having them install the dirvers because downloading big files is complicated there due to security restrictions and a lousy network connection at a remote site. Besides that doesn't solve the problem of the RT executable not running the same as the source code, which according to the thread above appears to be a thing.
The latest thing I'm trying is that I sent him instructions for how to build a source distribution from the project I sent and try deploying that to the cRIO. Even if that works I'm not sure that's an acceptable solution because I assume running the VI rather than the EXE is slower, and they need speed on this project.
I simply have no idea where to go from here. I probably need to get direct acess to the cRIO and I might be able to convince them to ship it to me so I can figure this out, but I'm not sure where I'd even start other than the standard voodoo debugging of "try stuff at random until something works". I'm open to suggestions if anyone has managed to solve this before.
Code snippet of the first part of the project is attached, though I'm not sure how much good it will do. I'm really stumped and the client is getting frustrated with how much of the budget is going to fix this.
Solved!
Go to Solution.
Attachments:
RTMainSnippet.png ‏623 KB

Have you checked the cRIO error log? Usually I'd access it through the LabVIEW project (right-click on the target, don't remember the exact menu options and I don't have the RT toolkit installed on this machine to check), but it must be stored somewhere on the cRIO as well, although I don't know if it's in a human-readable format.
Which cRIO are you using? What exactly do you mean by "debug console"? (This may be related to the cRIO - the newer ones have video out, although I don't know if that's what you're referring to.) With a broken run arrow, you won't get an error list unless you're running in the development environment.
Have you confirmed that the software installed on the cRIO matches the version you're using for development, including patch level? Get someone to connect to the cRIO with Measurement and Automation Explorer, and get a list of the software installed on the cRIO.
Sounds like the ability to connect with a remote debugger would be helpful here, if you can get the right drivers installed on the machine with LabVIEW that's connected to the cRIO. Make sure all driver versions match what you're using. Any chance you could then do a remote desktop connection from your work site to the remote LabVIEW machine?

Similar Messages

  • Startup application doesn't start on cRIO (work fine on the target with LV RT)

    Hello!
    I have a application (running on a cRIO-9075) that is communicating with a GPS via RS-323 (using NI-9870).
    I can run the code without problems with LabVIEW RT on the target but when I build the executable and setting it up to run at startup it doesn't run.
    If I remove the GPS code, the startup application will run fine. As soon as I put back the GPS code, it will not... I see that looking at a Heartbeat shared variable (no heartbeat when the GPS code is there). Also, the startup application will not run if the GPS code is there even if that code is disabled...
    I have attached a screenshot of the code and one of the software installed on the cRIO for more clarity.
    I'm using LabVIEW 2011.
    Thanks in advance!
    Vincent
    Attachments:
    GPS Code.PNG ‏10 KB
    Software on cRIO.PNG ‏22 KB

    Hello,
    Sorry for the late response.
    I was able to make the application work for some time and for an unknown reason, it's not starting anymore. I made a change in the code and the problem is now back.
    The code still work as expected when launched using LabVIEW (arrow button).
    The output from the console is attached to this message, everything seems fine to me but maybe I'm missing something.
    I've looked at my code and I can't find any unreachable code (case structure or disable structure).
    I don't know if it might be related but I'm also getting the famous 1502 error (cannot save bad VI without block diagram) so I have to enable debugging to be able to build my application (which doesn't start afterwards).
    Any ideas?
    Thanks
    Vincent
    Attachments:
    App_NOT_Starting_Correctly.txt ‏3 KB

  • Real time application

    hi 
    i had a problem creating a real time application. 
    the project have all the files on the image1(proyecto), I'm trying to create the real time for then run the host executable. 
    i put all the sources files like image2(sourcefilesrttarget), the others configuration still quiet.
    then i built it, set us startup, deployed it, and for last run as startup, reboot the rt target, but then when i gonna run the host executable, the variables doesn't work and the executable is already on the firewall. 
    when i just connected the CRIO- rttarget ,deploy the principal vi for the target that is Aplicacion RT principal controaldor ,then run the principal.vi of the host it works fine.
    So i don't know why with the building and deplying the real time doesn't work? maybe something of configuration it's missing but  i don't know. 
    thnks for any help
    Attachments:
    proyecto.png ‏72 KB
    sourcefilesrttraget.png ‏67 KB

    Thnks Omar R. 
    yes we are missing some configuration but i don't have idea what is it. 
    i followed the first link to deploy network variables but this doesnt work when i run the exe, and then when i gonna run the principal.vi since labview i get the next error
    Possible reason(s):
    LabVIEW: (Hex 0x8BBB0005) Unable to locate the shared variable in the Shared Variable Engine (SVE). Deployment of this shared variable may have failed, the SVE has not started, or the SVE is too busy to respond to this request.
    i post you all the configuration windows about the .EXE 

  • Attempt to build real-time application failed

    When I try to build my real-time application in order to deploy it to a crio device, it fails. I can run the program just fine by opening it and clicking run. It can deploy and run all day that way, but it needs the computer that way too. So I need to be able to build and deploy it. When I do a build preview it completes just fine with no errors. I have set the program I want to start up as the startup and my subVIs virtual folder under always include. This is typical procedure for deploying projects to the crio.
    When it crashes I am getting an error:
    The build was unsuccessful.
    Possible reasons
    An error occurred while saving the following file:
    C:\Program Files\National Instruments\LabVIEW 2009\vi.lib\rvi\ClientSDK\Core\ModuleGeneration\CommunicationInterfaceUtility\niFpgaDmaChannelImplementation.ctl
    Invoke Node in AB_Source_VI.lvclass:Close_Reference.vi->AB_Build.lvclass:Copy_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_RTEXE.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_Application.lvclass:Build.vi->AB_RTEXE.lvclass:Build.vi->AB_Build.lvclass:Build_from_Wizard.vi->AB_UI_Frmwk_Build.lvclass:Build.vi->AB_UI_FRAMEWORK.vi->AB_CreateNewWizard_Invoke_CORE.vi->RTBUIP_CreateNewWizard_Invoke.vi->RTBUIP_CreateNewWizard_Invoke.vi.ProxyCaller
    <APPEND>
    Method Name: <b>Save:Target Instrument</b>
    I put in a service request (Reference#7259553) but I am just not getting help fast enough. I am on a real deadline here and I just sort of expected the application builder to work like it has always done. I have done this a million times with other applications and never had an issue like this. 
    Thanks in advance for your help guys.
    [will work for kudos]
    Solved!
    Go to Solution.

    With the fantastic help of applications engineer Will Schoettler, we were able to solve the problem.
    1. First we tried creating a new project file from scratch, adding all the files and compiling the fpga. Same error.
    2. Next we made individual builds deploying each subvi individually to see if one of them was causing the error. Each built without a problem.
    3. I tried to create a new build for the main crio program and tweek the settings. Instead of manually adding the subvi and variable library folder to the 'always include' section of the build option, I simply added the main VI to the startup programs list and was going to let LabVIEW figure out which VIs to add. For some reason this gave me a more verbose error explanation and gave the following reason as the last sentance in the error explanation
    "Due to operating system limitations, LabVIEW cannot create the folder because its complete path contains too many characters." 
    I moved the project folder to c:/ , fixed the broken references in the project, and it built the VI and deployed it just fine.
    The builder creates a directory with a really long path name within your project folder, so if you have your project folder deep in your directory tree it will attempt to create files with paths too big for windows to handle.
    Mad Kudos to Will Schoettler the app engineer for such a potent and thorough troubleshooting task list of things to try that lead me straight to the solution. I am glad it was something so simple and not some form of file corruption or something wrong with my code. 
    Thanks for trying to help guys.
    [will work for kudos]

  • CRIO: error while compiling real-time application

    My code can be run when the cRIO is connected to PC with Ethernet cable. 
    But when I want to compile (build) my code, I get the following massage. 
    Also the picture of the massage is shown below. 
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 6 occurred at Copy in AB_Targetfile.lvclassostBuild.vi->AB_Application.lvclassostBuild.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW: Generic file I/O error.
    E:\2013_05_23a_research\2013_05_27a_Richard's\exercise\2013_07_07_exampleFinder_1DMAFIFO\examples\CompactRIO\Module Specific\NI 9234\builds\NI 9234 Getting Started\NI-cRIO9024-UConn\My Real-Time Application\c
    Solved!
    Go to Solution.

    Hi Cashany,
    What version of LabVIEW Real-Time are you working with? What cRIO are you deploying to? What version of the NI-RIO Drivers are you using?
    Behind your error dialog you have a Load Save Warnings dialog. What is the full expected path that LabVIEW is expecting to find this VI at? Have you tried correcting this conflict by moving the file to the expected path or changing your project to expect it from the new path? 
    Also I notice that the paths that are listed are rather long. Is it possible that your problem is related to this KnowledgeBase, Error 6 Occurs at Create Folder When I Build my Real-Time Executable?
    Miles G.
    National Instruments
    Applications Engineer

  • How to download an FPGA vi along with a real time application

    Hello
    I am targeting cRIO 9012, cRIO 9102. I downloaded the FPGA vi on flash memory and then built a real time application and set it as startup.  But there was no signals on the modules IOs which are handled by FPGA vi.
    Also the shared variables of that application when running as standalone aren't accessible. Please provide me the steps that should be followed to access the shared variables of a standalone real time system. Please help me resolve these problems.
    Best Regards
    Mani

    Hi Mani,
    What modules do you have?  What kinds of signals are you measuring?
    Have you deployed your shared variable library on your host PC?
    Regards,
    Jeremy_B
    Applications Engineer
    National Instruments

  • CRIO and ni 9234 modules not working or communicating through fpga with accelerometers, fpga connected to real time application which is also connected to shared variables linked to modbus slave

    Hi,
    I have a compact rio which has a 4 way chassis attached to that chassis is three ni9234 modules they are linked using fpga to a real time application then using shared variables in the low speed loop that are linked to a modbus slave to communicate with dcs, the ni 9234's have accelerometers connected to them with iepe ac coupled option on the c modules, my problem is the real time application seems to be running okay even when power loss occurs it restarts with no problem and the fpga writes to the portable hard drive bin files fine but without a accelerometer connected I get low noise readings as soon as I connect a accelerometer to any one of the 10 outputs it just goes to a fixed number (0.03125) as soon as disconnect it again it reverts back to reading noise, I have run a scan on the modules and only get a spike when I connect or disconnect the accelerometer, I have tested the voltage at the pins of the module and I get 22 volts dc which makes it more likely that the hardware is not the problem but a software is maybe causing this to hang-up, I attach project and files for your perusal. I also carried out a new project which in scan mode directly linked the module input to shared variable and the same scenerio again. Help would be much appretiated. 
    Many thanks
    Jason
    Solved!
    Go to Solution.
    Attachments:
    logger 2plusmodbus2.zip ‏679 KB

    Whren using waveform acquisition with the 9234s we recommend the following FPGA and RT template.
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/209114
    it can be extended as a data logger with:
    http://zone.ni.com/devzone/cda/epd/p/id/6388
    or using shared variables combined with scan engine
    http://zone.ni.com/devzone/cda/tut/p/id/9851
    The FPGA in all of these, as well as the RT framework have been used successfully by 1000s of users.  I would recommend giving these a try. 
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • 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

  • Using Vi server in real time application

    HI
    I am  using PXIe( 4330, 6363 and 4353) devices and I want to have executable file for the calibration program  ( AI,AO verification procedure and so on). So I think is necessary to have 2 programs for each 'verification procedure', one under host (executable file) and one under target (real time application).  in host program (exe file) I used VI server to call Real time application. There are some problems that I am phasing.
    First I can’t select the channels which the reason is abvious because my host program is under my computer not under target, but I do not know what is the solution?
     and second is, error number 7 occurred. which says : the path file is not correct , or the file is removed... 
    As I mentioned my goal is to have an executable file which contains Real Time application. Please specify If there are other ways to do that. I do not know wether the way I am doing is correct or is somethig impossible ?!!!!!!!
    Attachments:
    Analog input verification.png ‏158 KB
    AnalogInputFrontPannel.png ‏181 KB
    Error 7.png ‏148 KB

    Hi 
    there is no specific reason why I call vi dynamically, as I said I try to generate executable file which contains real time application, but before that I need to run host vi too see if it works or not. I did what you advised and I have same error still. I think there must be something wrong with path address and vi server, but I address .rtexe file or target vi to my host and for both I have error. 
    I have attached the projects here.and I have followed this example : 
    http://digital.ni.com/public.nsf/allkb/A7DBA869C000B5AE862570B2007C4170
    BTW , are there some special configuration for Real time application that I might missed ? 
    thanks 
    Attachments:
    PXIe-6363.zip ‏306 KB

  • Hypervisor: Create Standalone Real-Time Application (Error at deploying: File not found)

    Hello,
    I am using Hypservisor. With "Build Specifications" in the project explore I want to create a standalone real-time application.
    In my first try I only want to print some texts onto the real-time console (HyperTerminal) using the function "RT Debug String.vi". I built the real-time application successfully and got the rtexe-file locally on the windows system. But as I tried to deploy the application to the target system, I got the error: "File not found". Please check the attached file "error.txt" for details.
    I don't understand which file is not found. Or I used "\" as path separators. Is it wrong? I'd appreciate if you'd have any idea of the problem. Thank you very much.
    Regards,
    Scarletice
    Solved!
    Go to Solution.
    Attachments:
    ERROR.txt ‏1 KB
    builds.zip ‏153 KB

    Hello Casey,
    Thank you very much for your reply and your interest in our project. We are using Real-Time Hypervisor for the setup of our test stand. We use the Windows system to show the GUI and the Real-Time system for the real-time machine control and online data storage. We use shared variables and shared memory for the data exchange between the two systems.
    The system works generally quite fine now. But we still have to face new problems at each step forwards. I'm sure, I'll have more questions. I'd appreciate your advices. Thanks sincerely.
    Best regards,
    Scarletice

  • How to use airport time capsule on a dell portable pc with windows 7 taking in consideration that Time machine doesn't run with Windows ?

    how to use airport time capsule on a dell portable pc with windows 7 taking in consideration that time machine doesn't run with Windows ?

    TM does not work like that.
    If you want files to use later.. do not use TM.
    Or do not use TM to the same location. Plug a USB drive into the computer and use that as the target for the permanent backup.
    Read some details of how TM works so you understand what it will do.
    http://pondini.org/TM/Works.html
    Use a clone or different software for a permanent backup.
    http://pondini.org/TM/Clones.html
    How to use TC
    http://pondini.org/TM/Time_Capsule.html
    This is helpful.. particularly Q3.
    Why you don't want to use TM.
    Q20 here. http://pondini.org/TM/FAQ.html

  • 2D double array shared variable in real-time application

    Hi,
    I am using Labview 8 and I created a real-time application using shared variables. Is it possible to create a 2D array of double (I don't find how to do itdirectly). Probably I can define my own control and load this control as the custom data type of my variable. But is it recommended to do that?
    Thank you
    Alexandre Boyer

    Another way to do this is to specify your shared variable to be a custom control and create a control that simply has a 2-D array in it.  I've attached a zipped LabVIEW 8.2 project that shows both methods.  Enjoy!
    Becky
    Becky Linton
    Field Engineer - Michigan
    National Instruments
    Attachments:
    2DArraySharedVariable.zip ‏110 KB

  • Using PXI 6541 in real time applications

    Hi,
    I am using PXI 6541 for data acquisition from an electronic card. Electronic card generates an interrupt signal and PXI acquire data  when it gets interrupt signal. The interrupt signal is generated 1 KHz. But using my windows XP, I cannot acquire data on this high rate. The highest rate that I can acquire data is 50 Hz. If I want to acquire data with 1 K Hz, from electronic card using PXI 6541 and using Windows XP,  What Should I do.

    Are you trying to use the 'interrupt signal' as a sample clock for your acquisition?  If so, you should be able to route the signal to the PFI input and configure it as the sample clock.  
    As mentioned in your other thread (http://forums.ni.com/t5/Digital-I-O/Using-PXI-6541-in-real-time-applications/m-p/2561885), I would also recommend looking through some of the examples to get a starting point for your application.  
    James K.
    National Instruments
    Applications Engineer

  • Real Time Applications

    Hi All,
    Is there any link or document to how to configure Real Time Application in OBIEE....
    Thanks in advance.

    Hi All,
    I have our project implemented with the following architechture Weblogic Portal 10gr3,JSR168,Spring 2.5,Oracle UCM 10gr3,Oracle 11g DB,JDK 1.6.
    We have a new requirement where we need to change the offers,promos etc based on the user or region.
    Is it possible to implement a weblogic portal project with Oracle RTD.
    Any help on this would be appreciated.

  • Real time application and large amount of data

    Hi,
    I've a real-time application that needs to allocate large amount of data in memory (more than 5GB). I'm using 1.6 version of JRE and I'm planning to migrate to 1.8 because the application experiment a lot of "Stop of the world" every day. I spent a lot of time analysing and testing all the parameters and policies of the GC.
    The question is, with the 1.8 version dissapears the pauses on the application caused by the GC cleaning process?
    Thanks.

    Just noting that the GC only really needs to do something when objects are created and then are no longer in use.  So if your application needs a large amount of memory then keeping it, rather than discarding it might be a better solution.

Maybe you are looking for

  • How can we display 2 rows in a single row with new coulmn names?

    Hi, I have a requiment as shown below. ME A_END Z_END 1 aaaa 2 zzzzz I need the above data in the below format. A_ME Z_ME A_END Z_END 1 2 aaaa zzzzz How can we achive this?

  • Grrrr.  Or, "A Sucker's Guide to Safari"

    (I thought I posted this an hour ago but it is not showing up...) <edited by host> Basic question: Is there a (marginally) functional browser for the iMac? I have mostly struggled with Safari (code named "Beachball") - see below - but I've also tried

  • Exit for register updation

    Hi All, We are facing problem in register updation for refurbishment process (through plant maintainence). During the process thay will take the material in stock with valuation type C2-Repair & issue C2 if got repaired and use C3-Scrap if material s

  • Problem installing iTunes for Windows 8 64 bits

    I cannot succeed in installing iTunes on my PC, which is running under Windows8 / 64bits ! I keep having message "errors have been detected on your PC, installation aborted..." Help please !!!

  • Trial not downloading to my pc?

    I tried using google and Firefox. After I select English Windows for language and go into download,the Akamai download manager stops downloading and gives me the option to restart the download but it wont restart...? It then says if download doesnt s