LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform graph with Enum scale. Possible?

Solved!
Go to solution

Is it possible to make a waveform graph use enum labels as the scale?

 

ie. Enum {idle = 0, running = 1, error = 2}

 

Then graph an array of that enum where the y-scale is the names, not the numerical value (x is time). In this case the graph would display the state over time.

0 Kudos
Message 1 of 4
(2,281 Views)
Solution
Accepted by topic author trevor_karbo

Hi,

I don't think it's possible. But as it is an enum, you already know the possible values/labels. I would not display the Y scale values and create string decorations at the unit markers.

Yddet

Message 2 of 4
(2,228 Views)

@Yddet wrote:

Hi,

I don't think it's possible. But as it is an enum, you already know the possible values/labels. I would not display the Y scale values and create string decorations at the unit markers.

Yddet


To add to this idea, you can always pull the strings from the enum for display so you can update them automatically if the enum is changed.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 3 of 4
(2,210 Views)

Thanks for the input guys; I was hoping it would be built in to save me from that, but at least that's not terribly difficult. Just a pain when you want to make the scale visible or not and have the graph resize with that. Nothing that can't be done though.

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