LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

強度グラフのカラーバーについて

強度グラフのカラーバーについて困っています。

添付写真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つのようになってしまいます。

どうすればいいですか。

IMG_7119.jpgスクリーンショット 2024-08-02 183259.pngスクリーンショット 2024-08-02 183348.png

 

0 Kudos
Message 1 of 7
(368 Views)

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.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(357 Views)

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)

Message 3 of 7
(341 Views)

Hello.

Did it go well?

I tried creating a vi following LVNinja's advice.

0 Kudos
Message 4 of 7
(316 Views)

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?

 

スクリーンショット 2024-08-06 182225.pngスクリーンショット 2024-08-06 182528.png

 

0 Kudos
Message 5 of 7
(310 Views)

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.

0 Kudos
Message 6 of 7
(299 Views)

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?

0 Kudos
Message 7 of 7
(284 Views)