如何在xcos / scicos框图模拟中定义全局变量?

问题描述 投票:0回答:1

我想在xcos / scicos信号流图中定义全局变量。我试过块Simulation>set context

enter image description here enter image description here

但是它不会在任何地方接受它作为已知变量:

enter image description here

附:我在不同的计算机上尝试了程序框图,它现在可以使用分号。显然这是一个小故障或错误!

scilab xcos
1个回答
0
投票

好吧,这有点奇怪,但由于某种原因,最后的分号是问题!因此,如果您只是省略;并逐行放置变量,那么一切都可以解决:

a = 2
b = 3
...

关于如何/为什么使用set context here的更详细的教程。

© www.soinside.com 2019 - 2024. All rights reserved.