LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

intensity chart update speeds?

how to increase the update rate of an intensity chart?

0 Kudos
Message 1 of 7
(3,412 Views)

Do you have code that you're trying to improve that you could share?

 

A chart is just an indicator of the most recent data points, so it updates at the same rate that you write data to it.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 7
(3,403 Views)

attached is my vi and a picture of my front panel when its running

0 Kudos
Message 3 of 7
(3,391 Views)

Okay, so what's the problem? Your charts will update faster if you decrease your 100ms delay.

 

P.S. If you want acurate loop timing you should replace the Wait function with a Wait Until Next Multiple function.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 7
(3,378 Views)

First, move the Initialize and Close VIs outside the loop. It probably takes the instrument a long time to initialize and you should not need to do that on every iteration.

 

1.a. How long does it take the instrument to acquire and transfer a data set? This will be the ultimate limiting factor on the loop rate.

 

Next, only write to the property nodes if the inputs have changed. Property nodes can be slow.

 

Third, If the data sets are always the same length, only calculate the array of integers (for loop) one time.  This executes quite quickly but it is a good habit to only caluclate one time things which never change.

 

Try to avoid overlapping and right to left wires. These have no effect on speed but make it very difficult to follow what is going on.

 

Lynn

0 Kudos
Message 5 of 7
(3,365 Views)

Are you working with Haristhota in this thread on the Signal Conditioning Board?  There are some very strong similarities between the code posted there and your VI.

 

Lynn

0 Kudos
Message 6 of 7
(3,349 Views)

No, I started mine from an example built into labview then have been updating it to work for my purposes

0 Kudos
Message 7 of 7
(3,344 Views)