02-18-2016 10:04 PM
do you want some thing like this
02-19-2016 04:31 AM
Hi SJL,
programming in LabView is like drawing ancient Egyptian and Chinese symbols.
From your linked website:
To code (verb) is to write programming statements - that is, to write the source code for a program.
That's what you do with LabVIEW too. It's a programming environment!
(It's a different environment than a standard text editor, though.)
02-19-2016 10:51 AM
Point Taken,
Hatef.fouladi, Somewhat, but not exactly.
Basically my xygraph has to be able to simply conserve a background plot, and add and refresh a new plot on top of that. Optimally it should be able to also trace the newplot with a switch.
02-19-2016 12:06 PM
02-19-2016 03:13 PM - edited 02-19-2016 03:40 PM
Thank you, that's more of the idea I've been leaning towards.
Using arrays and using property node of the graph to "freeze" some plots. Is there a property node for a single plot within a graph?
After speaking to a few colleagues, I've decided to try disabling updating the graph entirely while the motors are moving. So far, performance incread by a factor of a 100, literally. What bothers me the most is how easy it is to create over 5000 interactive buttons within 10 lines of code in Java, while adding 100 switches/buttons to my front panel starts causing a lag in block diagram updates. Maybe there is a better way?
This encouraged me to use XY graph and cursor.
Also, is there a way in LabView to create an array of controls which can be individually called by the index inside a for loop?
I.e. something similar to:
{
"some general class with many different methods" a[Index][Jndex];
for(int i=0;i<Index;i++){
for (int j=0;j<Jndex;j++){
a[i][j]."Drawn at position";
method(a[i][j]); // some function that assigning event listener for a[i][j]
}}}
then later I can use:
display=a[1][2].getSomeThing
or
another loop,
if (a[i][j]=condition){
make that control red if control boolean already been pressed, or blink the value is inconsistent with condition.
}
instead of physically dragging out hundreds of switches, then linking them to case structure(s) to do a similar task?
What I would very like to see is an example code of someone making 10x10 switches where individual switch sends out to display, an array of 2 integers, all different values read in from a .csv file. Without making 100 individual switches to be wired in the block diagram.
02-19-2016 03:50 PM
02-19-2016 03:54 PM
02-19-2016 05:43 PM
Hello GerdW,
I'm still a little puzzled on where the connection from
Plot -> Build Array -> Graph
should happen.
Say Plot 1, 2 is made once in INIT state, and plot 3 and 4 is made inside the While Loop, where should they be built into an array and where should they be connected to the graph if I wish to keep the graph interactive, such that I can extract information about the location of cursor snapping onto one of the points for Plot 1.
I am still cleaning up my big mess of a VI.
02-20-2016 05:48 AM
@GerdW wrote:
Despite hatefs comment on "technically not possible" it is quite easy to create several plots for graphs. And it's also quite easy to create one plot in INIT state and other plots later on.
Did you try to follow my comments so far?
Gerdw did you see the vi that multiplot?!
what I told technically not possible is that use xy praph the same time with the graph, chart and xy graph features becouse labview technically have appropriate tools for each of them but it is not means that we could not do it
02-21-2016 11:32 AM - edited 02-21-2016 11:33 AM
Hi SJL,
I'm still a little puzzled on where the connection from Plot -> Build Array -> Graph should happen.
Like this:
A "static" plot is generated before the loop (in your INIT state), one plot is drawn in the loop (your measurement state)…