07-01-2013 09:14 AM
Hi all!
Like a lot of people here, i am displaying data on an intensity graph. In my case, I am using the graphs' cursors to move an XY stage, and plot the data on "Z". I am doing this fine using TWO regular graphs; one for motion and one for data. Combinging the two to an intensity is my next step. I can display data fine on a grayscale (so my cursors stand out well and are visible). Now the part that has me banging my head against the wall...
The ramp in the attached example2 is straight from the examples. I simply changed the color to a medium gray, and I can slide the center marker marker up and down, effectively changing the "contrast" if you will, to make the lighter colors more visible (lighter = stronger signal). I am trying to do this programmatically in example3.
Example3 has some real data that I saved as defualt. Once I "touched" the ramp marker I lost the ability to change the ramp like in example2! The settings are the same. Using some example I found, I did manage to find a way to move the center marker using a control (note the range, so I enter 1E-7, 2e-7, etc.). But the color will not change when I change it using another control.
I want the exact setup from the example2, slide the marker and have the color range change. The color of the center marker can/will be fixed, I figure I can extract MIN/MAX from the Z data to set the initial center marker position. I'll hide the ramp, and just use a slider to slide the center marker up and down to move the "center gray" up and down the ramp.
How did I break example3?? Even manually sliding the marker does nothing now
Thanks!!
Steve
Solved! Go to Solution.
07-01-2013 10:05 AM
Adding better examples...
"OK" is the working one I made from the example. You can programmatically "adjust the contrast"...
I added a 2nd graph in parallel (example3) and it broke. The marker moves, but no longer adjusts color??
Steve
07-02-2013 11:31 AM
Hello Steven8R,
I played around with your VIs for a while, thumping my head also, trying to figure out why the second one is responding differently. Turns out it is a very simple fix.
In your Example3 VI, while the VI is running, right-click on the Intensity Graph 2, and then de-select "Ignore Color Array". Then you're good to go.
As far as coding is concerned, I would advise replacing your VI Reference variables with just Property Nodes from the Intensity Graph. It will clean up your code and prevent any possible race conditions from having the Local Variables.