LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XControl causes flickering execution

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

0 Kudos
Message 1 of 8
(2,762 Views)

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

Download All
0 Kudos
Message 2 of 8
(2,734 Views)

Thx for your explanation. Is there any possibility to solve this problem?

 

Best regards,

Andreas

0 Kudos
Message 3 of 8
(2,721 Views)

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

0 Kudos
Message 4 of 8
(2,716 Views)

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

Message Edited by TCPlomp on 24-03-2010 04:31 PM
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!
0 Kudos
Message 5 of 8
(2,713 Views)

Hi TCPlomp,

 

I already tested this at first... :smileyhappy: (good idea)

 

The behaviour was still the same...!!!

If you place the INIT into the Display State, you have to make sure, that this case will be called before a value change!!!

 

 

Best regards

Dippi

0 Kudos
Message 6 of 8
(2,706 Views)

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

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!
0 Kudos
Message 7 of 8
(2,685 Views)
No it doesn't. It runs better with refresh image than without. I also used the ini ability to store the IMAQ refnum. It also causes no improvement.
0 Kudos
Message 8 of 8
(2,656 Views)