Acquisition of data in time real LabView

I'm trying to get a better idea of what is happening when I'm DAQ using LabView RT compared to using the DAQ assistant (which cannot be used in LVRT).  In the DAQ assistant I could just say to acquire 300 samples at a rate of 3000 s/s.  The buffer waiting for 300 samples to fill, I could then take these samples and average in statistics to get a nice clean data every 100 ms.  I can't find out how to do something similar in LVRT.

I am currently using a loop of data collection separate from my time critical loop operating at 100 ms.  I didn't tell him how many samples to catch so I guess he catches just real-time data point every 100 ms.  A number of data (pressure, temperature, flow, etc.) is written in a cluster that is sent to a network shared variable (which is sent to the loop of the host).  If I run the loop of the host to 1000 ms (where I save the data in a spreadsheet) just grabbing the 10th point data that the shared variable of the network trying to send to the host?  Is - this there anyway use LVRT in a similar way to the DAQ assistant, so that I can get the data more smooth.

Oops - do not know what has happened to the code snippet (perhaps it was too big?) that I posted.  I will attach the VI himself here...

BS

Tags: NI Software

Similar Questions

  • using the module time real Labview in RTAI

    Hi all

    I want to use the module time Labview in RTAI real for real time due to its open source applications and very good performance. is it possible to make this work?

    If this is the case, can anyone introduce a single study of case or something similar to this?

    Cecile says:

    Hi all

    I want to use the module time Labview in RTAI real for real time due to its open source applications and very good performance. is it possible to make this work?

    If this is the case, can anyone introduce a single study of case or something similar to this?

    I don't think it's possible for anyone outside of OR. LabVIEW Real-time supports this time only Windows as host and as a target only material of National Instruments with specifically targeted OSes or the Pharlap ETS system on x 86 systems with hardware specific enough. Using RTAI as target OS for LabVIEW Real-time applications requires first a few changes on the time plugin real LabVIEW to support this new platform.

    None of the files in time real LabVIEW also created for either platforms OR running VxWorks or OS Pharlap, Pharlap ETS system woud be able to be deployed to a system RTAI, because they are not compatible. In the first place, you'd have to port the bunch of shared libraries that make up the time target real system running LabVIEW on one of these goals to your RTAI system which is in fact a whole new platform of LabVIEW you can create with a little effort from the LabVIEW source code. It's not really impossible for OR as most of the code LabVIEW is written platform completely independently, but it would be a combination of the parameters compilation for course LabVIEW Real-time, with the settings to produce time targets real LabVIEW VxWorks with some additional settings of Linux. Yet, it would be by far not trivial and some parts are actually hardware specific drivers that must be worn too and limit the possibilities of what RTAI material could serve even further. In short not something that would make any commercial sense NC because they invest a lot of resources with no opportunity to sell additional hardware.

    And hell freezes over up front release of NI LabVIEW source code in any form which gives access not - OR used to it!

  • Average displacement Subvi does not refresh the data in time real host VI

    Hello!

    I time real host VI that has evaluate the NI 9215 cRIO block data 9073. He takes analog data and calculates the phase shift. It works well with the connected equipment and displays the results. I need to get the moving average value of phase shift, so I add moving average Subvi, where main VI entries - new value (phase shift measured) and ms and output - average value of travel time. When I run real time host VI it gives me a single data and stop get new data from Subvi. It refreshes not even values measured in real time. So the problem somewhere in the accommodation, with sub - VI. How it can be solved? How can I get real host VI with the moving average value of Subvi update running time?

    Thank you.

    Your problem is that you have a loop that runs until you press the Stop button inside your Subvi.  If you try to use a Global Variable that is functional, you have a few things wrong.

    1. the loop should run only once.  A TRUE to the conditional stay Terminal wire.

    2. the shift register cannot be initialized.  That is how he can keep the old elements in a story.  Use a first call? with a case structure so that you only initialize the table of history inside the loop on the first time the VI is called.

    But if you really want to make your life easier, just use the PtByPt.vi mean.  NOR did all the work for you.

  • I can't MJD (date and time) in LabVIEW 2012 SP1?

    I need some time my data of stamps before sending it to the file.  I did this with the standard calendar date and time but MJD is that we prefer to use.  How can I get a timestamp MJD in LabVIEW 2012 SP1?

    Check the JD MJD conversion formula
    http://www.IERS.org/nn_10828/IERS/en/service/glossary/MJD.html

    The modified Julian day (MJD) is defined as MJD = JD - 2400000.5, where JD is the Julian Day

  • How to create a graph in time real LabVIEW 6.1?

    I am new to programming in LabVIEW (6.1). I wonder to create a LabVIEW interface that can operate the multimeter Keithley 6487, allowing us to apply a voltage and nth measures. With the measures that we have create a chart (V curve i) I find the XY graph, but it only allows to send all the measures at the same time (indexing) to generate the graph and not whenever we take the action so the graph build inn in real-time. I need to know how to create a chart or change the XY graph, so I can generate the i - V curve with each step we take in real time. Whenever we take the action and not once the program ends. Thanks in advance.

    You must place the graphic inside the loop and the use of shift registers to accumulate the X and Y in the form of tables. I do not have 6.1 right now in the process of execution, but it would basically look like this:

    Note that the above is for demonstration (the code is in fact a greedy loop). You can consider putting Scripture on file inside the loop. In this way, if the program crashes, you will not lose your data.

    WARNING: Using table build as indicated above will result in continued growth of memory. If your program is running for a long time, this can become a problem. One thing you may need to watch must have a limit on the size of the array. I know there is an example of "Table of XY" comes with LabVIEW, and I'm sure that this is with 6.1. You should take a look at this example, which implements a fixed buffer for the data in the chart size. You should be able to use the VI "graphic buffer XY"directly in your code. "

  • Problem installing module time real LabVIEW 2011 SP1

    Hi, I'm new here. I have a problem when I tried to install LabVIEW Real - Time 2011 SP1. Whenever the part of initialization, this message appears: "NEITHER Labview 2011 SP1 32-nit must be installed before installing the OR labview 2011 SP1 real-time Module.» I'm sure that I've already installed Labview 2011 32-bit SP1 and it works well. I use a Windows7 OS and also have Labview 2010 and an older version of Labview 2010 RT module installed. I didn't remove the old version of the software, and I don't know if it is related to this problem.

    Can anyone help? Thank you in advance!

    MrSun87 wrote:

    ... I'm sure that I've already installed Labview 2011 32-bit SP1 and it works well...

    Can post you a screenshot of MAX where are installed Versions of LabVIEW?

    Christian

  • How to convert number in date and time in labview

    Hi all

    I have a hexadecimal string and converted into a number. Now this number to display in the format of timestamp. Uses the format of the time Unix.

    By using this link, I can convert this number to timestamp.  http://www.UnixTimeStamp.com/index.php

    But how it should be done in LabVIEW? I know it may be simple, but please help.

    I enclose my VI for referance.

    Thank you

    Manisha

    Hi Man_Can,

    You can add the origin of UNIX timestamp to your number:

  • Behavior in time real LabVIEW incompatible with nodes in control property

    LabVIEW 2014 no service don't pack

    cRIO 9068 (Linux) with dual CPU

    I've written a vi which interacts with the CVT to pass values between the CVT and a bunch of controls on the Panel before which are accessed by reference. My project supports a front panel, if it is connected, then you can use this Panel to interact with the system. All the controls are located in a tabbed pane on the main vi running on the RT module, all the features are contained in a subvi, which accepts an array of references to the command input.

    It works perfectly in developer mode. Then when I deployed the controls were completely isolated: nothing has been loaded and initialized from the CVT, changing values of control had no impact on the system.

    For debugging, I provided a string array of all labels of control so I could see what controls is taken up by the Group of experts. So, I thought that the first troubleshooting step would be to see if the autonomous execution of RT filled one of them. After the creation and execution of this, everything lights up and works perfectly.

    It seems that to allow some control connected to that communication of the façade with a sub - vi RT VI must appear on the front panel. If this is not the case, the sub - vi will not interact with controls at all.

    In my opinion, it's a bug. Comments or details, anyone?

    Thanks for all your replies. For the record, while the 9068 has no Panel incorporated, it supports remote facades. I use this function successfully. The core of the code runs without a head, I didn't want the hassle of establishing a completely independent group on an external PC.

    My initial analysis and statement of the problem was wrong. I thought I was running in RT with group work, but actually worked by the developer. Even with controls and indicators highlighted the sub - vi the Panel was still Catatonic.

    Then I re-read the documentation OR on the facades. They clearly affirm that if application of the RT IS CONNECTED to a front panel nodes of property etc. will work. If this isn't the case, the program will still run but indicate errors for operations of property node. General error handling is not made for information only Panel stuff, so I have not seen the error.

    It turns out that I've been collecting all the controls at the beginning. Developing mode of the front panel is still there, so it worked. However, when the RT target boots and starts, it is impossible to have a remote façade connected, so my set of controls was empty.

    Movement of the control the value code initialization (just to get an array of references to all the controls in the component of interest) in the area of code that is run after the mouse click that activates the Panel did the trick. If there is no remote Panel then person can click on it, but if there is a front panel then all the controls are there.

    Thanks again for ruminating with me.

    Bill

  • How to understand the context of the sequence of time real labview

    Does anyone know how Labview RT to understand the context of teststand sequence? My sequence context is defined as "TS. SequenceContext' like the screenshot in attachment.

    If we point a VI for that sequence context then who use VI of teststand? and must add this VI to the Explorer of Projectr of Labview RT system to build the project?

    I use 2009 Labview and teststand 4.2.1.

    Thank you very much

    LabVIEW RT does not support the ActiveX required for TestStand.

  • Configuration required to use deskot as a target time real labview



  • Time real 8.6 and PDM

    Hi all

    Using a CRIO-9012 with time real Labview 8.6 and labview 8.6 and now that TDMS is supported and I am wanting to use it on my cRIO. Be a problem if... in addition to open or close tdms files still do not work on my CRIO even if time real 8.6 is installed. Attached is a simple vi which works on my PC but not on my cRIO, tried still more simple screw with on the CRIO tdms and it does not work. When I try to run the program on the cRIO I just lose the connection to the controller and have it reboot. It is likely to what I may have missed?

    Thank you

    Jevon

    I came across a question like this and found that the path of the file to open it TDMS must have a tiny 'c' as in "c:\". "instead of"C:\ ". »

    You will always get an error on the end, but the IO files works.

    Kurt

  • Time real ADC/DAC for SMPS by using Labview and USB

    Hi all

    I asked the Sales Department of this same question, so here's a two-pronged approach:

    I am reserching a control algorithm for power switching, and so far, its performance simulations seem to be good.  Now, the goal is to implement the circuit from the experimental data.

    I've seen several NI USB DAQ boxes that seem to have the performance, I'm looking for (for example, the box USB-6211 a sampling rate and resolution I need).

    The control algorithm uses the following mathematical functions: add/sub/mult/div/exhibitor and derivative/integral.

    My question is this: is "strong enough" Labview take four-channel data 250Ksps, crunches the numbers in an equation and spits out the answer to an analogue on the channel, while time REAL?  I'm looking for a rate of analog output of ~ 100 kHz.

    Thank you for any suggestions you have!

    -Rick

    Hey,.

    So if you were trying just to perform an input or output, then the box USB-6211 would certainly be able to treat it as the machine clock could manage the inputs/outputs, no software. However, what you are wanting to do, basically a feedback system, he will have to avoid (at least to a USB device) because you need to be able to specify Active which is the output. So, for this reason alone and the fact that you want out of 100 kHz, this device and the USB devices in general will be not an option any what software you use, LabVIEW or otherwise. On another note, you want to make sounds more like live update, not in real time, which is more on the jitter. Bottom line, for these kinds of requirements, you might need to move to an FPGA card, something like the NI PCIe-7841R would work. It's more expensive, but for your needs, FPGA will be the only option and it comes down to the latency of the bus, but also the response time of software. With FPGA, as shown in the first scheme of the following document, you basically close your software through hardware loop.

    Basics of FPGA

    http://www.NI.com/white-paper/6983/en

    -Ryan S.

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • Use two assistants for the acquisition of data at the same time

    Hello

    I want to read multiple data channels of analog inputs on my DAQ hardware. However, when I try to create two separate data acquisition assistants for each entry, it gives an error saying "is reserved for the specified resource. The operation could not be performed as indicated "." Can't use two assistants for the acquisition of data at the same time?

    I have to add different channels in the same assistant DAQ? I tried, but I couldn't separate the data in different graphs.

    How does this work?

    Kind regards

    Allard

    You can't have multiple tasks of the same type (in this case inputs analog) on the same device.  Just so having 1 DAQ Assistant read all your channels and separate your channels for individual transformation.

  • Generation and acquisition at the same time, acquisition of data USB-6356

    Hello

    I have a VI how is able to read entries with a USB DAQ-6356 and I use a generator of signals 'Agilent 33522 A '. I want to generate and acquire with the acquisition of data.

    In fact it works but not well, the frequency is not very stable and does not stop the 2nd loop with 1 (2nd is generating, 1 is Acquire).

    Thanks in advance

    P.S my VI isn't a state machine true because I need to fight against it at the moment.

    OK, so you're at 3 ms/s in writing and reading at 1.25Ms / sec and you wonder why he has a little difference in the frequency set?  Ideally, you want to read and write to share a sample clock but by selecting at least the same frequency clock (or one that is one multiple of the other) would go a long way to fixing this source of your error.

    The second source of error: you generate a contineous waveform.  unless you select 'whole number of cycles' there is a discontinuity when the end is reached at an arbitrary phase and the phase is reset to zero at the beginning of the wave.  DAQ assistant writing can "Use Waveform Timing" to adapt its sync settings to the dt waveform and the number of samples.

