LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Real time measurements

Hi all,

i want to measure intensity from power meter in real time, 

for example, time scale 0 to 30 mins with data taken at every second. I tried with waveform chart, but i don't know the time shown in x axis is real time.

could you please suggest some tutorials or example files 

thank you

 

0 Kudos
Message 1 of 3
(2,091 Views)

Hi roshcute,

 

I tried with waveform chart, but i don't know the time shown in x axis is real time.

When you don't know you should check and examine your code!

Did you?

 

How often do you read new samples? Does your device support hardware timing?

Mind to attach your code? (Mind to provide more detailed information?)

Best regards,
GerdW


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

This is a DAQ (Data Acquisition and Control) question, a topic that LabVIEW deals with a lot, and very well.  There are numerous discussions and tutorials on NI (and other) Web Sites about NI-DAQmx that you should study (do a Web search for NI DAQ Tutorials).

 

NI DAQ involves some hardware device to acquire the data and convey it to LabVIEW, typically either over USB or over TCP/IP (including over the Web).  The hardware usually provides the "clock", so your LabVIEW code says something like "Acquire N samples at a sampling frequency of F Hz and let me know when you have the data".  You typically put this code in a loop, and as the data come in, you plot it, save it to disk, do FFTs on it, or whatever it is you need to worry about.  The "Real Time" part is usually handled by your DAQ device, as it (typically) has a very accurate "sampling clock", one that isn't bothered by Windows Updates, Virus Scans, etc., and potentially allows your code to run "as fast as it can", with very little time required by the LabVIEW code to handle the DAQ Task (it mostly "waits" until the data are available).

 

So learn about DAQmx.

 

Bob Schor

0 Kudos
Message 3 of 3
(2,056 Views)