VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Arrays with LV Models in Veristand 2011

Solved!
Go to solution

In my system definition file I have several models. All models are coded in LabVIEW, as they are pretty simple at the algorithm level. Some of the model outputs are being used by the next model etc...

Each model has some Inputs (defined as Required in the connection pane), and some parameters (defined as Recommended in the pane). I am running out of actual connection space, as some of the models will have many inputs/parameters. I am wondering what is the best way around this?  I am currently trying to group the inputs in arrays (see attached file), but the compilation fails with the followin message:

------------------------------------

Processing VI D:\BSI\Project - Active\5030-02 DeltaQ - HIL\Software\Models\ArrayModel_Test.vi

Getting subsystem information...done.
Copying template project...done.
Setting Template Project properties... done.
Scripting model_info.vi ...done.
Scripting model_core.vi...done.
Building model DLL...done.
Copying model...ERROR:
Code: 8
Source: Copy in LVSV copy DLL.vi->LVSV Create DLL from subsystem.vi->LVSV Dialog.vi<APPEND>
D:\BSI\Project - Active\5030-02 DeltaQ - HIL\Software\Models\ArrayModel_Test.lvmodel

Error occurred. No DLL produced.

-------------------------

 

What type of controls can I use in a LV model beside numeric and booleans?

Thx.

L.

 

0 Kudos
Message 1 of 7
(7,811 Views)

Hold on, I restarted LabVIEW and the compiling steps is now working... Strange.

An array set as Input in the LV model appears as either a set of scalar or an array according to the  Vector Port Specification option "maintain as vector channels" or "Segment into scalar channels" on the Add Simulation pop-up under Inports and Outports tab... 

 

My  general question remains. Thx.

L

0 Kudos
Message 2 of 7
(7,808 Views)

you can use single level clusters as well.

 

if you're using arrays.. make sure you have their default size set. You can do this by changing the array index control to some size that you want - 1 (so 15 if you need 16 items) and then type a value into the array value control. Then right click the array index control and select data operations -> make this value default.

Stephen B
0 Kudos
Message 3 of 7
(7,804 Views)
Solution
Accepted by topic author LDBM

Supported data types are listed in this document.  A supported cluster will import as a virtual folder.  Clusters can be nested to provide additional organization in the System Definition.

 

2011-12-19_140941.png

 

-Steve K

Message 4 of 7
(7,799 Views)

Thx.  The arrays seems to work once their default values are set. I suppose one has to be careful as of what can be treated as an array in VS, and what cannot.

 

I am now going to try the cluster, it may be easier to track object by names compared to arrays...

 

L.

0 Kudos
Message 5 of 7
(7,797 Views)

Haa the cluster nesting looks promising. I am going to try that! 

Thx

L.

0 Kudos
Message 6 of 7
(7,791 Views)

So far so good with Clusters as well.

Thx.

L.

0 Kudos
Message 7 of 7
(7,783 Views)