LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

switching between wave form charts

hey!!
need help regarding waveform chart. i want to plot two different datas .But i dont want to plot on the one waveform chart. i want to show them on two different charts plus i dont want both waveform charts to show on the front panel at the same time.Is there any way i can make a control and switch between charts to see data .???
thanks
sdi
0 Kudos
Message 1 of 8
(4,268 Views)
hi
if you want to keep two chart (you use some memory); one easy way to do it is having a Tab Control. A more advanced feature is to use InvokeProperty nodes to make visible one or the other of the two charts
N
0 Kudos
Message 2 of 8
(4,264 Views)
hey N can u tell me how to hide one chart using invoke nodes or any other easy method
please help me out on this in detail if u can .
best regards
sdi
0 Kudos
Message 3 of 8
(4,237 Views)
hi
i don't have LV on this computer so my answer may be a bit approximate. You can right click on an objet then Invoke PropertyNode, in the Property node you have all properties for the object. AMong others you have Visible : you have to wire properties there (True or False, 0, 1 or 2 for Disable, etc)
N
0 Kudos
Message 4 of 8
(4,234 Views)

Hi,

the attached VI demonstrates how you can make an indicator visible/not visible. To create a property node for an indicator, just right-click on the indicator and choose

Create>Property Node.

Thanks,

KostasB

National Instruments

Applications Engineering

 

Message 5 of 8
(4,222 Views)
Lets not forget the tab control method.  As mentioned before, it is the easiest way to do this.  Drop a tab control.  Put a chart on both tabs.  For the next few steps, note that you can change just about anything on a tab control by using the properties from the context menu - just right click on either a tab or the edge of the tab control.  Hide the actual tabs (using the context menu Visible menu) and color the background of the tab control transparent (you may want to leave it colored for developement).  Change the tab control to an indicator (using the context menu).  To change charts, set the value of the tab control from the block diagram (it is an enum, so if you labelled the tabs something reasonable, your code will be somewhat self-documenting).
0 Kudos
Message 6 of 8
(4,207 Views)
heY!thaNKS  every one,tried kostasB way
FinaLLy i GOt To iT
but can anyone tell me how can i clear charts to run another plotting without exiting LV.
Coz when vi stops one chart is hidden and have data already plotted,and i guess we cant switch to clear chart when its stopped???
best regards
SDI
0 Kudos
Message 7 of 8
(4,186 Views)
For charts, you can clear them by writing an empty array to the History Data property.  Graphs are even easier; write an empty array to the graph.  You can find an example of this in <LabVIEW>\examples\general\graphs\charts.llb.
0 Kudos
Message 8 of 8
(4,170 Views)