NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Concept check for feasibility

Hello all,

 

I am trying to simulate a closed loop system in TestStand to validate our ECU software. I am wondering if this is realistic to do in TestStand.

 

This is what I am thinking. I have a computer connected to a NI FPGA card. The FPGA card is connected to the I/Os of my ECU, so I can send analog voltages to the ECU, and I can also see whether or not the ECU is commanding pumps to be turned on.

 

In TestStand, I call a Labview VI to read commands from the ECU through the FPGA. Then, I call another Labview VI with the plant model dll. The plant model calculates the new pressure and temperatures to be sent to the ECU. I get the FPGA to send the new voltages to the ECU. This, then, loops itself so I can get the dynamic behavior of this system.

 

2011-01-18_155418.jpg

 

Thanks.

 

Chase

0 Kudos
Message 1 of 5
(3,423 Views)

Would you not be better to use VeriStand found here

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,407 Views)

Hi Bladhart,

 

I agree Ray's suggestion.

NI-Teststand is NOT the tool for closed loop simulation.

For this stuff NI-Veristand was developed. But Veristand may be

controlled by Teststand.

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 5
(3,403 Views)

Does this mean I need to buy new hardware as well. I highly don't think that my FPGA card can store a plant model.

0 Kudos
Message 4 of 5
(3,358 Views)

Hi,

 

I would agree that you should check out Veristand first. You should also ask your local National Instruments DSM to help you figure it out.

 

Think of your FPGA box as an asynchronous instrument/process that TestStand can control at the level of

Load Model

Start/Stop Model

Read channels

Start/Stop onboard logging

Read back logged data after test

 

In your TS sequence you could set up other instruments, make calls to the HIL/RT/FPGA box, have the other instruments stimulate the ECU, send commands to the HIL to change stuff, clean up etc. I have some slides that show this configuration.

 

Normally you'd load the plant model onto the FPGA box, but run the model in LV Realtime on the micro, not on the FPGA, unless you had some super high-speed model. Maybe part of the model could run on the FPGA. Check out DSpace, they are pretty big in automotive HIL, you can get some ideas on how it would work on the LV RT/FPGA platform. 

cc

0 Kudos
Message 5 of 5
(3,340 Views)