LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using polymorphic indicators in custom controls

I'd like to be able to create a custom indicator which includes a mixed signal graph and a few boolean controls but the problem i'm running into is that when I create a new control and add the mixed signal graph, it is expecting the dbl datatype and not the xy data type that I am using in my application. Is there any setting to tell the control that I really want it to be an x-y mixed signal graph?
0 Kudos
Message 1 of 4
(2,826 Views)
You can't mix data types in plain old custom controls. You need to build a X-Control.
Richard






0 Kudos
Message 2 of 4
(2,821 Views)
blank_page

What if the graph and the buttons were themselves contained within a cluster? I've mixed different types of controls (boolean, string, file path, and numeric) within a cluster in a custom control before. Is there some reason why I couldn't do that here?

 

Also, what if I wanted to make a custom control with just the graph in it? My reason for doing so would be to keep the size and setup of the graph consistant as I am using it in more than one place on my front panel and I want all of them to be uniform in appearance. If I created a control with just the graph in it is there any way to tell it that it should use the XY datatype instead of dbl?

 

If you just add the plain graph to a front panel it can accept several different signal types (waveform, dbl, XY, dynamic data) and I'm wondering why placing the same graph into a custom control makes it lose this ability.

0 Kudos
Message 3 of 4
(2,816 Views)
OH, I see, a cluster, which in fact is fine, there's just not any interpellation between the controls as you can get in an X-COntrol, which you may not care about.

I don't know why you can't get all the graph / chart types to show up as the normal data type, including the XY data... see attached picture, I was able to do it.

Richard






0 Kudos
Message 4 of 4
(2,785 Views)