07-31-2014 08:59 AM
Hello,
i have some data which is currently stored in two arrays. One array with values and another array with timestamps.
Now my questions is how can i bring/convert these into the format of XY-graph?
Thanks for help.
07-31-2014 09:06 AM
As shown in your picutre, the XY graph accepts a cluster. Use the Bundle tool to place the X and Y arrays into a cluster
07-31-2014 09:13 AM
07-31-2014 09:36 AM - edited 07-31-2014 09:40 AM
Is this the way how to convert the two arrays in xy-format?
Somehow i have to use the string-timestamp as i will have later 10 traces on the graph with little different timestamps.
07-31-2014 09:41 AM
07-31-2014 10:08 AM
Thanks for your help. Seems to work now.
I am looking now for a property for dynamically add new plots to the graph. My idea was that there is a property for the graph under "Plot + Add"? But seems to be to easy 🙂
07-31-2014 10:10 AM
08-01-2014 04:01 AM
Hi,
thank you for the help.
Currently i have a cluster-array in a global-variable
The cluster contains:
-Timestamp
-channel(1..30)
-y-value
I can have up to 30 plots in one diagramm.
Now i have to create something that depending on the number of different-channels in the cluster-array i have the same number of plots.
How can i do this?
Thanks
08-04-2014 03:25 AM - edited 08-04-2014 03:31 AM
Hello,
currently i am trying to use a loop that executes 3 times a Bundle and inserts it in a cluster-array.
The problem is that the "start-array" that goes into the shift-register is wrong at the end.
What can i change to not have this "dummy"-entry later in the array?
The loop inserts the correct values at index 0, 1, and 2 but at index 3 is then this dummy-array?
How to change this?
Thx
08-04-2014 03:31 AM
Hi One,
- Why do you use a InsertIntoArray when you want to append new plots to an array of plots? Use BuildArray!
- Why do you initialize your shift register to already contain (atleast) one plot?
- Why do you use a shift register at all? Why not rely on the autoindexing output tunnel? 3 iterations will yield 3 plots easily…
- Why don't you clean up your VI before uploading?