nsabooks.blogg.se

Labview and bacnet samples
Labview and bacnet samples









You can plot them on a Chart, and you'll see the Chart "jump" once per second as the data get plotted. Based on what you write, you want a Chart.Īs for sampling, if you ask for Continuous Sampling at 1KHz, and ask for 1000 points at a time, you will get no data for 999 milliseconds, then you'll get 1000 points all-at-once. I suspect that part of your problem may be related to two issues: the difference between a Chart (points are added to the plot, which evolves over time) and a Graph (everything is plotted "all at once" - to get the plot to change, you have to "replot everything"), and how data acquisition works.įor a discussion of Plots vs Graphs, the LabVIEW Help should provide you with useful information. I don't have the patience to schlep through your code trying to find what you do where, so I'll make some guesses and assumptions based on what you've written.

  • You use Local Variables, suggesting you don't know about using Shift Registers to hold values.
  • These are an excellent way of saving Screen Space - a sub-VI takes only 32x32 pixels, and if you give it an Icon (which can be as simple as three lines of text saying "Analog In" or "Angle Cal"), you make the code almost self-documenting.
  • You seem to know about sub-VIs (there were several "missing" from the VI you attached).
  • One virtue of LabVIEW's Graphical Programming is the ability to "see the code as a picture", but this breaks down if you can't see "the Whole Picture".

    labview and bacnet samples

    Even your main While loop takes about 5 x 3 "screens". Your VI requires about 10 by 8 "screens" (size 1280 x 1024) to "see everything".You use Sequence structures, suggesting that you don't understand the Principle of Data Flow, a core concept of LabVIEW Programming.











    Labview and bacnet samples