NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -18002 unable to set the Version Independent Runtime Engine in LV 2017

Hello,

 

I am experiencing strange problem when using TestStand API.

In source code all works fine, when I build my aplication the following error occurs:

 

Error -18002 occurred at TestStand was unable to set the Version Independent Runtime Engine option in LabVIEW

 

I am using LV 2017 and TS2017.

When I switch to TestStand 2013 problem resolves itself.

 

If I ignore function that generates error something goes really bad and I get this:

 

 

Could not load DLL or external library 'C:\Program Files (x86)\National Instruments\TestStand 2017\Components\Callbacks\FrontEnd\Win32\frontend.dll'.

Cannot load SxS version of cvirte.dll required by the DLL. Verify you have the SxS CVI run-time engine installed. Function CreateActCtx failed.
Win32 Error Code = '998'
Error Message = Invalid access to memory location.

This situatioin does not occur when my app is in development or when build and used in TS2013.

 

There is some weried interaction between TS and LV 2017. 

Did anyone have this problem before?

 

0 Kudos
Message 1 of 10
(4,480 Views)

After installing newest LabVIEW runtime engine I managed to get constant behaviour on all PCs.

 

This is somehow related to setserverinfo function called from LabVIEW application on TS

https://zone.ni.com/reference/en-XX/help/370052W-01/tsapiref/reftopics/labviewadapter_setserverinfo_...

 

When this function is called LV application breaks and says the following:

 

Error 1452 occurred at Get LV Class Default Value.vi

Possible reason(s):

LabVIEW: (Hex 0x5AC) This library was saved in an earlier version of LabVIEW. It must be loaded and saved in the current version of LabVIEW.

This can not be true since it occurs only when TestStand 2017 is active. Other TS versions work fine

 

 

When this function is skipped application starts but TS has problems with loading DLLs

 

Could not load DLL or external library 'C:\Program Files\National Instruments\TestStand 2017\Components\Callbacks\FrontEnd\Win32\frontend.dll'.

Cannot load SxS version of cvirte.dll required by the DLL. Verify you have the SxS CVI run-time engine installed. Function CreateActCtx failed.

I have tested this using TS2013,2014 and 2017. My application was not changed in any way during that time. Situation above occurs only for TS 2017

 

0 Kudos
Message 2 of 10
(4,444 Views)

Hey,

 

Could you include a small snippet of your code that is experiencing this behavior in 2017?

0 Kudos
Message 3 of 10
(4,441 Views)

Hey,

Thanks for reply.

 

I have attached simple proof of concept example.

We have 2 applications Example.exe and ExampleWithoutTS.exe. They load some class into memory.

The only difference is Example.exe uses TS calls

 

On TestStand 2017 Example returns error but works on TestStand 2013.

 

This is somehow dependent on adapter setting in TS. By trial and error I could set valid configuration so this error does not occur but after TS has problems loading its own components.

 

0 Kudos
Message 4 of 10
(4,432 Views)

Small update: I have installed all possible updates from NI Update Service and now this error occurs in source code as well.

 

My SW from NI MAX:

 

SWConfig.PNG

0 Kudos
Message 5 of 10
(4,416 Views)

The same message appears when I try to change settings in TestStand directly:

 

Capture.PNG

0 Kudos
Message 6 of 10
(4,399 Views)

Dear pawhan,

 

I will try to reproduce the issue on my computer. What is the your LabVIEW version?

 

Best regards

Patryk Jankowski
NI CER Application Engineer | Certified LabVIEW Architect
0 Kudos
Message 7 of 10
(4,395 Views)

Thanks for reply,

 

I have attached configuration report from NI MAX

 

0 Kudos
Message 8 of 10
(4,388 Views)

Dear pawhan,

 

I tried running your examples on my computer but they are not working (I get an error on Get LV Class Default Value). Are you sure that you want to load child.lvclass dynamically? Other than Example VI source code generate for me LabVIEW crash every time I try to close it after running. Do you encounter such situation also?

 

Best regards

Patryk Jankowski
NI CER Application Engineer | Certified LabVIEW Architect
0 Kudos
Message 9 of 10
(4,379 Views)

I managed to do more tests. What I found out is that when I run executable sent by you in TestStand sequence I don't get the error that you mentioned:

Error 1452 occurred at Get LV Class Default Value.vi

Possible reason(s):

LabVIEW: (Hex 0x5AC) This library was saved in an earlier version of LabVIEW. It must be loaded and saved in the current version of LabVIEW.

 Instead of that I get this error:

Error 1126 occurred at Get LV Class Default Value.vi

LabVIEW: (Hex 0x466) VI version is too early to convert to the current LabVIEW version.

Complete call chain:
     Get LV Class Default Value.vi
     Example.vi

<b>LabVIEW attempted to load the class at this path:</b>
C:\Users\pjankows\Desktop\Work\pawhan\sdas\example\builds\Example.exe\classes\child.lvclass

Which is strictly connected to LV Class Default Value.vi (it is not generated by SetServerInfo) as its not possible to load class in a way that you do it, at least as far as I know:

 

my.png

After deleting this code from the VIs, TestStand sequence executes properly.

Patryk Jankowski
NI CER Application Engineer | Certified LabVIEW Architect
0 Kudos
Message 10 of 10
(4,374 Views)