03-01-2006 05:45 PM
03-02-2006 03:48 PM
You may need to use an external compiler from Microsoft, Borland, or Intel. These are optimizing compilers, and hence potentially much faster. I believe some/all are free downloads.
I have not used external compilers, but CVI Help under "external compilers ... creating optimized code using" should be a good start.
Hope this helps.
--Ian
03-02-2006 04:49 PM
03-02-2006 05:36 PM
03-06-2006 03:45 PM
03-07-2006 05:26 PM
03-07-2006
06:12 PM
- last edited on
07-08-2025
09:29 AM
by
Content Cleaner
Hello eve_car,
So I noticed that you have created a service request on this issue. After reading your notes, it seems like the faster application was built in CVI 6.0 with an older version of the IMAQ driver. Is this application running on a machine with the CVI 6 runtime engine on it, or is it running on a machine with the CVI 8.0 runtime engine on it? Short of rebuilding your application in CVI 7.1, you might save your CVI 6 runtime engine in a backup location (System32\cvirte.dll) and then install the CVI 7.1 runtime engine to see if your application still runs at the same speed. If it does, then you might want to try updating your runtime engine to CVI 8, to see if that makes a difference.
If after installing the CVI 8 runtime engine and you see no performance changes with your CVI 6 compiled application, you pretty much have shown that it's not a CVI runtime upgrade issue. If this is the case, you have two other culprits to look at: the update to the IMAQ driver, or the update of the CVI IDE. I notice you also using some additional software, which might have an affect.
Well let me know how this goes so we can isolate why the slowdown is occuring.
Thanks
03-09-2006 03:12 PM
I am a little confused about the runtime engines. I see from the links that 8.0 has a RTE separate from the regular CVI 8.0. Since my production machine does not have CVI loaded, I've typcially copied the cvirte file and folder from the computer on which I built the DLL to the system32 folder on the production computer. It seems to me that if I tried to mix up rte's with dll's compiled on different versions, it created problems. I will try doing this again to verify. In the meantime, if you can explain what the rte is doing, it may help me understand my options better. Thanks.
03-09-2006 04:03 PM
03-14-2006 03:50 PM
I have now tried the CVI 8.0 runtime engine with both compiled programs and 3 NI-IMAQ drivers. My conclusions are that the slowdown is not being caused by CVI 8.0, but by the new IMAQ drivers. I'll explain what I've done and seen. Please see if you come to the same conclusions, and tell me if there are any other possible causes.
First, I compiled my program to create my DLL in the following ways:
1. CVI 6.0 with NI-IMAQ 2.6
2. CVI 8.0 with NI-IMaq 3.1
3. CVI 8.0 with NI-IMAQ 3.5.1
I ran all three versions of this DLL on my production computer with CVI RTE 8.0 and NI-IMAQ 2.6 and the two test measurements ran in 3 seconds and 5 seconds, respectively.
I then ran all three versions of the DLL with NI-IMAQ 3.1 and with NI-IMAQ 3.5.1. In every case, my test measurements ran in 5 seconds and 7 seconds. (3 compared with 5 and 5 compared with 7). I did these measurements multiple times with the same results.
The only other possible explanations I can think of for the slowdown are that (1) perhaps one or both of my PCI-1407 boards has some incompatibility with the new drivers (I use two boards on my production computer), or (2) the new NI-IMAQ drivers have a problem with my older version of the Vision libraries (5.0). As I mentioned earlier, I am extremely reluctant to purchase the new upgrade since I use such a small subset of your vision libraries.
Thanks for any help you can give me.