From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a subVI to Clear all charts data on a main VI

Hi all,

 

As I am writing a subVI to clear all the "charts" data on a main VI.

The number of Charts is unknown, beasue this subVI need to run at

difference main VIs. Therefore, I can only input a ref. of main VI into

the subVI and find out all the control ref.,then check the classes of

the control. If it is a chart, I need to use "To More Specific Class" to

to select waveform chart. However, if the property node is not create

from the chart directly, the "histroy data" will be missing.

No matter my concept to build this subVI should be right, I donot succeed.

 

Are there any other methods to do that?  

 

regards,

Ryan

Message 1 of 9
(2,936 Views)

Hello Ryan,

 

     It will be more easier to understand your question if you give some more details about your project and some sample code about what exactly you want to do.... 🙂

Message Edited by Rupali on 06-02-2009 02:40 AM
0 Kudos
Message 2 of 9
(2,922 Views)

I think I know

The original poster want past an array of references to subvi, in order to clear 1 or more charts. He want to use a subvi perhaps to avoid cluttering his diagram. I tried this one time but I was having the same problem. No Chart history in properties

Message Edited by Coq rouge on 06-02-2009 10:54 AM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 3 of 9
(2,909 Views)

it is simple to understand my problem.

 2009-06-02 05.17 PM_#02.jpg

there are two property node in the case.

The one created by chart directly has a property "History Data".

But the one create by "To More Specific Class" do not have that.

 

Regards,

Ryan

Message 4 of 9
(2,901 Views)

Hi Ryan,

 

It is really a bit surprising to see your diagram where the generic Chart property node does not have the History property. Smiley Surprised

 

But, did you try out usig the ClassID property instead of the ClassName property? Just a thought...

 

I developed a huge UI wherein I llok for the individual cluster elements of various datatypes. I used ClassID to connect to the case structure. Smiley Happy

 

But I m sure you method is also correct, yet dont know the reason for it showing the property in BLACK color. Smiley Indifferent

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 5 of 9
(2,897 Views)

Coq rouge wrote:

I tried this one time but I was having the same problem. No Chart history in properties


Did you file a bug report with NI, Coq?

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 6 of 9
(2,895 Views)

parthabe wrote:
Did you file a bug report with NI, Coq?

No i did not. I got it working with some diagram cluttering, and forgot all about it. As my motto is "If the damn thing works, ship it" :smileyvery-happy:



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 7 of 9
(2,884 Views)

Coq rouge wrote:
As my motto is "If the damn thing works, ship it" :smileyvery-happy:

Hi Coq,

 

I really like your "rouge"-ish reply. Smiley Very Happy

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 8 of 9
(2,880 Views)
Having "History" property in black (not available) is not so surprising because it can be any type of data : DBL, array of DBL, etc...So there's no way to know what data type need to be wired to "History" input. When you create the property node from a chart it is different : this chart has a given data type (depending on what you have wired to chart terminal : DBL by default), so the property is available.
Message 9 of 9
(2,861 Views)