Maybe you are looking for

  • Incorrect display of web pages

    This is a problem not intentionally that comes and goes. I think it might be related to updates that are hunted. On my boxes linux (Xubuntu 12.04 with all the updates and patches), Firefox suddenly starts displaying all the pages as text only. I rebo

  • Bad request your browser has requested that this server could not understand

    Bad request Your browser has requested that this server could not understand. I get this message every time I try to download a picture anywhere in the internet. I deleted cookies, I spilled my account of firefox, I have cleared my cache, I removed t

  • DeskJet F4580: Compatible printer for Windows 10?

    After you have installed Windows 10 on my PC I noticed that my printer driver is not compatible, so I did some looking on the Microsoft Compatibility Center and they said that it is compatible for Windows 10. I'm going to support HP driver and search

  • How can I communicate with a multimeter clamp Extech 382065 using a serial connection?

    The unit works fine with the software provided.  My VI has worked with other materials in the series and I also tried the example series/VISA VIs in LabVIEW (v6.0.2 and v8.2).  I suspect that the code to request a reading will not (the manual says us

  • KB972270 error code 800B0100__

    I just noticed that it has been installed and fails every day since January 13, 2010, I have windows vista I am not that clued up and wonder what to do now?  My computer is slow, slow internet, stop probs, freezing, need your help thank you