01-20-2011 04:03 PM
Hello,
I have a .dll that is equivalent to about 15,000 lines to c code. If LabView were to call this .dll, how much time (msec) would it take to run that piece of code?
My computer spec:
Intel Pentium Dual CPU
E2180 @ 2.00GHz
1Gb Ram
Windows XP SP2
LabView 8.6
TestStand 4.1.1
01-20-2011 04:08 PM
Between 0 and infinity
01-20-2011 04:09 PM
it would probably take about the same time as it would take to run the same code natively in C. 😉
What does the code do? How big are the data structures involved?
01-20-2011 05:24 PM
The code is a plant model of a car engine. It runs under 10ms per step when I run it in as an executable of compiled c.
01-20-2011 05:32 PM
@Bladhart wrote:
The code is a plant model of a car engine. It runs under 10ms per step when I run it in as an executable of compiled c.
To keep with the car idea...that's like asking its 10 miles to my destination, how long will it take me to drive there? Well it depends on traffic, stop lights, the speed you drive at etc. However long the 15,000 lines takes to execute standalone, it will take that long in LabVIEW, plus maybe a little bit of overhead for calling the dll.
01-20-2011 05:32 PM
What is a "Step"?
01-20-2011 06:22 PM
Oh, a "step" is one execution of the model, or one loop.
01-20-2011 09:30 PM
You do realize that no one can really answer your question. The best we could say is that the performance will be virtually the same as if called from a C program. However as with any code you can write very efficient code or very inefficient code.
01-21-2011 02:44 AM
Bladhart wrote:I have a .dll that is equivalent to about 15,000 lines to c code. If LabView were to call this .dll, how much time (msec) would it take to run that piece of code?
My computer spec:
Intel Pentium Dual CPU
E2180 @ 2.00GHz
1Gb Ram
Windows XP SP2
LabView 8.6
TestStand 4.1.1
Let's back up to the beginning. 90% of your information is completely irrelevant:
01-21-2011 05:56 AM
Answer: Very close to the same time as if you called the DLL from a c-program.
/Y