01-03-2017 06:59 AM - edited 01-03-2017 07:25 AM
I am aquiring data (current) over time and plotting realtime using DAQ assist. I want to keep on adding incoming values and keep updating and see in real time. I am attaching the simple program I am using.
I will highly appriciate if you can help me out with adding the values and visualise realtime.
if the incomin data is
Time data i want
1 a a
2 b a+b
3 c a+b+c
Solved! Go to Solution.
01-03-2017 07:15 AM
Hi sd,
first comment: LabVIEW is a programming language working with VI files. It's not an image processing tool working with JPGs - so please attach VIs/snippets!
Next: Why are there controls without labels? Why don't you use the AutoCleanup tool?
I want to keep on adding incoming values
Do you want to "add" as keep a sum of values?
Or do you want to "add" like "build up an array of values?
keep updating and see in real time.
As long as your loop runs you already update values in "real time"!
("realtime"usually is used to describe something completely different…)
01-03-2017 07:21 AM - edited 01-03-2017 07:24 AM
Atatched the vi
if the incomin data is
Time data i want
1 a a
2 b a+b
3 c a+b+c
01-03-2017 07:48 AM
Hi sd,
you really should learn the LabVIEW basics.
All you need is a shift register and an ADD function:
if the incomin data is
Time data i want
1 a a
2 b a+b
This description is rather vague!
Your DAQ Assistent is set to deliver 100 samples per call, so "a" is an array like "a[]". I assumed you want to sum up all samples when I prepared the image. But maybe you want to average those 100 sample blocks?
01-03-2017 07:50 AM
You still have not clarified the question of what you mean by "add". Do you want to append data to an array or do you want a sum?
If you are just trying to append the data for display, I would just change the graph to a chart. The chart keeps a history and will therefore show the last X samples (X is configurable with a right-click option).
01-03-2017 08:08 AM - edited 01-03-2017 08:12 AM
Hello crossrulz,
I wanted to add the incoming data for display purpose, and I have updated with a chart.
🙂
01-03-2017 08:11 AM - edited 01-03-2017 08:11 AM
Thank you so much GerdW for the update, I tried with shift register and summation but was unaware about dynamic data vi. I am really very poor in labview.