LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Experiencing Slow Execution in WDT Loop

皆さん、こんばんわ。

私はLabVIEW初心者です。

添付のVIの実行速度が遅いので、効率化を図りたいと考えています。

WDTのループセクションが速度低下の原因である可能性が高いと思います。

しかし、良い解決策を見つけるのに苦労しています。

 

何か提案はありますか?

0 Kudos
Message 1 of 5
(456 Views)

Hi shiranoyu,

 


@shiranoyu wrote:

Good evening everyone.

I'm new to LabVIEW.

The attached VI runs slowly, and I'd like to make it more efficient.

I think the WDT loop section is most likely the cause of the slowdown.

But I'm struggling to find a good solution.

Any suggestions?


Welcome to the LabVIEW forum!

 

First suggestion: to allow more of us to help you should downconvert your VI (File->Save for previous) and attach it again.

Most will say "convert for LV2021 or older", I prefer LV2019…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(402 Views)

Hallo GerdW

Thank you for your advice, 

As per your suggestion,

I have  converted  the vi file to a version prior to 2021

 

0 Kudos
Message 3 of 5
(361 Views)

Hi shiranoyu,

 

thanks for downconverting.

 

Are you sure about the code in this loop:

  • Do you really need to decimate the waveform array after the acquisition? (Wouldn't it make more sense to use the IndexArray function?)
  • Would it make more sense to use plain waveforms in those shift registers instead of 1D arrays of a single (?) waveform?

My suggestions:

  • When you know the number of iterations before starting the loop then you should use a FOR loop!
  • Cleanup your code to avoid lots of crossing wires!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(355 Views)

Thank you for your reply, GerdW.

I was considering using a 1D array solely for the purpose of the calculations at the end.
And Each of the ch123 arrays will used in other programs.
If there are any better methods, please let me know
And as you said, it would be better to use a For loop.
I appreciate it.

0 Kudos
Message 5 of 5
(327 Views)