10-29-2013 03:28 AM
Hello,
I'm trying to collect the data from a XY graph, for further purpose in my program.
But when the graph doesn't get any information anymore it appears to clear its chart.
I'm using this vi as a subvi if that is any help, that's why I'm using while loop so forget that one.
Or isn't there anyway to collect the data from it and I simply have to save it in a 2D array?
Koen
Solved! Go to Solution.
10-29-2013 03:41 AM - edited 10-29-2013 03:42 AM
10-29-2013 03:47 AM
Hi Gerd,
You actually improved my sub subvi, haha.
I just added it because it would be easier to understand.
Anyway, so the best thing to do is just to build it in an Array rather then predefining it as a Cluster?
Koen
10-29-2013 03:51 AM - edited 10-29-2013 03:51 AM
10-29-2013 04:20 AM
Hi gerd,
I converted it to arrays as you proposed though it still doesnt work.
In the attachment is the subvi which will process data.
Koen
10-29-2013 04:22 AM
10-29-2013 04:26 AM - edited 10-29-2013 04:27 AM
Hello Gerd,
I'm trying to save the data acquired from the apply filter vi to the savereport vi.
Where in the savereport via the array will be clustered because that will give the nicest result.
As the picture says, the scalar value you see isn't what it is, it is a stack of wires. Otherwise it would become really messy.
Koen
10-29-2013 04:31 AM
Hi Koen,
hiding elements in the block diagram is considered very bad programming style, especially stacking wires behind each other!
You should use AutoCleanup more often (ctrl-U)!
You should also get rid of all local variables in your SaveReport-VI, as they lead to race conditions...
Where in the savereport via the array will be clustered because that will give the nicest result.
I don't get the point here...
10-29-2013 04:47 AM
Hi gerd,
I'm normally neither a fan of the stacking, though it is absolutely necessary, otherwise 10 different wires will just go to right.
Only way to fix this wire stacking is using a cluster, but will this make any sense?
I removed all the local variables now, though it didnt work.
I use it clustered because i like how the XY graph gets represented.
Why i wanted it this way? because it gives a better view for a report in my opinion.
Koen
P.S. Thanks for all your help in advance!
10-29-2013 05:52 AM - edited 10-29-2013 05:54 AM
Hi koen,
otherwise 10 different wires will just go to right
When those 10 values have the same datatype you can use an array, otherwise use a cluster.
Yes, that makes sense!
Why i wanted it this way? because it gives a better view for a report in my opinion.
As long as the data remains the same you will get the same plot. It doesn't matter if you're using clusters of arrays or arrays of clusters!