01-20-2009 08:50 AM
I'm making hesteresis measurements. In this case, I collect data while sweeping voltage first from 0 to 2V, and then back from 2V to 0V, and the data are plotted in a single XY graph. In the XY graph, I want forward sweep plot of one color while the reverse sweep with another color so I can easily make comparisons. And I want to see the data real time. I tried to wire "plot color" in "property node", but this will change the color globally and can not be applied to a section of data. Can anyone advise me how to do this? Thanks!
Solved! Go to Solution.
01-20-2009 08:59 AM
A simple yet slightly inefficient way of ding this might be to split you array of data into two arrays. One for the up sweep and one for the down. Each array should have for example 10 points and then 10 zero's (or play with the time base) and repeat. The other would be 180 degrees out of phase and so the effect would be a sigle line. Each line could then be handled separatly.
This would only work if your sweep was known uniform and repetative, if it is not known initialy you could do a bit of pre processing, the differential would show you the gradient and therefore direction of sweep for example. This is getting complicated though, there must be a better way. can you attach (the vi) or a screen shot of the graph you have at the moment to get a better understanding
01-20-2009 08:59 AM
you can create different plots from your data and change the color of these plots. Then you have what you need.
01-20-2009 09:46 AM
Thank you very much for the reply, I really appreciate it.
However I don't quite understand your descripton. Yes I do spit my data in two arrays, one for forward sweep, and the other for reverse sweep. I can plot with different colors in XY graph by appending several XY graphs into one, but by doing this I can not see the data real time. I quickly made a vi to demonstrate my problem, hope this will give you a better understanding. Thanks.
01-20-2009 09:48 AM
Thanks for the reply. However I have to use single XY plot and see data in real time. I've attached a demo vi showing my problem in post #4.
01-20-2009 10:37 AM
01-20-2009 10:43 AM
01-21-2009 08:36 AM
Tanks Mike and LanW, they both works for me!!