12-21-2012 11:33 AM
Is there any way that I could change the color of a sinewave on a graph to correspond to its data collection point? I have an idle state that runs a sinewave graph continuously. I'd like to change the line color of the sine wave at the point in which my program starts collecting data of that particular sine wave. Any thoughts?
12-21-2012 12:12 PM
You can modify the plot color of a particular plot on your graph using a property node. Just write the color you want to the Plot.Color property.
Dan
12-21-2012 01:04 PM
a sample vi with color plot alternating...
12-21-2012 01:45 PM
I think the OP is asking if you can change a portion of the graph based on a certain time threshold.
12-21-2012 01:55 PM
Vt is right, technically. I want the graph to spilt colors at the point of data measurement. Is there another way to see where on the graph I started to collect data?
12-21-2012 02:06 PM - edited 12-21-2012 02:06 PM
You could do an XY plot and just change from Plot0 to Plot1 at the transition point.
12-21-2012 02:08 PM - edited 12-21-2012 02:09 PM
Would cursors help ?
I added a cursor manually, and using property nodes you can set it to whereever in the time scale. Hope it helps?
12-21-2012 02:13 PM
mmm, yes. A cursor would work great! How would I consider the time at which my measurements start?
12-21-2012 02:17 PM
Can you post your VI if you have it ?
If you use a State machine, you could control when your measurements start and set the cursor position accordingly ? Or Like someone suggested, use XY plot for the transition which might look better visually.
12-21-2012 03:07 PM
it's kind of finicky, but here it is. it starts recording data when the digital input becomes high twice.