LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform average

The moving average is working, but i cant figure out why it doesnt show in the waveform graph. I tried a convert to dynamic data block for the average into the merger as well, but cant figure it out? Anybody can help me out by getting this moving average into the waveform graph?

Florido80_0-1715703340772.png

Florido80_1-1715703424192.png

 

0 Kudos
Message 1 of 2
(345 Views)

You seem to be coming from a text programming background, so I would start with some basic tutorials about dataflow.

 

  • Why are all your terminals disconnected? In LabVIEW, the wire is the variable. Local variables are not variables in the classic sense and you really don't need any of those! Connect the terminals to the code!
  • Why do you have a blocking event structure if none is needed. You have inner loops that rely on user interaction, but changing any control handled by events has the potential to lock the panel forever. Catch 22!
  • Having a 1000ms timeout and a 1000ms wait in parallel makes very little sense.
  • The use of "Bytes at port" is most often incorrect. (start here!)
  • Several cases have default state output. Is that really what you want?
  • Why is the diagram such a mess with way too many wired bends and wires hidden under structures?
  • If you use typedefs, you need to attach those too, else the code is broken for us.
  • There is no reason in the world to switch to stretches of dynamic data anywhere.

 

I would still recommend you start with the learning resource listed at the top of the forum.

0 Kudos
Message 2 of 2
(301 Views)