LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart suddenly displays slowly (overnight)

Firstly sorry if this is the wrong place for this.

 

I'm pretty new to Labview but am enjoying it so far and have found many of the answers to my questions on google, but this one still remains.

 

I'm making a program that will use accelerometer data and an ultrasonic sensor (from an arduino) so that I can view a plot of acceleration v time and velocity v time.

 

Everything was fine and I had a rough working program as of last night. Come back to it today to try and get some of the readings more accurate (velocity is giving me trouble when i use the shift registers) and for some reason my chart is updating suuuper slow. I've checked things like chart history length and what not but no changes seem to make any difference.

 

I've attahced the VI (not sure if that's all I need to attach) but at this point any and all advice would be greatly appreciated.

 

This is just a little hobby project I've decided to try and make a go of so no real urgency here, thanks for your time 🙂

 

Dan

0 Kudos
Message 1 of 4
(3,241 Views)

I only managed to open the top level vi you attached. This looks ok and a chart history length of 10 would not make headlines. Only small remark is the pacing of the loop - is it done internal to the read-vi? I suppose so.

So the problem must be somewhere in the called vi's.

Try check the task manager for excessive memory consumption or some task hugging the cpu.

Try run the very useful tool: Tools->Profile->Performance and memory to look for similar things specific to LV.

Check for errors like timeout. Timeout can make the system appear slow if it does not break execution.

0 Kudos
Message 2 of 4
(3,178 Views)

Funny you should mention the pacing of the loop as I decided to try starting again (at least now I know what I'm doing) and the LINX example shows a "loop rate" in Hz which I deleted before 😕

 

I think the LINX.vi is where the problem is stemming from. I must have done something stupid.

 

My processor usage did go up a bit but nothing stuck out over the top in terms of memory useage and the tool came back about the same.

 

I'll try a rebuild and see if that makes it better (without randomly deleting things). I'll keep you posted and run the tool on the new VI.

0 Kudos
Message 3 of 4
(3,119 Views)

Please disregard my post.

 

I'm a spaz.

 

Wired my circuit wrong (I'm so ashamed).

 

Thank you for trying to help anyway 🙂

0 Kudos
Message 4 of 4
(3,100 Views)