LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to adjust number of shown plots on waveform charts

Solved!
Go to solution

hi all,

I am trying to adjust number of shown plots on a waveform chart by use of property node but I could not succeed it. Is it possible to do it? I was only able to adjust the number of shown legends of the waveform chart.

Egemen
0 Kudos
Message 1 of 14
(6,570 Views)

I added a printscreen to express the situation clearly. I wish I could have succedded...

Egemen
Download All
0 Kudos
Message 2 of 14
(6,548 Views)

If you have 2011 version of LabVIEW or later you have option that comes with the chart. You can enable/disable the plots using a check box.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 3 of 14
(6,540 Views)

P@Anand wrote:

If you have 2011 version of LabVIEW or later you have option that comes with the chart. You can enable/disable the plots using a check box.


I am using Labview 2009 professional version. Isnt it possible to do it in 2009 version?

Egemen
0 Kudos
Message 4 of 14
(6,535 Views)

Like P@Anand said. I tried this just to be sure, and there seems to the limitation that Plot 0 (the first plot in the input array) can not be hidden by unchecking the plot visibility checkbox. 

 

How: Property node: 

 

Two "solutions": Legend > "Plot visibilty checkbox visible"; set to true.

 

1. Make an empty plot and use it as the first (zeroth) plot.

 

2. Expand the property node, set Plot 0 as active plot, wire a boolean control to the Plot.Visibility property.

 

 

Best regards,

Jarle Ekanger, MSc, PhD, CLD
Flow Design Bureau AS

- "The resistance of wires in LabVIEW is not dependent on their length."
0 Kudos
Message 5 of 14
(6,534 Views)

@JarleEkanger wrote:

Like P@Anand said. I tried this just to be sure, and there seems to the limitation that Plot 0 (the first plot in the input array) can not be hidden by unchecking the plot visibility checkbox. 

 

How: Property node: 

 

Two "solutions": Legend > "Plot visibilty checkbox visible"; set to true.

 

1. Make an empty plot and use it as the first (zeroth) plot.

 

2. Expand the property node, set Plot 0 as active plot, wire a boolean control to the Plot.Visibility property.

 

 


I have not check the property node "Legend > Plot visibilty checkbox visible" yet because I have not Labview at home. Does Labview 2009 have that property node you mentioned?

 

Egemen
0 Kudos
Message 6 of 14
(6,518 Views)

If your version does not have the visibility checkbox, you can code your own. 🙂

 

Here is a simple example using a chart, but the general principle would be the same. (original discussion)

Message 7 of 14
(6,515 Views)

@altenbach wrote:

If your version does not have the visibility checkbox, you can code your own. 🙂

 

Here is a simple example using a chart, but the general principle would be the same. (original discussion)


I checked your solution and tried to adapt to my VI but it does not work as yours. I could not find what it is wrong with it. I attached the VI. I am working a simulated NI cDAQ 9188 on it with 2 NI 9214 thermocouple analog input modules. I want to use this property for all graphs in each tab. Can I do it easily? Do I have to event structure for all of them separately?

Egemen
0 Kudos
Message 8 of 14
(6,479 Views)
Solution
Accepted by topic author newbieeng

@newbieeng wrote:
I checked your solution and tried to adapt to my VI but it does not work as yours. I could not find what it is wrong with it. I attached the VI. I am working a simulated NI cDAQ 9188 on it with 2 NI 9214 thermocouple analog input modules. I want to use this property for all graphs in each tab. Can I do it easily? Do I have to event structure for all of them separately?
Just a quick glance so far:
  • The event loop needs to be outside the main loop. Currently it stalls the main loop. It needs to run independently.
  • You need to add a value change event on the boolean array to the timeout case.
  • The boolean array needs as many elements as you have plots.
  • ...

 

Message 9 of 14
(6,464 Views)

@altenbach wrote:

@newbieeng wrote:
I checked your solution and tried to adapt to my VI but it does not work as yours. I could not find what it is wrong with it. I attached the VI. I am working a simulated NI cDAQ 9188 on it with 2 NI 9214 thermocouple analog input modules. I want to use this property for all graphs in each tab. Can I do it easily? Do I have to event structure for all of them separately?
Just a quick glance so far:
  • The event loop needs to be outside the main loop. Currently it stalls the main loop. It needs to run independently.
  • You need to add a value change event on the boolean array to the timeout case.
  • The boolean array needs as many elements as you have plots.
  • ...

 


I did all your suggestions but unfortunately they did not work. Where do I do wrong?I attached the new VI.

Also I noticed that simulated NI 9188 does not generate good signals precisely after excessing 26 thermocouple. Is it limited to generate signals for a limited number of channels?

 

Egemen
0 Kudos
Message 10 of 14
(6,453 Views)