From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-05-2006 09:50 AM
05-05-2006 02:42 PM
Hello Tak.
"For once, I can access to my controller from the web. But once I close my browser, and re-access the web, the memory in my controller seems to be lost and I got an error message saying VI was not loaded in server memory." This sounds as if you were exiting your application using the browser. Are you sure that your application on the FieldPoint-Controller is still executing and in memory after you closed your browser? You should check this by adding some code to your application that flashes one of the cFP-LEDs as long as your application runs.
When your application exits, all VIs are removed from memory and this would match your error description.
"For once, I can access to my controller from the web." I did not understand what this means exactly.
Does this mean that you see the remote panel in your browser correctly after a (re)start of the FieldPoint-Controller?
BR, Guenter
05-05-2006 04:11 PM
05-05-2006 06:25 PM
Hello Kai.
If I understand correctly you you the main-VI of your application as a remote panel and access it through a web browser. You stop the VI (e.g. by applying the "abort"-button) and start it again.
Why are you doing so on a RT system? These systems are expected to power up and run until they are powered down.
To reconfigure aspects of your application you could use a sub-VI as a remote panel. Place all of the configuration controls on this panel and configure your RT system at run time.
This is smarter than starting and stopping the main-VI and easily circumvents your "VI loss".
BR, Guenter
05-08-2006 12:50 PM
Hi Guenter,
Under normal condition, we do want the system to start and then just carry out the entire experiment until the end of it. However, we also afraid if something go wrong during the middle of the experiment and we would like to find a way to take over the control and stop the experiment within a short time.
Your suggestion about creating a sub VI and it to start and stop the main VI is interesting. I have to think about how to do it with the setup of my current program. But thank you very much for your suggestion.
tak
05-08-2006 04:36 PM
Hi tak,
to avoid any missunderstanding: I did not mean that you should stop and start the main-VI. Run the main-VI (mode: forever) and tell it what to do. Or in other words: Create an application that runs forever and tell it (e.g. via the network) what to do.
BR, Guenter
05-10-2006 09:08 AM
Hi Guenter,
I think this idea to have the main VI to run forever would be a great suggestion. However, I have to think about whether it is possible for my program due to its nature...
My application is a bit more complicated. I will tell you more about our experiment, maybe you can come up some great idea for me. Basically, we are trying to extract CO2 gas from the atmosphere and put them into a small glass tube and seal it. The entire experiment consists of 8 identical runs, and each run lasts about an hour. During the experiment, we want the system to run from start to finish without stopping. Initially, we are running this on a computer, however, we can not guarantee the computer won't freeze in the middle of the experiment. That's why we take the approach of embedding it to the controller and let it run until completion.
However, after the 8th run, we do want the system to stop because there are some maintenance work we have to do manually. After that, we would then want the system to re-start the entire process again and let it run to stop until another 8 runs are completed.
Having said that, the ideal solution for me would be able to store these VIs or the application in the controller memory. Then, I can remotely tell the controller to start whenver I want it to or stop, if it is needed.
tak
05-11-2006 12:07 PM
Hello tak,
what you describe is a typical engineering application and there is no need to worry about the different states your software must consider. As I take from your words, a "state machine" should be an appropriate framework for your application.
You can search for articles dealing with state machines e.g. on the NI web page. Some of them especially focus on LabVIEW.
LabVIEW ships with several Framworks as starting points for application. There are also state machines available. Furthermore, many of the examples shipped with LabVIEW behave like state machines.
BR, Guenter
05-20-2006 10:21 PM