LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

About property node and enum

Solved!
Go to solution

How to make a connection of enum with property node of the waveform chart on the block diagram so that we can choose among three choices: strip, scope, and sweep. 

And, also between enum and property node of the waveform chart so that it would allow the user to display or not display the plot points on waveform?

Thank you

0 Kudos
Message 1 of 8
(3,769 Views)

Please provide more detail of your problem:

 

  • Do you have problems finding the right property?
  • Do you have problems creating the enum?
  • Do you have problems connecting them?
  • etc.

Easiest would be if you could attach a simple example VI.

0 Kudos
Message 2 of 8
(3,752 Views)

Actually, I have trouble finding the right property as well as connecting them. I want to create a program where enum would control the property node of waveform chart to allow the user to choose among one of the types: scope, sweep and stip as well as allow the user to choose to display the plot points or not display them.

0 Kudos
Message 3 of 8
(3,735 Views)

The correct property is "update mode", not "plotpointstyle".

0 Kudos
Message 4 of 8
(3,729 Views)

As altenbach already said, you need "Update Mode" (near the bottom).

 

If I remember correctly creating a constant or control from this node doesn't provide an enum, you just have values 0, 1 and 2, but I could be misremembering (and can't currently check) 


GCentral
0 Kudos
Message 5 of 8
(3,723 Views)
Solution
Accepted by topic author dipaish

@dipaish wrote:

Actually, I have trouble finding the right property as well as connecting them. I want to create a program where enum would control the property node of waveform chart to allow the user to choose among one of the types: scope, sweep and stip as well as allow the user to choose to display the plot points or not display them.


I strongly recommend that you first take a few more tutorials before continuing. Code is just a mess!

Still, here's a quick example. Seems to work just fine.

 

And please(!!!) don't use easter egg color fills on structures on the diagram. Any background color except white makes certain wires hard to see. Focus on code, not on cosmetics.

 

(Still, you should only write to the property node if the control changes, and not with every iteration of the loop. Not shown. You might also want to re-write t0 when switching to certain update modes).

 

0 Kudos
Message 6 of 8
(3,722 Views)

Thank you so much for your help.

0 Kudos
Message 7 of 8
(3,710 Views)

I spent almost whole day watching tutorials trying to figure which codes would be best for my program. I really appreciate the sample by you which gave me a lot of ideas. I figured out the alternate ways for my program but was lengthy, yours is too short( Do more in less time as you say). 

Thank you so much @altenbach

0 Kudos
Message 8 of 8
(3,699 Views)