10-08-2007 07:31 AM
@jimmie A. wrote:
Ok,
I finally had some time to test it myself on a less powerful target (cFP-2020):
I had one timed loop reading data from an analog input module where the timed loop ran with an iteration time set to 500 ms.
I had another loop (while loop) set to run with 750 ms loop rate.
Between these loops I used RT-FIFO’s in order to perform my inter-process communication and then I used network published shared variables to exchange data to the host back and forth.
The results when using the System Manager or the VI method to get an estimate of the CPU usage was exactly the same on both targets. Around 75% on the normal loops and the rest spent in high priority loops. Blue color was barely visible.
I will need someone test it on a more powerful target and see if they can reproduce the issue you see where the CPU workload differs in different versions of LabVIEW RT:
10-09-2007 06:57 AM
Hello,
Can NI please look into this problem more carefully?
We have upgraded to LabView 8.5 to do the final deployment for a client using this version, but the current Performance problem we are experiencing are stopping us from wrapping up this project.
Thanks.
10-09-2007 02:44 PM
10-10-2007 01:56 AM
Geir,
I am sorry I couldn’t test it with the same exact setup and hardware as yours. Since I didn’t have access to a cFP 2120 controller I took the closest I could find when it comes to architecture and drivers used. I cannot run your code with your settings at all since the CPU in 2020 is only 75 MHz while the one you used is 188 MHz What I wanted to achieve with the test though was to see if I could see similar behavior and a reasonable assumption is that this very issue you have encountered should be present on all targets running 8.5 and not just on cFP-2120. This morning I ran your code with minor modifications (timing on loops not as fast due the CPU in the controller) and cFP module I read data from and the shared variables were deployed in the same manner. The same workload on both versions of LabVIEW and even when I changed the timings on the loops the behavior was the same in both versions of LabVIEW.
Regarding XP vs. Vista – my office don’t have access to Windows Vista Ultimate since it is more of a consumer version of Vista and while the underlying architecture of the networking capabilities have changed on Vista most of them have been included in XP and will so in the forthcoming SP3 for XP later on.
Once again – I am really sorry that I couldn’t test it with the exact same setup and that you are experiencing these issues. Hopefully we will find the issue soon.
10-10-2007 03:18 AM
@ching P. wrote:
Hello Geir Ove,
What are the settings of your controller? Unless you are using non-default settings for the "Pause (ms)" setting in MAX the CPU usage will be at 100%. .
Hello Ching,
The Pause is set to 1000 ms for both tests! And as you can see from the performance timings in my original post in this thread, the CPU load is not 100 % on either test.
I sincerely hope NI now can use my example and exactly the same setup to test this. I consider this a serious issue.
10-10-2007 03:23 AM - edited 10-10-2007 03:23 AM
@jimmie A. wrote:
Geir,
........
This morning I ran your code with minor modifications (timing on loops not as fast due the CPU in the controller) and cFP module I read data from and the shared variables were deployed in the same manner. The same workload on both versions of LabVIEW and even when I changed the timings on the loops the behavior was the same in both versions of LabVIEW.
Regarding XP vs. Vista – my office don’t have access to Windows Vista Ultimate since it is more of a consumer version of Vista and while the underlying architecture of the networking capabilities have changed on Vista most of them have been included in XP and will so in the forthcoming SP3 for XP later on.
Hello Jimmie,
Sorry, I feel we are waisting time. Surely National Instruments must have the resources to be able to reproduce the same environment as the Client is having problem with. We are talking about a) Equipment that NI sells (cFP 2120) and b) Windows Vista Ultimate (also supported by LabView).
The "devil is in the details" and we must get to the bottom of this!
Hopefully NI does not expect us to tell our Client that NI do not have the equipment / resources to test for our problem?
Message Edited by geirove on 10-10-2007 03:28 AM
10-10-2007 07:54 AM
We also are seeing serious performance issues with cFP 2120's and LV 8.5.
Jimmie and/or Ching please contact me at
and i will get you in contact with the engineer that is working this project and has access to a pile of cFP 2120's. (which may be part of the reason Jimmie is having trouble getting access to one
)
I think we just ordered another pile of them so we should have plenty to test with.
Ben
10-11-2007 01:54 PM
Hi Geir Ove,
Thanks for the information. Using your example and
your set-up I did see an increase in CPU usage, but I did not get the same
results you were getting. My CPU increase was much smaller. Some
increase is expected, but they type of performance degradation you are seeing
is not expected.
I think that it would be most beneficial to work with the
program you are trying to deploy. Can you please create a service request
at www.ni.com/ask and call an Applications Engineer (AE) to speak with
them? Once you get in touch with an AE, refer them to this forum post and
let them know that I am already working with you. Have them send me your
contact information so that I can contact you personally. The first step
in the troubleshooting process is to take a look at a trace using the LabVIEW Execution
Trace Toolkit which gives a detailed look into the processes running on the
controller. Understanding this can tell us what is causing the
performance issues you are seeing. If you do not already have the LabVIEW
Execution Trace Toolkit, I will be more than happy to grant you a temporary
license when we speak.
Also, you may want to take a look at this article that discusses
some advanced real-time programming techniques that may help optimize your
real-time code.
We are taking your concern very seriously and hope to help
you. If you would like to bypass speaking with an applications engineer
and do not mind posting your contact information, I will be more than happy to
contact you that way as well.
10-12-2007 08:04 AM
10-12-2007 09:34 AM
@ching P. wrote:
Hi Geir Ove,
Thanks for the information. Using your example and your set-up I did see an increase in CPU usage, but I did not get the same results you were getting. My CPU increase was much smaller. Some increase is expected, but they type of performance degradation you are seeing is not expected.