LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

GetTableCellFromValue issue with VAL_INTEGER

In some versions of CVI, I can't seem to use GetTableCellFromValue to search cells of type VAL_INTEGER.  Attached is a sample application that demonstrates the issue.  It creates and populates the table with either Doubles or Integers (based on the 'USE_DOUBLE' define at the top of Table.c).  A simple search box is given at the bottom of the UIR to allow the user to search for a number.  If the project is compiled to use doubles, the GetTableCellFromValue finds the requested values and the row/col index are printed out to the corresponding boxes.  If the project is compiled without USE_DOUBLE defined, the result of GetTableCellFromValue is always {0,0} for row/col.
 
This behaviour was observed on CVI 8.1.1 and above.  When tested with CVI 8.0, GetTableCellFromValue seems to find the correct cell.
0 Kudos
Message 1 of 3
(3,219 Views)
Hello SLocke,

Is it possible that you are running your program in a computer that has a CVI beta runtime installed (c:\windows\system32\cvirte.dll)? The reason I'm asking is because we were able to reproduce this problem, but only in the current CVI beta. Not in CVI 8.1.1.

Keep in mind that when you have multiple versions of CVI installed in the same computer, all applications are using the runtime of the highest version that you have installed. Even if you later uninstall the CVI with highest version, the version(s) of CVI that remain installed will continue using the runtime of the one that you uninstalled. To go back to using the older runtime, you'll have to completely uninstall all versions of CVI, and uninstall the CVI runtime, and then re-install only the version that you want to use.

About the bug... we did confirm that is a bug in the current beta. It happens whenever you use non-64-bit integers. Unfortunately, it is too late to fix this bug in the current beta, so it will be fixed instead in an upcoming maintenance release.

Is using doubles, or 64-bit integers, an acceptable workaround for you, in the meanwhile?

Thanks,
Luis
0 Kudos
Message 2 of 3
(3,214 Views)
I didn't *think* I had installed the beta on my 8.1.1 machine, but after checking the cvirte.dll version number, it appears as though I did.  Sorry for the false information.  On the other hand, I had checked the NI installed software list (Add/Remove Programs) and it said the 8.1.1 RTE was installed -- perhaps this should have said 8.5 RTE...
 
In the meantime, as you mentioned, I've worked around it using doubles (in preperation for the 8.5 release).  Until then, I'll have to blow away all reminants of CVI on my 8.1.1 machine and do a fresh install...
0 Kudos
Message 3 of 3
(3,196 Views)