‎08-02-2011 03:27 AM
When I have more then 9 connections through VISA SERIAL, the application will hang with a occupation of 100% of the CPU. Each VI read a Nport 5110 at a rate of 1 Hz, baud rate is set for 19200, with char termination enable, no flow control.
Solved! Go to Solution.
‎08-02-2011 06:29 AM
You are missing most of the important information. First of all, posting some code could help a lot in order to get an idea what you are doing.
Other things are useful as well:
- What OS are you using
- How many cores does your system provide
- How much load does a single connection create
Please post those requested information.
thanks,
Norbert
‎08-02-2011 06:39 AM
The CPU is a N270, the OS is a XP Home SP3, 10 connections have a load of 11% in normal conditions
‎08-02-2011 06:54 AM
Share Your Code to get a better idea about the issue.
‎08-02-2011 07:43 AM
@acardoso wrote:
[...] 10 connections have a load of 11% in normal conditions
In which environment? What are "normal" conditions?
Are you sure that nothing is running in parallel which can create this load?
Norbert
‎08-02-2011 08:45 AM
"Normal Conditions", when my application is not at 100%.
Nothing is running in parallel, when I kill my application, computer resumes normal operation
‎08-02-2011 08:56 AM - edited ‎08-02-2011 09:05 AM
My code is a Timed Loop running at 1 Hz, with a VISA Write followed by a VISA Read.
Labview 8.6.1, NI-Serial 3.7, MAX 4.8, Visa 5.0.2
‎08-02-2011 09:18 AM
You are not helping us help you!
With the very limited info you have provided I will GUESS that one of your serial ports has a bad wire or widget at the other end either spewing garbage or using the wrong baud rate.
Post complete images of your code and tell us more about the environment and we may be able to offer real solutions.
Ben
‎08-11-2011 03:52 AM - edited ‎08-11-2011 03:54 AM
When we have more than 9 simultaneous calls, the application at one moment in the future will start consuming 100% of CPU. The solution was stop making a reentering call and use as a subvi.
‎09-11-2011 07:12 PM
Don't do "RUN Vi" inside "Timed Loop", nor access those VI's remotely by VI server. At least if you have 10, or more, VI copies running at the same time