Visit our LabVIEW Wiki Real Time article
Tags |
(This content has not been tagged yet)
|
![]() |
Aug 22 2008, 10:51 AM
Post
#1
|
|||
|
One hit wonder! Member Posts: 1 Joined: 22-August 08 Member No.: 12342 Using LabVIEW Since:2008 LV:7.1 ,7.1 ,.
|
Hi,
I am new to this forum as well as LabVIEW. So please help me evenif the question I am posting is simple. I am using Labview 7.1. I have developed a 12 ODE solver using RK 4th order and Fixed step of 1ms and simulation time as 10s. I have used Simulation Module and Formula Node for the same. I have done the offline simulation and it works fine. Now I would like to run the simulation in real time without interfacing any hardware. I mean, the step size which I have given as 1ms, I want the operating system to complete all the calculation(12 ODEs) for one iteration within that period and the task should be deterministic. How can I perform this? Thanks in advance, Rashmi
|
||
|
|
|||
| Ad |
Aug 22 2008, 10:51 AM
Post
#
|
||
|
|
|
||
|
|
|||
Aug 22 2008, 02:36 PM
Post
#2
|
|||
![]() Very Active NI ![]() Posts: 110 Joined: 28-October 05 From: Austin, TX Member No.: 3370 Using LabVIEW Since:1993 LV:8.5.1 ,8.2.1 ,8.6
My Gallery
|
I am new to this forum as well as LabVIEW. So please help me evenif the question I am posting is simple. I am using Labview 7.1. I have developed a 12 ODE solver using RK 4th order and Fixed step of 1ms and simulation time as 10s. I have used Simulation Module and Formula Node for the same. I have done the offline simulation and it works fine. Now I would like to run the simulation in real time without interfacing any hardware. I mean, the step size which I have given as 1ms, I want the operating system to complete all the calculation(12 ODEs) for one iteration within that period and the task should be deterministic. How can I perform this? Rashimi, You can run the LabVIEW Simulation code directly on a RT controller if you also have the LabVIEW RT module. The local experts recommend moving to LabVIEW 8.6 for this, as the performance of the LabVIEW Sim code in RT has improved dramatically in the most recent release. That being said, moving to LabVIEW RT will give you more determinism but it won't improve the performance (speed) of your code significantly compared to an equivalent processor running Windows (your current offline simulation). So moving from a desktop PC to an RT target will not run your simulation any faster (real-time) unless your RT target has a faster processor on it. This post has been edited by LV_FPGA_SE: Aug 22 2008, 02:37 PM -------------------- Christian L
NI Systems Engineering - Real-Time and Embedded Control Technologies "I like my G code neat."
|
||
|
|
|||
Aug 22 2008, 05:11 PM
Post
#3
|
|||
![]() Extremely Active Member Posts: 509 Joined: 2-August 05 Member No.: 2680 Using LabVIEW Since:1996 LV:8.5.1 ,8.6 ,.
|
Hi, I am new to this forum as well as LabVIEW. So please help me evenif the question I am posting is simple. I am using Labview 7.1. I have developed a 12 ODE solver using RK 4th order and Fixed step of 1ms and simulation time as 10s. I have used Simulation Module and Formula Node for the same. I have done the offline simulation and it works fine. Now I would like to run the simulation in real time without interfacing any hardware. I mean, the step size which I have given as 1ms, I want the operating system to complete all the calculation(12 ODEs) for one iteration within that period and the task should be deterministic. How can I perform this? Thanks in advance, Rashmi Some more information would be helpful. 1 What are you trying to achieve? 2 What PC hardware do you have? 3 Newer versions of LabVIEW have much better performance and better multi-core support (I suggest you upgrade). 4 How are you solving the ODE's? mathscript nodes are useful but painfully slow especially in the older versions. Look at the release notes of the various LabVIEW versions, they should give you pointers as to what has been optimized or upgraded in each version (there have been a lot of enhancements in terms of performance). 5 Do you HAVE to solve all 12 ODE's together? Can you split out the solving to multiple cores/PC's & put together the results later? 6 Take a look at this Large Telescope Demo from NI-WEEK 08. What you are trying to achieve is quite challenging given the 1ms solution time. 7 Provide some screen shots or code to show your approach so it can be critiqued for better performance. 8 Why do you need the 1ms solution time? Are you controlling something in real-time? 9 Can you simplify the system model to eliminate some of the 12 degrees of freedom to fewer? Neville.
|
||
|
|
|||
![]() ![]() |
| Time is now: 2nd December 2008 - 12:34 AM |