01-08-2008 04:21 PM
01-09-2008
02:13 PM
- last edited on
06-25-2024
10:03 PM
by
Content Cleaner
01-10-2008 01:19 PM
01-16-2008 03:43 PM - edited 01-16-2008 03:43 PM
Hey ndo,
After speaking with an engineer from R&D, I believe I have some relevant information to pass along.
1) RTJunk.vi appears to be a benchmarking VI. While this is a very good start, we do offer a benchmarking VI that ships with LabVIEW, and provides an easy way to benchmark your code. You can find this project file by opening LabVIEW, and going to Help >> Find Examples. Once you are in the NI Example Finder, select the Toolkits and Modules >> Real Time >> Benchmarking folder. You can place your code in that VI, and get benchmarks from that.
2) Try changing the Process Data VI from a sub routine to a Time Critical VI. That could increase your performace.
3) Your Process Data VI could use some memory improvement. Currently every time you call the VI, you are having to allocate new memory for the arrays you are using. First, I would suggest passing the input array into the Process Data VI. Second, I would recommend that instead of using Array Subset VI, I would first use Initialize Array to create the memory space, then use Replace Array Subset to put that data into that Array. I have included a picture below of an example of how to preallocate array memory, and fill it using the Replace Array Subset.
Some other points about Memory Management:
Also, many of these topics are covered in our LabVIEW Real Time Customer Education class. If you are interested in learning more about that, I can get you that information as well.
Regards,
Kevin H
01-17-2008
10:35 AM
- last edited on
06-25-2024
10:04 PM
by
Content Cleaner
Ndo,
It is worth noting much of the information Kevin has presented is available in our LabVIEW Module Training self-paced course. This subset of the instructor-led Customer Education class is a great resource for anyone with general questions about LabVIEW Real-Time (or LabVIEW DSC or LabVIEW FPGA, for that matter). If you find the information useful and want to program larger applications in LabVIEW Real-Time, I highly recommend the LabVIEW Real-Time Customer Education course.
Please pay particular attention to Chapter 3 and Chapter 6, since they discuss your memory questions in-depth.
Cheers.