LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clear waveform chart using an explicit non-strict reference?

Thanks for the answer. I took the code given by Jimmy and modified it so that it looks like Ben code but still the modified code thrown an error. But when I copy the "WaveformChart (strict)" control reference from Ben code, then the error gone. So, I think the difference is how Ben setting the WaveformChart (Strict) control reference. So, what I was confused is how Ben "setting" the WaveformChart(Strict) control reference. Attached are the modified code:

1. test_initialize_multiple_charts_modified(Ben)  is the VI that I modified Jimmy code but using Ben's WaveformChart (Strict)

2. test_initialize_multiple_charts_modified(Jimmy) is the VI that I modified Jimmy code but still using Jimmy's WaveformChart (Strict)

DAKBIAS
0 Kudos
Message 11 of 15
(1,121 Views)

Very interesting.

 

I don't have an answer.  Everywhere that I could see, they look like the same type of reference.  But yet there is something different between them.

 

But I noticed that if I put an equals comparison at the top and try to wire both of them into it, I get a broken wire on one saying there is a class conflict.  While if I copy one and compare it to itself, the wires will connect just fine.

 

Maybe Ben might know what could be causing this.  Drilling down through the VI server class menu on each of those references point to the same item.  Whatever the differences are, I don't know where else to look to find them.

0 Kudos
Message 12 of 15
(1,112 Views)

I fixed the Jimmy version by...

 

1) Right click on the WaveformCart (strict) constant and made it a control.

 

2) Crtl-drag one of the wf charts into the control ref I created in step #1

 

3) right-click on the terminal and changed it to a constant.

 

I can only guess it "wasn't strict enough"

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 13 of 15
(1,100 Views)

@Ben wrote:

...

 

I can only guess it "wasn't strict enough"

 

Ben


...which is what my grandparent used to tell my parents to explain my behaviour.

 

Ben

 

Dafb spoilers aren't working today.

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 14 of 15
(1,097 Views)

Thank you very much Ben. It works.

DAKBIAS
0 Kudos
Message 15 of 15
(1,086 Views)