VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

307703_Why can't my VeriStand2017 load two models at the same time

Solved!
Go to solution

I tried to do an example of CarSim help (the document is attached) and add a CarSim in veristand 2017_ LVRT.dll from CarSim2018 and a dll made from simulink2016b
The following error is reported in deploy, but two separate DLL files can be deployed normally (their log files are in the attachment)

捕获.PNGMatlab编译环境.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Supplementary note:

1.the compiling environment of MATLAB 2016b is Microsoft Windows SDK 7.1 (c) (the process file of build is also attached)

2.The two DLL files from Simulink build can be deployed.
3.When I deploy, I try the next order. The second DLL file always fails to load

4.I don't know what more information you need. Please leave a message for me to add

 

I would appreciate it if you could help me solve this problem


?Start Date: 2021/4/23 10:31
?Loading System Definition file: D:\CarSim2018.0_Data\Extensions\NI-RT\ABS_VeriStand\ABS_VeriStand_Example.nivssdf
?Preparing to deploy the System Definition to the targets...
?Compiling the System Definition file...
?Initializing TCP subsystem...
?Starting TCP Loops...
?Connection established with target Controller.
?Sending reset command to all targets...
?Preparing to deploy files to the targets...
?Starting download for target Controller...
?Opening WebDAV session to IP 169.254.202.186...
?Processing Action on Deploy VIs...
?Gathering target dependency files...
?Downloading ABS_VeriStand_Example_Controller.nivsdat [3 kB] (file 1 of 3)
?Downloading CalibrationData.nivscal [0 kB] (file 2 of 3)
?Downloading ABS_VeriStand_Example_Controller.nivsparam [0 kB] (file 3 of 3)
?Closing WebDAV session...
?Files successfully deployed to the targets.
?Starting deployment group 1...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
The VeriStand Gateway encountered an error while deploying the System Definition file.

Details:
Error -307703 occurred at Project Window.lvlib:Project Window.vi >> Project Window.lvlib:Command Loop.vi >> Project Window.lvlib:Connect to System.vi

Possible reason(s):

NI VeriStand: The specified model is incompatible with NI VeriStand. If you are trying to deploy the model to an RT target, launch the Console Viewer tool to display the console output of the target, which includes information about the source of the error.
=========================
NI VeriStand: NI VeriStand Engine.lvlib:VeriStand Engine Wrapper (RT).vi >> NI VeriStand Engine.lvlib:VeriStand Engine.vi >> NI VeriStand Engine.lvlib:VeriStand Engine State Machine.vi >> Model Execution.lvlib:Initialize Model Loop Data.vi >> Model Execution.lvlib:Initialize Models.vi >> SIT Model API.lvlib:Initialize Model.vi >> SIT Model API.lvlib:Load Model DLL.vi
<append>=========================
NI VeriStand: Failed to load C:\ni-rt\NIVeriStand\Models\carsim_LVRT.dll

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
?Sending reset command to all targets...
?Stopping TCP loops.
Waiting for TCP loops to shut down...
?TCP loops shut down successfully.
?Unloading System Definition file...
?Connection with target Controller has been lost.


Thanks again

0 Kudos
Message 1 of 3
(2,130 Views)

Hi, have you solved this problem now?

0 Kudos
Message 2 of 3
(1,667 Views)
Solution
Accepted by topic author NaGeiue

No.

I find your ID is Chinese pinyin, So I replied in Chinese 

没有

我看你ID是拼音就用中文回复了奥

我放弃了这个路线,改用了Labview和Simulink的联合仿真。一方面,Labview同样可以控制硬件,接收Simulink的数据,起到中转作用。另一方面,Simulink文件在编译Build的时候对文件有要求,很多东西没法用(也可能我没调好),Labview可以直接和Simulink链接,不通过DLL文件调用。

缺点是上下位机通讯延迟会高很多

0 Kudos
Message 3 of 3
(1,654 Views)