LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

スライド表示をカスタムして円形状にできますか?

Solved!
Go to solution

表示機のカスタムを行い添付画像のような円形状のスライド表示機を作成したいのですが可能でしょうか?

また可能であれば具体的な方法を指示していただけないでしょうか?よろしくお願いいたします。
中央の数値と外周のパラメータが連動して動くようなイメージです。画像はパワポで作成しています。

UIテスト.png

0 Kudos
Message 1 of 5
(148 Views)

Hi,

 


@新米 wrote:

I would like to customize the display and create a circular slide display like the attached image. Is it possible?

Also, if possible, could you please give me specific instructions? Thank you.
It is an image that the central value and the parameters on the outer periphery move in conjunction with each other. The images are created with Powerpoint. 


Yes, it's possible with LabVIEW.

 

One way would be to use a 2DPictureIndicator and draw all the image elements on your own. Basically you need to draw some circles/arcs and put a text in the center of the image…

Best regards,
GerdW


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

@GerdW wrote:

 

 

One way would be to use a 2DPictureIndicator and draw all the image elements on your own. Basically you need to draw some circles/arcs and put a text in the center of the image…


Yes, agree, something like that

 

Circular.gif

 

Message 3 of 5
(120 Views)
Solution
Accepted by topic author 新米

Just five additional cents on this topic from my lunch break.

On more possibility is to use WPF Control wrapped to WinForms control using Hosting a WPF Composite Control in Windows Forms.

The advantage is that the code in LabVIEW as easy as nothing:

Snippet.png

Second advantage is that you can do almost anything in term of decorations (add gradients, custom shapes etc, in general much more than offered by a trivial Picture Control), because of WPF.

CircularWPF.gif

This is how it looks in xaml in Visual Studio (I'm using 2022):

Screenshot 2024-04-16 14.06.17.png

But the disadvantage is — heavy dependencies on .net, custom made DLLs and so on.

I will leave this project here and in attachment for someone who is interested.

Message 4 of 5
(97 Views)

ありがとうございます

ものすごく参考になりました。

 

使いこなせるように2DPictureIndicatorとWPFについて勉強してみます

0 Kudos
Message 5 of 5
(72 Views)