cRIO - creation and deployment of real-time independent startup application troubleshooting
I use cRIO-9024 with a chassis 9112 for a control system. I use LV2011 SP1. When you run the system in development mode (by pressing the run button), everything seems to work properly. When the autonomous real-time construction and running in startup application, something stops working.
In order to know if the application is running or not, I toggle the user LED on the cRIO using this code:
When I turn off all the code in the main VI except this loop, the application deploys and runs at startup without problem (the LED flashes). I then add progressively more loops that I want to run (by disabling the code less and less), and the problem seems to be in the open FPGA VI reference block. If I disable this block, the slopes of autonomous real-time application (I guess the error 63195, handful of peripheral communication not valid, will spread along the line, but I know that the app works because the LED flashes).
I tried several configurations for this block open FPGA VI and mixed results. For example, if I set it up this way:
The application in real-time to start runs with the reference block opened VI FPGA active but work stoppages as soon as I turn on a code that makes use of this reference in the subVIs .
Someone at - it an idea of what could go wrong? I have explored the messages thrown by cRIO at startup but can not see the error messages (in fact, the console output is the same when I managed to deploy an application that is running (by disabling the code). I also tried to explore the error logs (via right click on target Utilities > view error log) but cannot decrypt any useful info on their part.
Any ideas will be greatly appreciated.
Hi kkguner,
My problem is that the code runs (apparently) ok in development mode, but it seems that, when it is deployed as a stand-alone application in real time, it does not at all. As I was not able to get messages through to watch the console output when restarting my cRIO or explore the Project Explorer error logs or error, I can only imagine what is happening.
I feel that QFang suggestions go in the right direction, but I've yet to be able to determine the exact cause and the solution of the problem.
The solution I set it with has been to deploy my application as a source with a start VI distribution instead of as a stand-alone application in real time. You can try this option.
What I could try when I have some time is to clean my system from LV (whether in mass compilation or by reinstalling completely). I tried a massive compilation of vi.lib and I got a good amount of (UN) insanities, the wrong screws and several other unfortunate messages.
kkguner, let us know what you discover in your inquiry, or if none of the suggestions solves your problem.
Thank you QFang and xseadog for your help. Best regards!
--
Raúl
Tags: NI Software
Similar Questions
-
[fpga] Faster communication between FPGA and host in real-time
Hi all
I received a card FPGA NI FlexRIO (SMU-7965R) installed on a chassis PXI (SMU-8135 embedded controller). I have an FPGA program to 40 MHz, and I use a real-time program to read a particular variable of FPGA on a regular basis. I do not stream. All I need is to get the most recent value during each execution of the loop of the program in real time (hence, DMA FIFO is not a good option). I am aware that you can read the FPGA indicators in the host program (real time) using the FPGA read/write control function. I used this feature to read a certain variable of indicator FPGA, as shown in the screenshot. The RT program takes 100 micro-seconds (10 kHz), which is not fast enough for my application.
Is there a faster method to read the latest FPGA data, or the program shown in the screenshot can be modified to reduce the time of loop RT? Any help would be greatly appreciated.
You're talking about an RT target a sitting in the RT himself FPGA card? If so, have you tried without the IP address of the target. See this thread to see why that would make a difference.
-
Simulate the sine wave using LabVIEW FPGA with NOR-myRIO and display in real time
Hello
I'm relatively new to LabVIEW FPGA. I am trying to test (and later apply) controllers high speed on myRIO.
At this point, I'm trying to simulate the sine wave from 1 to 10 kHz using Sinewave generator VI express. I also intend to display the sine wave on the time real (RT) using FIFO. However, I had a bit of trouble to understaing various synchronization parameters.
1. how to encode information about the sampling frequency generating sine wave? (The side FPGA vi requires only the frequency of the signal and possibly phase and does not rate update lines)
2. how to estimate the number of items in a FIFO? (that is, the relationship between the rate of updates to loop (RT), the signal frequency, sampling frequency and the number of items in the FIFO)
It would be great if we could share a very simple program (side host and target) that did something similar.
Thank you
MILIN
Milot,
I think the problem is the type of data in your FIFO. Your FIFO is configured to use a data type of I16. The problem is the number, it displays only ever will be-1, 0 or 1. To resolve this problem, you must send the sine wave as a fixed point data and convert it to a double on the side of the RT. This should significantly improve your resolution.
-
Deployment on real-time targets problem
Hi all
I am running Labview 2014 and I'm having a problem with the deployment of an actor in the development on the target environment. I have an application in which I run a single root player (I use the framework of the actor) which in turn lauchnes two instances of the same actor. The problem I have is that when I make a change to a VI, VI that is deployed for the race does not reflect any changes that I made. I noticed this initially when the actor of monitor using - I decided that I wanted no more using it and removed the actor watched the hierarchy of my actors. However, when I deployed and ran the new software set, the actor watched was always present. I could not seem to get this to go until I finally uninstalled the actor followed by my system. I'm not sure that this is related to the actor framework or if it a strange quirk in 2014. Does anyone have any suggestions?
Cheers, Matt
Thank you, Julian. As with many projects of master actor that I start (where inevitably I abjure their eternity), it was user error. The problem was an invoke node that was not supported in the environment of the CR. It was originally the players launch as the parent rather than the children if it appeared as if the code was not deployed. Cheers, Matt
-
Can you stereo audio input in an iPhone and listen in real-time?
Well, it's rather a strange question, so I will explain briefly the background... I am a user of the hearing and I'm considering the purchase of hearing aids new fantasies that are capable of connecting to an iPhone (wireless via THE Bluetooth); This allows several things, including the ability to listen to the audio from the phone.
I currently don't own an iPhone but wonder if buying one, as well as these hearing aids (Starkey Halo 2, if you're curious) might be a good option.
The thing that is currently my attention is: is there a way that I could use this configuration of audio stream of (for example), a TV or a stereo directly to hearing aids? To do this I would need power audio * in * the iPhone and do share the same audio output for hearing aids. The audio input should be high enough quality and (especially!) in stereo, not mono; so we couldn't use the 3.5 mm jack. Ideally, I'd like to audio input via a digital SPDIF (PCM stereo) connection; If this is not possible then via a signal analog stereo level line (preferably via XLR, but failing that would make a jack or RCA). Another important thing is that (except what is inevitable due to the nature of the Bluetooth connection), this should be pretty low latency.
I guess I would need some kind of accessory for this and perhaps also additional software.
How possible it seems?
You might want to repost on in the forum "hearing". There seems to be a number of users of Halo.
-
I use two apps sound module Korg for the iPad being controlled/played live on a Bluetooth / USB Korg piano keyboard/controller.
Are there apps that can save/capture these performance and module sounds apps?
GarageBand on iOS can capture?
Do I need some other app to capture the shows played in these applications sound module?
I would like to be able to record performances and read the iPad or playback on my iPod Touch 6th gen.
Anyway to do this easily?
TryiTrack Dock
-
In collaboration with LV 8.2.1 in real time to develop applications that monitor or emulate computers on bus RS-422. The following screenshots have been taken an application that monitors a transmission of 200 Hz. After a few hours, the PXI station would break a range impressive messages angry... most involving something about memory loss. After much hair pulling and passing money, my partner has discovered while looking at the available memory on the controller of loss of memory occurred at each loop containing a VISA read and propagation of error using the data nodes (see Leak.jpg of memory). He concluded that if he went to the propagation of the error to the regular old shift registers, then the available memory was rock-solid. (has the Leak.jpg of No memory)
Any ideas of what could be the cause? Do you see not any problem with the way that we code these kinds of loops? We always strive to optimize the way in which we use the memory on our urgent requests and VISA readings and DAQmx bed give us the heartache more than ever, we are able to allocate memory for these screws some tips?
Dan Marlow
GDLS
Hi thisisnotadream,
This problem has been reported, and you seem to be exactly reproduce the conditions required to see this problem. This was reported to R & D (# 134314) for further investigations. There are several possible solutions, of which one is the one you have already found the wiring error directly in the loop. Other situations which give rise to no memory leak are:
1 if the bytes of the property node port is not there and has read lies in each iteration and time-outs resulting are ignored.
2. If the structure of the deal is gone and just blindly check the bytes to the port and read each iteration.
3. If the timed loop is transformed into a while loop.
Thanks for the comments!
Kind regards
Stephen S.
-
Real-time application does not work; source code works very well
The short version is I'm programming a cRIO and apparently the RT code isn't running after you deploy, and I can't understand why. It is further complicated as I do all this remote and I don't have direct access to the unit since I am 500 miles away. I work through a couple of other guys who know some LabVIEW, but neither is working on the site so that they explicitly trip there whenever I have a bright idea.
I was there a few weeks ago. During this time, I created a code simple cRIO, since I'm new to the cRIO, allowing the user to move a control and change a chart. It worked fine, but I must stress that it did not have a FPGA component. After that, I worked on the actual code, which reads some sensors, displays the results on a user interface and stores the results. Did FPGA. I used it in the LabVIEW environment and it worked fine, but I ran out of time before I could finish a release build and deploy the RT as a compiled application. I sent them the version later, my contact deployed but had the network stream errors during execution of the user interface.
After hours to address network problems and sending over debug versions, I tried to create a log on RT level so I could see what was going on. The journal is not yet open, even if it is the first command in the code. I have pores through the forums and found http://forums.ni.com/t5/LabVIEW/cRIO-Troubleshooting-creation-and-deployment-of-startup/td-p/1956475... which took a new direction.
I had my contact use the RT debug console and when it pulls up to the front of the RT, it shows an arrow broken at delivery. He clicked and nothing happens - no work, no list of bugs. If he shoots to the top of the list of bugs manually, it is empty. Again, the RT works very well if you run it through LabVIEW and not as an application compiled in real-time. He also noticed that the open FPGA VI was grey on the block diagram. Are no other icons.
If the problem seems to be that the compiled application of RT becomes some kind of error, but do not tell me what it is, and it seems to be related to the opening of the FPGA. I recompiled the FPGA and RT. I recompile the RT himself, but not the FPGA, because this would take hours. It is download everything properly for the cRIO. The RT is set to run automatically. It is restarted the cRIO whenever he deploys the RT. They have LabVIEW on a computer, but it doesn't have the correct drivers to run the code of the environment of LV. I am to resist have them install the dirvers because downloading big files is complicated due to the restrictions of security as well as a lousy connection at a remote site. In addition, it does not solve the problem of RT executable doesn't work is not the same as the source code, which, according to the thread above, seems to be a thing.
The last thing I'm getting is that I sent her instructions for how to build a source distribution of the project that I sent and try to deploy on the cRIO. Even if it works, I'm not sure that this is an acceptable solution, because I assume running VI, rather than the EXE is slower, and they need to speed on this project.
Simply, I don't know where to go from here. I probably need to get direct access to the cRIO and I might be able to convince them to ship to me so I can understand this point, but I don't know where I got same departure other than the Voodoo debugging standard of "trying stuff randomly until something works". I am open to suggestions, if someone managed to solve this before.
Code snippet of the first part of the project is fixed, although I don't know how much what good it will do. I am really confused, and the customer is frustrated with how much budget is going to solve this problem.
-
Abnormal behavior observed in real-time executable.
Hello
I have an interesting problem. I have developed an embedded application of Real-time/FPGA for cRIO 9024 and come across a problem that I don't understand. I work FPGA and RT of top-level and subVIs, proven individually and together when it is run interactively. When I create and deploy an executable in real-time like start, however, the behavior changes. I posted the code below, which I'll explain briefly:
I have a state machine with 5 States architecture. "Initialize" and "Shut Down" are exactly meet once whenever the device is reset, and the cycle between them is wait > pre-test > wait > run the Test and repeat as many times as desired. Measures are taken by FPGA and past in real-time by DMA FIFO and are then recorded to the TDMS file by the real time. Everything else is just interface.
The problem comes from the first time, the program enters the Test case to run. The FPGA send measurements as usual, and they are stored in a growing table updated buffering in the fixed-point shift register shown below.
Run interactively, this method successfully bed, buffers, sorts and writes all data in the file. However, in time real executable, only the data collected in the first round (147 items total, as it is initialized by the whole shift register) are saved, the rest seems remainsin a buffer? before calling the following function TDMS write, is that in the case before the next test.
I'm unable to debug the executable file in real time, probably because of the FPGA reference or some other schema components. I tried to replace the pad with a FIFO in real-time, a variable shared with RT FIFO active and tried to write inside the loop. The FIFO are not improving the situation, and when writing inside the loop, the loop does not run quite fast to stand.
The problem does not exist when I run the VI interactively from my computer, only when I try to deploy all of the embedded, any application that works (as far as I know) except this one place.
Any ideas to solve, or workarounds?
Ryan
Technical support helped me to resolve the problem, the early termination of loop caused loop condition, although I still don't understand why the behavior was different as an executable file, because the condition of the loop has worked in interactive mode, so if someone has any ideas as to the why, I would still like to know.
-
Material LV real-time Ethernet com best practices
Hello
I just started to learn the LV in real-time, and until I get a new cRIO I just played with a former PSC-2220.
Everything works, I am reading the tutorals nice about RT and deployment/running example to this target applications.
However, I don't know what is the best practice, the IP address of this device handling. For easy installation, after a device reset (and install the new RT runtimes, etc) I put just the HW to obtain the dynamic IP address of my router (DHCP). My laptop connects to the same router via wifi.
However, since after a few resets the target Gets a new IP (192.168.0.102, previous IP was... (104), I have to manually change the IP address in my project. Is it possible that the LV auto detects the target in my project? In addition, it seems that MAX retains the old information and creates a new line for the same target... so I guess that if the problem persists, MAX is going to fill? See screenshots below.
As a solution, I'll try to use static IP for the target, so it must always use the same IP address.
What is the common procedure to avoid this kind of problems? Just using static IP? Or miss me him too something else here?
Thank you!
I just always use static IP addresses. It avoids just all kinds of questions, especially if you have several systems on the same network.
-
monitor thread on the system in real time
I have a SMU-8101 controller in my PXI system. I have it running with a system of operating in real time. I inherited some software WHICH has been used on a program of LabWindows used on a PC with a Windows 7 operating system. The SOFTWARE seems to work OK. My problem is when I leave the program I get an ERROR of EXECUTION NOT DEADLY
"
Source position thread ID unknown 0x000000EC
Your CVI program ended on the target in real time. However, there still on the target in real time, the threads that are running or have already run the CVI code.
Please check that your application cleans all its threads. Son left running after that your application can crash the target in real time when your application is unloaded.
"
As I said I got the code and there is a lot of it. I am looking for a smart way to track down these threads. I was wondering if there are tools available that could help with this? Or any other suggestions on how to run these lines down?
Hi DPearce,
This article knowledge base has some information on why CmtDiscardThreadPool causes your program hang and gives some recommendations for fixing it.
-
Why won't my installer in real-time?
I'm using labview 8.51. I have many addons on my machine including DSC Vision FPGA and RT. I have an application which usis daq mx and the imaq and imaq-dx (no vision saw. I added 8.51 engine performance, NI-Imaq, NOR-Imaq-dx, Max 4.1 and Daqmx8.7. I run the installer, but he still wants the disk in real time. This application uses no screws RT and should not waqnt this disc. What triggers this action and how I can avoid it. I have had this problem several times and can't seem to find one alternative that the shipping of my separate installers (I hate this solution).
Hi Paul,.
Just to clarify, you have no need to manually copy the CD on the hard drive, like the LV application builder automatically only record it is necessary if you check the option "cache" during the construction of the installer. Please see this thread for more information on why Builder app works this way: link
Kind regards
-Wes / NOR
-
problem while conspiring waveform of the signal in real-time
Dear Sir
I use LabVIEW8.2 and USB1208FS for data acquisition. I have configured hardware with LabVIEW and data in real time using the Universal Library VI AInScBg.vi. When I draw my signal on the waveform (amplitude vs. frequency) then on axis x frequency ranges from 0 ~ 0.49 hz. I have change the sampling rate of 1000 Hz to 4000 Hz, but on the x-axis without frequency change occurs and it is set at 0.49 hz. Can you please guide me how can I get the frequency of my own interest on the x-axis.
I enclose you daughter of LabVIEW for reference.
Kind regards
Muhammad Irfan
Student
UTP Malaysia
0060149087570
Simply change the text label of the x-axis of frequency does not automatically the correct calculation. You do not pass in the sample information in the service spectrum, so you get no frequency information. You can see the strain on the entry point. The function expects a data type of waveform as input. Without it, the dt will default to 1. Then, use the function create a waveform and add information from dt to it as well as your table of Y.
-
Robotics/control system with LabView real-time + OR DAQ
Hello
I am building this real time application in which you can try control methods for a particular system (construction of the algorithm of control in LabView on Windows) and then with a DAQ board (I have the E-Series SCB-68) communicate with the hardware (actuators).
Is this DAQ card enough or should I try with any other advice? For the application considered, it is important that the price of the freq is at least 1 kHz.
Thanks in advance
The 6220's card perfectly fine for your current application. It is true that windows is not deterministic and cannot compete with the hardware/software in real time, but your DAQ will be responsible for the management of timing and synchronization you will be fine. If the advance until you need a very quick response in real time of your application, you can always buy a RT LV system.
-
THUMBNAILS VIDEO DISAPPEARED AFTER THE INSTALLATION OF REAL TIME
After you have installed the latest version of "Real Time Player" which is an upgrade to 'Real Player of cloud', all the video thumbnails are not visible on a single computer. 'Real time' has been installed on two computers with almost identical Windows 7 Home Premium and processors within minutes of each other. A computer kept all video thumbnails while the other did not. So far I have uninstalled and reinstalled in real time, uninstalled and reinstalled Real Cloud, but still no thumbnail previews. I also tried the verification of the method 'display only the photos '. I'm looking for someone who's hands are successful on empirical knowledge for this question. Thank you.
Stanley,
Here's a recent update on my original investigation.
After an upgrade of RealTimes Player RealPlayer Cloud download failed to produce thousands of miniature video generated by RealPlayer cloud, I immediately started looking for answers in this forum of Microsoft.
I have two new computers HP here on my desk. A computer has received the RealTimes Player download and continued to display thumbnails. This is the second HP computer that the thumbnails are not visible.
Several answers to this problem repeated the same methods. I tried these methods more than once and still no pictures. Then I took action on your message and another someone from Real.com contact Real.com. The only way to contact Real.com was by email on their website. I sent them an email describing the problem. Now, it's my experience that Real.com has even good tech support for free download of RealPlayer. Their first suggestions were identical to the information I received Microsoft community. Following is a concise list of end to end on how I solved the problem before Real.com phoned for help, which may have included access remotely:
(1) download the RealTimes Player "new" (that's their latest version of RealPlayer cloud;) I know now I should have stayed with cloud of RealPlayer).
(2) a computer downloaded without any problems, while the second computer lost all thumbnails.
(3) I contact Microsoft Community to get answers.
(4) community Microsoft sends answers, including and meet someone from Real.com.
(5) none of the above gives a solution.
(6) I am Real.com e-mail for a few days through their website with no solutions.
(7) I have uninstall RealTimes Player on both computers.
(7) I call the HP Technical Support to make a 'system restore' on computers.
(8) after the "System Restore", I reinstall MSE, and all thumbnails are restored on the computer and three external hard drives. All thumbnails are Windows Media files. None of the hundreds of RealPlayer Cloud files can be opened.
(9) Real.com offers to call me at one time that I choose, which may include remote access to my computer.
(10) I answer Real.com Friday that a time to call will be the following Monday.
(11) the following Monday at the appointed hour, Real.com has not called. I waited 30-40 minutes. While I was waiting, I've been on the Real.com site read comments in the section "RealPlayer/RealPlayerCloud. In a response from Real.com Tech to one of the speakers, they gave to this speaker a link to download RealPlayer Cloud. I took a chance with this link and downloaded RealPlayer Cloud in my computer, not only did the Windows Media thumbnails remain, but I was able to play all audio Real Player and video files, and the "Download this video" button a drop down of RealPlayer has been restored. I turned so my attention on the other computer, clicked on a download link that says Cloud RealPlayer on Real.com Web site, and when the download is complete, it was the new RealTimes Player again, not RealPlayer Cloud. But, all right. All thumbnails are back in this computer while being able to play all Real Player files. Now, a computer has the 'new' RealTimes Player and the other has the original cloud of RealPlayer.
(12) after all this was over, and two computers were back to normal, the representative of Real.com called (almost two hours late; he was on another call that lasted longer than normal). I explained that while you wait for him to call, I reinstalled Real Player on both computers and everything was back to normal. I mentioned reinstalling RealPlayer cloud on the other computer and it recommended that all was well under way, for whatever. I agree with you.
(13) since the call of the representative, Real.com has sent me a couple of times and told me they were happy that the problem has been resolved and do not hesitate to contact them for any future problems. I asked for a download link for RealPlayer cloud which they sent a warning that they were not certain if the link has an expiration date, but to contact them for any problems or questions.
(14) although I have Google Chrome on a single computer, all my audio/video download through RealPlayer Cloud/RealTimes drive is via Internet Explorer, not Google Chrome. I prefer the drop-down menu "Download this video" button at the edge of the screen in Internet Archive rather than the barely visible button at the top to the center of the page in Google Chrome.
Microsoft 15 community) thanks and Real.com.
(16) a lesson learned. When everything works fine, why switch?
Maybe you are looking for
-
It has been that the downloads window open up everything by downloading. Now all I get is the small arrow icon. It is too hard to see, I love the old-fashioned way. Is this possible?
-
BlackBerry Smartphones Remote Desktop Access denied
I have a new BB storm. I have installed all the necessary software and signed (by VerizonWireless) to use my storm as attached modem. Works very well, it is faster than my local internet service. I have consulted several websites and am currently
-
How to reset the selectOnechoice in a particular row of a table.
HelloCurrently, using Jdeveloper 11.1.1.7.0.I have a requirement to reset selectOnechoice in a particular row of a table.Next to my column in the table < af:selectOneChoice > is there and each button to reset a row is there. During the click on reset
-
I plan to take an examination to VMWare, not yet decided that one yet. But I would like to know the policy review to resume. I say take a test and does not mark the required score, I know that there is a break of 7 days. But should I pay again to tak
-
Missing GPU acceleration with graphics NVIDIA Quadro 4000 card
HI -.I have a PC running Windows 7 with a NVIDIA Quadro 4000 card and 16 GB of RAM. I have Premiere Pro CS6 v6.0.5 and first Pro CC v7.2.2 (just installed).When I create a new project in CC, my only option under video rendering and playback is Mercur