08-27-2019 10:29 PM
Hello, I want to build a HIL for autonomous vehicle test. I'm now getting the problem with the Carsim model and NI PXI instrument.
My hardware environment is PXIe-8880, a CAN card, and a ethernet card. My software environment is Veristand 2018SP1, Labview2018SP1, Matlab2017b, and VS2017.
I don't know how to deploy the Carsim model to PXI. For simulink model, I use SDK7.1 Compiler to generate a dll file, and can run it on PXI target. However when it comes to Carsim model, the compiling process is always throwing out an error. I wonder if there are any external dependences of carsim environment, so I can't just compile the S-funciton of carsim vehicle model in Simulink, and I need other way to handle this question. Need I run the carsim software on my host PC while running the carsim model on the PXI? Is there any way to generate a carsim vehicle model that can be used on PXI target?
I have searched a lot on Internet, only find some outdate examples of carsim and labview, instead of Veristand.
thanks for anyone's help!
08-28-2019 02:22 AM
I have an experience which called multiple CarSim model from NI VeriStand sequentially.
VMC provides dll which makes a communication between CarSim and LabVIEW, you can use it.
(If i remember correctly, VMC also provides setup manual. I cannot get it because don't have CarSim license.)
But NI VeriStand cannot call it directly, you should do through LabVIEW.
It means that you should develop Custom Device which calls the dll.