Page 1 of 1
Simulation variable display question
Posted: Sun Sep 08, 2013 10:58 pm
by billduck
I am writing a program, which in it's final state, will display battery voltages, in bar graph form, of 13 batteries. I am running a simulation to show voltages stored in an array. The attached picture is a screen shot of simulation. In the box "Specify the index of the array" I am not sure what to key in, as the prompt is partially obscured.
Thanks in advance.
Re: Simulation variable display question
Posted: Sun Sep 08, 2013 11:36 pm
by medelec35
Hi billduck
Normally you can just press ok then all the arrays will be shown.
However it looks like there is a bug with adding local variable arrays to variable window (unless its deliberate with locals, i'm not sure).
What it should show is:
Code: Select all
Enter variable between ReadVoltages.Vsub_i[0] and ReadVoltages.Vsub_i[9]
What you will need to add at the end of the variable is square brackets and array number inside.
So in your case with array of 10 you will need to add[0]......[9] on the end.
e.g
ReadVoltages.Vsub_i[0]
ReadVoltages.Vsub_i[1]
ReadVoltages.Vsub_i[2]
...
...
ReadVoltages.Vsub_i[9]
Martin
Re: Simulation variable display question
Posted: Mon Sep 09, 2013 12:01 am
by billduck
Got it. Thanks.