acquisition display continuous data on 1 chart and display medium on another

Hello

I created the VI to display the last 100 values on a chart and on average every ten values on another graph. So when 100 values on the first graph, the values of the ten (where each is the average of 10) are displayed on another. The code I created for this purpose is attached.

I don't think I realized that I started to because:

The X axis is time in seconds and no number for each value, unless there is a value acquired every second.

If I pass the highlight performance, average Bulletin Board expect top 10 values are displayed on the waveform table. It should then display a single average value. He should do it for every 10 iterations. However, it is not the case.

Could someone if please change the code to me and advise on how to change x axis of time to any other variable where necessary.
Thank you in advance for help

Hello

In code, you do mobile window.  However, from what you describe, you want a fixed window without overlap.  I changed the following code, see the attachment.

1. I change the x-axis of time at the point.

2. I put the 2nd table in a box structure.  The 2nd table will update only when the loop iternation is divisible by 10.  Let me know does this work for you.

Yik

Tags: NI Software

Similar Questions

  • acquisition of continuous data from Ni-DAQmx

    Hello

    I use LV 8.0 and am acquire signals of an ecg machine using the NOR-DAQmx with a sampling rate of 1000smpls/s... the thing I want to do is, get the table with the complete information and move on to another VI for analysis... But the problem I am facing is, as the sampling rate is 1000 and my DAQmx is a while loop I get just 1000 values in the table and not the complete table with the record for more than 60 seconds...

    Can someone tell me please a method to get all the values in the table, I mean for the session of any acquisition (maybe 5 minutes)...

    Kind regards

    Nitzy...

    Hello!

    Use something like this:

    But the DAQ Assistant, putting your own code DAQmx (for something as simple as buying 1000 samples, DAQ Assistant is good!)

    Make sure the Array function to build is set to concatenate entries, also convert Dynamic Data has the value table 1 d of scalars-automatic (but this is only important with the DAQ Assistant)

    I hope this helps!

  • Excerpts from continuous data acquisition

    Hello

    I want to make an acquisition of continuous data with a NEITHER-6133 @ 1ms per channel. The data must be stored on hard disk. At the same time, I want to take excerpts from acquisition to calculate different values. The acquisition of the extract must be triggert by an external digital trigger.  Are there examples, which combine continuous data collection and collection excerpts?

    Thank you very much.

    Best regards

    Michael

    System

    Windows 7

    LabVIEW 2012

    NOR-6133

    Thanks to the support of NOR-Germany, I found a solution for me:

    1.) continuous trigger switch

    Connect 2) the trigger for the signal to a digital i/o

    3.) synchronize AI and DIO

    Excerpt 4.) the samples needed by the search within the digital waveform pattern

    Result:

    The example shows 4 IA channels Cup (tested on Win7, NI PCI-6115, 4 channels each 5. MECH / s) and calculation on extracts from each channel signal triggered parts.

  • Real-time display at the high frequency of data acquisition with continuous recording

    Hi all

    I encountered a problem and you need help.

    I collect tensions and corresponding currents via a card PCI-6221. While acquiriing data, I would like to see the values on a XY graph, so that I can also check current vs only voltage/current / time. In addition, data should be recorded on the acquisition.

    First, I create hannels to analog input with the Virutal DAQmx channel create, then I set the sampling frequency and the mode and begin the tasks. The DAQmx.Read is placed in a while loop. Because of the high noise to signal, I want to average for example every 200 points of the current and acquired for this draw versus the average acquisition time or average voltage. The recording of the data should also appear in the while loop.

    The first thing, I thought, was to run in continuous Mode data acquisition and utilization for example 10 k s/s sampling frequency. The DAQmx.Read is set to 1 D Wfm N Chan N Samp (there are 4 channels in total) and the number of samples per channel for example is 1000 to avoid the errors/subscribe for more of the buffer. Each of these packages of 1000 samples should be separatet (I use Index Array at the moment). After gaining separate waveforms out of table 1 d of waveforms, I extracted the value of Y to get items of waveform. The error that results must then be treated to get average values.

    But how to get these averages without delaying my code?

    My idea/concern is this: I've read 1000 samples after about 0.1 s. These then are divded into single waveforms, time information are subtracted, a sort of loop to sprawl is used (I don't know how this exactly), the data are transferred to a XY Chart and saved to a .dat file. After all that's happened (I hope I understood correctly the flow of data within a while loop), the code in the while loop again then 1000 samples read and are processed.

    But if the treatment was too long the DAQmx.Read runs too late and cycle to cycle, reading buffer behind the generation of data on the card PCI-6221.

    This concern is reasonable? And how can I get around this? Does anyone know a way to average and save the data?

    I mean, the first thing that I would consider increasing the number of samples per channel, but this also increases the duration of the data processing.

    The other question is on the calendar. If I understand correctly, the timestamp is generated once when the task starts (with the DAQmxStartTask) and the time difference betweeen the datapoints is then computed by 1 divded by the sampling frequency. However, if the treatment takes considerable time, how can I make sure, that this error does not accumulate?

    I'm sorry for the long plain text!

    You can find my attached example-vi(only to show roughly what I was thinking, I know there are two averaging-functions and the rate are not correctly set now).

    Best wishes and thank you in advance,

    MR. KSE

    PS: I should add: imagine the acquisition of data running on a really old and slow PC, for example a Pentium III.

    PPS: I do not know why, but I can't reach my vi...


  • Sample of high acquisition rate of data using data acquisition and continuous data backup. Also I would chunck data into a new file in each 32 M

    Hello:

    I'm very new to LabView, so I need help to find an idea that can help me to record data continuously in real time. I don't want the file is too big, so I would like a new file in Crete in each 32 mega bytes and clear the previous buffer. Now I have this code can save data of voltage in the TDMS files and the sampling frequency is 2 m Hz, so the amount of data very fast increase and my computer have more ram 2 G, then the computer hangs after 10 seconds, I'm starting to collect data. I need some advice you briliant people.

    Thank you very much I appreciate really.

    I'm a big supporter of the architecture of producer/consumer .  But this is the place that I recommend.  The DAQmx Configure Logging does all that for you!

    Note: You will want to use a table instead of a graph here.

  • The event viewer displays continuously errors with ID 7000 and 7009

    I use Acronis Disk Monitor, which shows the disk health 82% due to a bad block on disk. Observer events poster continually errors on ID 7000 and 7009, but I can't find a solution to these errors or what they mean exactly.

    11/14/2010 08:31 am, Catkin333 wrote:

    I use Acronis Disk Monitor, which shows 82% because of the bad health disk
    block on the disk. Event Viewer displays continuously errors on ID 7000 and
    7009, but I can't find a solution to these errors or that they
    mean exactly.

    If Acronis reports bad blocks on the disk, then you should replace the disk as soon as possible.  Blocks of bad sectors/bad is not repairable, and once they begin to appear that they tend to behave like a snowball rolling downhill, you will get several of them with increasing speed.  You may lose your data if you keep using this drive.

    Regarding the events 7009 & 7000, you will need to copy & paste the events here for give us to you more information.  Double-click on the event to see its properties, and then click the icon of the Clipboard (which looks like 2 pages of paper) to copy the event, you can then paste it in your next post.  These Service Controller errors may be caused by a multitude of different things.

    John

  • HP EliteBook 840 G3: Impossible to find acquisition of ICP data and Signal Processing controller, memory controller, PCI and SM...

    Hello

    I can't find acquisition of ICP data and Signal Processing controller, memory controller PCI bus controller SM for HP EliteBook 840 G3 running Microsoft Windows 7 Enterprise (64-bit).

    Any help is greatly appreciated!

    Hello:

    See if this driver works...

    FTP://ftp.HP.com/pub/SoftPaq/sp74001-74500/sp74152.exe

  • HP 15-r212nv (Energy Star): acquisition of ICP data and Signal Processing controller

    There is a device in the device manager that recognizes my phone and I can't find drivers! Acquisition of ICP data and Signal Processing controller.  I searched the web, but nothing.  My laptop is HP 15-r212nv model and I'm under 64-bit Windows 10.

    Thanks in advance

    Hello:

    See if this driver works...

    This package contains the driver which allows Intel platform dynamic and thermal firmware setting. Intel platform dynamic and thermal environment information system temperature and power use for the thermal protection of the system to work properly. This package is provided for the laptop models running a supported operating system.

    File name: sp71262.exe

  • I32 flipping index iteration continuous data acquisition

    I'm doing some continuous data streaming with Labview FPGA and periodically generate a trigger signal

    the timestamp after a number fixed iterations.

    The strategy I would try was to review the iteration index in the timed loop and whenever he tipped a fixed number I would generate a trigger of the FPGA.

    I tried to find out what happens when you get to 0x7FFFFFFF samples on the register of I32 and apparently

    the index does not roll... It just remains to count max once reached it.

    Is there a way to derail the index on a timed loop? Otherwise I wil just add another

    U32 variable and increment it each cycle and let it roll on.

    the iteration count does not roll.  Therefore at this historic moment, but just use a registry node, local or feedback shift instead.

  • Buttons on a pie chart and the display text

    It has been a long time since I created something like this in Captivate.  I used to use the alternative option to display text, and when they released the text would disappear.  How do I create pie shaped buttons (on a pie chart) allow to click the chart and display the text, then click on another piece and hide the text, but they would be allowed to click coins out of use.  I know this is really Basic for one :)

    Thank you

    Sabina

    You can use the smartshape. If you use a triangle, you can right-click and select freeform and then change the button in a wedge/pie. Fix advanced actions to display the text and hide all other texts.

    You can create the tarts in another program and use image buttons. I think it would be much easier.

  • acquisition of continuous sample with multiple channels

    Hello! Please tell me what I'm doing wrong here, I'm confused about how the acquisition of continuous sample with several channels (using NI USB-6215 boxes).

    Following code is python code, but I don't know who confuse you (and it's only a part of my code in order to not try, it won't work

    buffer_size = 2000 #samples to read
    sampling_rate_hz = 20000
    channels = "Dev1/ai0 ai1/Dev1" #this can be a string or a large number...

    CHK (nidaq. DAQmxCreateTask ("", ctypes.byref (taskHandle)))

    CHK (nidaq. DAQmxCreateAIVoltageChan (taskHandle, channels,"", DAQmx_Val_Cfg_Default, float64(-10.0), float64 (10.0), DAQmx_Val_Volts, None "))

    CHK (nidaq. DAQmxCfgSampClkTiming (taskHandle,"", float64 (sampling_rate_hz), DAQmx_Val_Rising, DAQmx_Val_ContSamps, uInt64 (buffer_size) "))

    CHK (nidaq. DAQmxRegisterEveryNSamplesEvent (taskHandle, DAQmx_Val_Acquired_Into_Buffer, uInt32 (1000), uInt32 (0), EveryNCallback_func, None))

    CHK (nidaq. DAQmxRegisterDoneEvent (taskHandle, uInt32 (0), DoneCallback_func, None))

    the callback function #and

    def py_EveryNCallback_func (self, taskHandle, event_type, nSamples):
    data = numpy.zeros ((self.channel_amount,buffer_size,), dtype = numpy.float64)
    read = int32()
    CHK (nidaq. DAQmxReadAnalogF64 (taskHandle, buffer_size, float64 (10.0), DAQmx_Val_GroupByScanNumber, data.ctypes.data, buffer_size * number_of_channels, ctypes.byref (read), None))

    With only one channel, everything's fine, and tension diagram looks like this:

    buffer_size = 2000, sampling_rate_hz = 20000

    But if I use two channels, voltage diagram looks like this

    buffer_size = 2000, sampling_rate_hz = 20000

    It looks like the sampling rate is higher or there are fewer values?, but with two channels with the results table is 2000 * 2 long and with a single result is 2000 * 1 long is not smaller

    most of the settings important (?) in my code:

    DAQmxCfgSampClkTiming "float64 rate": 20000 (sampling_rate_hz)
    'UInt64 sampsPerChanToAcquire' DAQmxCfgSampClkTiming: 2000 (buffer_size)
    DAQmxRegisterEveryNSamplesEvent "uInt32 nSamples": 1000 (?)
    'Int32 numSampsPerChan' DAQmxReadAnalogF64: 2000 (buffer_size)
    DAQmxReadAnalogF64 "float64 [] readArray": [[buffer_size] * number_of_channels]
    'UInt32 arraySizeInSamps' DAQmxReadAnalogF64: buffer_size * number_of_channels

    as you can see nSamples is a big question mark, but the problem still exists if I set variable buffer_size y (2000)

    Hi Dazzler,

    It is not a multi-channel example that ships with the driver, but after a quick look at the code that you use in your third post, everything seems to be configured correctly. The only thing I was thing I got a question about your plots. Looks like you draw each time the same number of points. If you draw just the table of data directly from the playback feature, you need to draw (buffer_size * number_of_channels) number of channels since the data returned is as an interlaced array. You can also choose to deinterleave samples. More information about this lie in the NOR-DAQmx C reference help, which is installed with the NOR-DAQmx driver.

    Kind regards

    Kent

    Technical sales engineer

  • Continuous data collection?

    Hi all

    Here, I have power supply programmable I can sort the output volatge and common of it and used to calucalte other parameters such as loss, power... etc and I have two pressure sensors that I can collect data continuously pressure.  In my labview program I can collect and record data continuously pressure but I could not able to collect the data of the power supply (volatge and running more than 8 samples.)  How can I have collected data for current volatge and countinously as pressures. Here, I have attached the sample data that I collected it.  It's the volatge, courses and other paramentrs are only collected for 8 samples.

    Thank you inadvance.

    You are collecting voltage and direct current. The number of samples is limited by how fast your loop iterates and part of the limitation is that you configure the serial port each time. Don't, don't. You also have the fundamental limitation of a serial connection. Run a loop with the acquisition of series just so see what might be your maximum rate.

    p.s. to clean your diagram. It is very difficult to read.

  • How say continuous data 2D?

    Hi, I have problem with my block diagram. I plan to display data (from temperature probe NICrNi) of several channels and memorizing the data in csv and tiara permanently file. Now the problem is how to say continuous data 2D (double data types)? because the result of the measurement are very unstable... I try using the function means PtByPt VI but she need to double entry of data types... Are so there is another way to describe the data? for example I need an average of data for every 20 samples.


  • combining continuous dates

    I try to combine the dates a day continuously and display the output as mentioned below. Here is the data model and expected results. WITH t AS (select to_date (' 01/1/2005 ',' mm/dd/yyyy') as start_date, to_date (January 31, 2005 ', ' dd/mm/yyyy') as end_date, 1234 as val from dual union all select to_date (' 02/1/2005 ',' mm/dd/yyyy') as start_date, to_date (February 27, 2005 ', ' dd/mm/yyyy') as end_date, 1234 as val from dual union all select to_date (1 March 2005 ' ' mm/dd/yyyy') as start_date) , to_date (March 31, 2005 ', ' dd/mm/yyyy') as end_date, 1234 as val from dual union all select to_date (' 1/05/2005 ',' mm/dd/yyyy') as start_date, to_date (May 31, 2005 ', ' dd/mm/yyyy') end_date, 1234 like val double union all select to_date (' 07/1/2005 ',' mm/dd/yyyy') start_date to_date as (July 31, 2005 ') (, ' dd/mm/yyyy') as end_date, 1234 as val from dual union all select to_date (' 08/1/2005 ',' mm/dd/yyyy') as start_date, to_date (August 31, 2005 ', ' dd/mm/yyyy') as end_date, 1234 like double val); Expected results: val START_DATE end_date 123 123 05/01/2005 123 01/01/2005 03/31/2005 07/01/2005 08/31/2005 thanks for your help.

    Hello

    It is impolite to post the same question more than once.  Mark this thread as "Response" and you keep your other thread:

    Re: Combining continuous dates

    who already has an answer.

  • PCI-6110 continuous data

    I am trying to take data continuously from 4 channels maximum 5Msamples per second and writes at the same time as the data on the drive using the TDMS writer.   I use daqmx LabVIEW tools to read and write data.  I get failry good flow, but it is not completely continuous.

    1 is it possible in Labview?

    2. is it possible with NIScope?  NIScope is at all related to labview?

    Thank you

    Ben.

    I'm not an expert DAQmx, but it is a fairly common use case covered by the API. You can configure DAQmx so that when the data are collected, it is written as efficiently on the disk. You can do it for a continuous data stream. You can find an example of this here (and more examples using the LabVIEW example Locator: Help-> find examples...):

    \examples\DAQmx\Analog Input\Voltage - Input.vi continues

    This VI uses the data at the level, so you will want to choose not adjusted I16 data for the type of output to the maximum speed.

    Alternatively, you can use a producer/consumer architecture, acquire data in a loop and it continuously to the PDM in another. It is essentially this as the example above, but much easier and more quickly, because it involves fewer copies of data.

    Good luck!

Maybe you are looking for

  • upgrade windows 7 to Windows 10 problems

    I'd updated from windows 7 to windows 10 very well. Things were working very well... Then, my hard drive has decided to withdraw from the OAS and crashed.  Now I can not get windows to level because it won't take my product key for windows 10. Also c

  • Classic BlackBerry trying to find a Blackberry QWERTY without wifi

    I'm trying to finf a blackberry with a QWERTY keyboard phone ISN'T just a wi - fi access. I don't really know much about cell phones, so if anyone out there has any suggestions as to what models I should, please speak in terms laymans. I have a child

  • Policy playBook

    I create an HTML5 WebWorks for PlayBook application and I fight problems with orientation changes. I see now why so many applications PlayBook, such as Facebook, simply lock direction or another. I know that to get a good solution to this problem I m

  • Model to Multi Page PDF Adobe project?

    Looks like something easy to do, but I can't understand this.I can share the page of each project individually in PDF format for Acrobat save each page to DC cloud and then cloud.acrobat.com combining files in PDF multi page, but it's too long a proc

  • my computer was wiped out if I download Adobe cc What do I have to pay again

    my computer was wiped out if I download Adobe cc What do I have to pay again