VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

lvmodel error when run it in veristand

Solved!
Go to solution

I build a model with labview and compiled it into lvmodel file.

 

after I run the veristand project , something strange happened.

 

a12.png

微信截图_20200716102045.png

 

 

微信截图_20200716102117.png

 

1.gif

 

I donot know why , may I am lack of deep comprehension of the veristand's run strategy.  

 

Can anyone explain for me the reason ? great thanks...

0 Kudos
Message 1 of 6
(1,960 Views)

I think this is an expected behavior.

NI VeriStand writes zero to "in1" but no one writes the result into NI VeriStand.

As the result, NI VeriStand engine keeps "in1" zero.

 

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 2 of 6
(1,934 Views)
Solution
Accepted by topic author alii001

your inport is always being overwritten by the value that is being written to the inport on each iteration i.e. 0, if you set your inport to another number eg. 1 or 2 or 10, etc. then it would stay that value 

 

the ability to overwrite inports does not exist for models it does however exist for custom devices by getting a channel reference to your custom device input with write permission and setting it that way so you could achieve this with an inline model custom device

0 Kudos
Message 3 of 6
(1,904 Views)

NI VeriStand writes zero to "in1" but no one writes the result into NI VeriStand.

 

How? it is just a model, and these two icons are all indicators, how can Veristand change the value of "In1"?

0 Kudos
Message 4 of 6
(1,846 Views)

yes, this may be the reason , models' inputs in veristand shall not be written by the model itself , except for such custom devices  

0 Kudos
Message 5 of 6
(1,845 Views)

yep thats the deal

0 Kudos
Message 6 of 6
(1,804 Views)