08-02-2024 04:55 AM
強度グラフのカラーバーについて困っています。
添付写真1のように、例えば-200<=z<=800のデータを強度グラフで表示する際に
配色を#FF0000(z=800),#00FF33(z=400),#669966(z=0),#00CCFF(z=-400),#660066(z=-800)としたうえで
表示器には-200~800の部分だけを載せたいです。
ZScale.MarkerVals[]とZScale.MaximumとZScale.Minimumの部分を添付写真2,3のようにしたら出来ると思ったのですが
添付写真1の右2つのようになってしまいます。
どうすればいいですか。
08-02-2024 05:42 AM
Hi kuro,
@kuro_ro_orz wrote:
I'm having trouble with the color bar of the intensity graph.
As shown in attached photo 1, when displaying data of -200<=z<=800 on the intensity graph
I want to set the color scheme to #FF0000(z=800),#00FF33(z=400),#669966(z=0),#00CCFF(z=-400),#660066(z=-800)
and only display the part from -200 to 800 on the display.
I thought I could do this by setting ZScale.MarkerVals[], ZScale.Maximum, and ZScale.Minimum to the same as in attached photos 2 and 3,
but it turns out like the two on the right of attached photo 1.
What should I do?
You should attach a real VI instead of images of parts of block diagrams…
(For testing purposes it also might help to create the ZScale.MarkerVals[] as a constant instead of calculating dynamically.)
08-02-2024 08:40 AM
one way to do that is to filter your data and replace the values in your 2d array outside your range for NAN (not a number)
08-06-2024 03:38 AM
Hello.
Did it go well?
I tried creating a vi following LVNinja's advice.
08-06-2024 04:31 AM
Dear hanamaru.
Thanks for the reply.
I was able to change the file you sent me a little to show the ideal graph!
But when I re-run it with the same settings, it gets weird.
The first graph 2 is the ideal look and the second graph 2 is the look after re-running.
Do you know why?
08-06-2024 08:09 PM
Hello kuro_ro_orz.
The attached VI was created with LabVIEW 2024.
Since I am using LabVIEW 2020, I am unable to view it.
Please save the file as a previous version from the LabVIEW file menu and then reattach it to the forum.
Users on the forum might not necessarily be using the latest version of LabVIEW, so saving it in an older version will increase the chances of receiving support from a larger number of users.
08-08-2024 12:01 AM
Hello kuro_ro_orz.
I reviewed the block diagram of 'Intensity Graph Sample(LV2020)_2.vi'.
It seems that the process of replacing values below -200 with NaN (Not a Number) to make those points transparent has been omitted this time.
Is the attached VI the intended file?