LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Properties in Xcontrols

Hello,
 
I am now starting to test the new features in LV 8.2, I was using 7.1 and skipped 8.0, so there are some new features I want to test before starting to add them to my projects.
I have, in my project an "object" that is composed by two graphs and a chart: when my acquisition rate is low, I show my data in a chart and when it is high, I show it in a graph. 
I have also a transparent graph over the chart just to have the possibility to have cursors when using the chart.
I also have some change scale functionality that I added to the Xcontrol.
I thought this was a good thing to make a Xcontrol because I use it at least 2 times in my project.
 
I built my Xcontrol, but when I want to show/hide plots and change their colors (I built some properties for my control) nothing is happening.
I was expecting that I would have some events that would fire when I programmatically change the properties of the Xcontrol, but I didn't find that.
By checking some examples I saw that most of the time properties are handled in the Display State Change event of the Façade vi, so I did it there, but it is not working.
I put some breakpoints in my program to see if it is running the property change and it does, but not really when I want it to... and not really with the results I expected.
 
Can someone check if I'm doing the property handling wrong?
Is there a better way to change properties of one component of the Xcontrol?
 
Thanks,
Paulo
0 Kudos
Message 1 of 3
(2,538 Views)
Paulo,

sorry to say this (you as a PAV) but you made a beginner error. (and it took me a while to see it...)
Your code should contain this:


(for the chart as well)

Ton

Message Edited by TonP on 11-14-2006 11:55 AM

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 3
(2,534 Views)

Geeeeeee!!!!!

Shame on me!

Btw, do you know if that's the only way to handle the properties.

I don't like to be changing all the properties if only one of them should change, or to have variables to store what's the property to change.

Thanks a lot for the help...

0 Kudos
Message 3 of 3
(2,526 Views)