03-23-2010 02:25 AM
Hello community,
I try to change my intensity graphs with XControl graphs. I found out that the same code, one time on the blockdiagram and one time in my XControl, causes different execution. The code on the blockdiagram is a little slow down but flowing. The XControl causes flickering execution. Take a look at my zip-file with a example.
best regards,
Andreas
03-24-2010 03:26 AM
Hi Abrissbirne,
I took a look at your example.
I was able to see the behaviour you described.
Because of that behaviour I used the "Desktop Execution Trace Toolkit" to see what happens.
It's very simple - the XControl is simply more / consists of Labview Code.
So there is more code for execution.
Everytime there is a value change, an event (inside of your XControl) is fired...and the code has to be executed (Start -> execute -> stop -> transfer data)
You can see the discribed behaviour in my two Execution traces -> See attachments.
Hope I was able to clarify your questions.
Best regards
Dippi
03-24-2010 09:34 AM
Thx for your explanation. Is there any possibility to solve this problem?
Best regards,
Andreas
03-24-2010 10:23 AM
Hi Andreas,
as far as I know, there are no possibilities to solve this problem.
This is because of the XControls..
Do you have to use them?
Sorry for that.
Best regards
Dippi
03-24-2010 10:31 AM - edited 03-24-2010 10:31 AM
Is it necesary to create a new image on every data change?
I think you should run IMAQ create in the INIT ability and store the IMAQ refnum in the Display State.(don't forget to destroy in the UnInt ability)
How does your code do without the 'Refresh Image'
Ton
03-24-2010 10:40 AM
03-25-2010 01:37 AM
The init ability will always be called before any code is run in the XControl, no need to worry about.
Does the Refresh Image cause the flickering?
Ton
04-02-2010 04:18 AM