03-11-2011 02:04 AM
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)
03-11-2011 08:28 AM
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.
03-11-2011 02:11 PM - edited 03-11-2011 02:12 PM
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
03-11-2011 02:14 PM
@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.
03-12-2011 02:43 AM
Thank you very much Ben. It works.