cancel
Showing results for 
Search instead for 
Did you mean: 

About property node and enum

SOLVED
dipaish
Member
Solved!

About property node and enum

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

7 REPLIES 7
altenbach
Knight of NI

Re: About property node and enum

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.

dipaish
Member

Re: About property node and enum

Message contains an attachment

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.

altenbach
Knight of NI

Re: About property node and enum

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

cbutcher
Trusted Enthusiast

Re: About property node and enum

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
altenbach
Knight of NI
Solution

Re: About property node and enum

Message contains an attachment

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

 

dipaish
Member

Re: About property node and enum

Thank you so much for your help.

dipaish
Member

Re: About property node and enum

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