From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visa sessions

Actually i am using labview to acquire real time data from rigol oscilloscope
DS1204B.I succeeded in acquiring waveforms but my problem now is to first get
data of a waveform and get its amplitude1 value and then get another waveform  
and want to use amplitude1 of previous waveform to get amplitude of second
waveform divided by amplitude1. So basicaaly i want to store that previous
value of amplitude1 of first  waveform. First i get waveform1 data and its
amplitude but when i display the second waveform on rigol and acquire it in
labview my previous data is lost that was amplitude1....so kindly give me a
solution to this problem so i can be able to acess my  previous stored data in
next acquisition.

0 Kudos
Message 1 of 17
(3,504 Views)
Use a shift register or feedback node to save the value from the last loop iteration. If you want more detail than that, post your code!

LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 17
(3,490 Views)
also you can use Append Waveforms VI for waveform and attach your file with shift register
or use what Sam told and use insert into array instead
0 Kudos
Message 3 of 17
(3,467 Views)
Hatef,

What would be the point of either the Append Waveforms or Insert Into Array? Neither would be appropriate based on the op's description. A single shift register as Sam mentioned is enough.
0 Kudos
Message 4 of 17
(3,459 Views)
dont you need to save your data based on time index? using just shift register will be destroy last data and you would not have a access to them
0 Kudos
Message 5 of 17
(3,448 Views)

Details are provided in second math script palette used in attached vi

0 Kudos
Message 6 of 17
(3,438 Views)
Can you attach an image of the block diagram? I'm posting from my phone.
0 Kudos
Message 7 of 17
(3,424 Views)

different parts of my vi

Download All
0 Kudos
Message 8 of 17
(3,414 Views)
I don't understand what you are trying to do. When you say waveform 1 and waveform 2, do you mean channel 1 and channel 2? Or do you mean to repeat the acquisition of both channels? And I would eliminate the Mathscript and use native LabVIEW functions.
0 Kudos
Message 9 of 17
(3,396 Views)

I mean to repeat acquisition of both channels for new waveforms displayed on oscilloscope

0 Kudos
Message 10 of 17
(3,383 Views)