From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Has anyone figured out a way to parameter tune a 3D array in VeriStand?

We have a Simulink model that we are running in VeriStand 2010 that has a 3-D table within it that we would like to be able to parameter tune.  Has anyone figured out how to do this yet?  Maybe a custom device or something.  I know one sledge hammer solution would be to code the Simulink to open a mat file, but I would rather avoid having to do that.  I vaguely remember this coming up in discussions a long time ago but could not find any posts on it.

0 Kudos
Message 1 of 2
(5,133 Views)

VeriStand only supports up to 2D parameters. One workaround is to flatten the 3D table in your simulink model into a 1D array that VeriStand can tune. Then your Simulink model can do the math to index out values in the 1D table as if it were 3D. You'd need to do the same math to update the parameter from VeriStand.

Jarrod S.
National Instruments
0 Kudos
Message 2 of 2
(5,129 Views)