LabVIEW storage function

Hello!

I'm looking for advice on how to save a variable from time to time!

For example. I have a value: current value of sensor 1. From the moment where labview program begins to run, my program must store the value of the sensor curent every min

say 1 Minute: 5.46 A
6.40 minute 2: has

Then the program will average values, as for a long time the average value is not more than 7, programming will continue in average and comparing. for example (Minute 2 + 3) / 2...
(Min 3 + 4) / 2.

Once it is more than 7, an LED on the front will warn the user.

Thanks in advance!

1. you must move the Terminal for your gauge to be inside the loop.  This way you get the last value each iteration of the loop.

2. you should son of the indicator value in the registry to offset so you the way with the next value.

3. you should have the value in the shift register and the current value of her COLLEAGUE enter the Add function.

4. no need to the structure of the case.  Just wire directly to the Boolean indicator.

5. be sure to make the loop stops when your average is higher than 7.

Tags: NI Software

Similar Questions

  • TestStand deployment error Code 1055 when using LabVIEW storage VIs

    After a few days of playing with TestStand deployment. I have final stalked the VI which was the origin of this error.

    He was using the LabVIEW storage screw to save data in a TDM file.

    My work around at the moment is to use a Wrapper VI and call this VI by reference.

    In this way the deployment TestStand cannot detect the Sie of storage.

    I'm using LabVIEW 8.6.1 and TestStand 4.1.1 does anyone know if this issue was address TestStand 4.2?

    It seems that the upgrade can be worth it.

    Simon,

    After investigating the matter further, I found that we had already encountered this bug. It has been fixed in 4.2 TestStand and LabVIEW 2009 I tested your files with 4.2 TestStand, LabVIEW 2009 and everything built successfully without any hiccups on the way.

  • can not find size_t during import a dll and calling a labview crash function

    Hello, experts

    I need to use FingerLakeInstrument DLL (see attachment) within Labview for talking to a CCD camera. It is built from microsoft visual studio C++

    I unzip FLI dll in my D:\proj\...\linfli-32 and import the dll from there. created a c:\FLIDBG.txt FLI dll must write the debug message on it if are called the FLISetDebugLevel() or others.

    During the import of the dll, the first thing I got is (IE size_t) could not be found. I installed the free version of microsoft visual studio C++

    but can not find 'typedef unsigned int size_t;

    in the end, I just added

    typedef unsigned int size_t;

    in the libfli.h. Having done this, I am able to import all the functions in Labview and have a library of user called libfli.

    However, as soon as I start to call a simple function in a test.vi, as FLIGetLibVersion (char * worm, size_t len), which consists of nothing else the library, the labview crash.

    I created a simple C test.exe who calls a lot of functions with no problems

    any suggstion?

    concerning

    Xiaofeng

    You don't have not shown us how the LabVIEW code looks like. The size_t setting refers to the length of the buffer, in that you spend. In this case you pass a string. So, presumably, you created a buffer zone in LabVIEW to a string of sufficient size, and set the parameter "len" to the length of this string. You also have to make sure you use the correct calling convention?

  • Failure of the assertion when using Labview ActiveX functions to communicate with the dll

    Hello

    I'm looking for suggestions and tips about the following error that I get when I use .NET Labview functions to communicate with the dll written in .NET environment. I just need a starting pointer on where can I search for the origin of this error. I am a newbie in. NET.

    I am also attaching the .vi I use, if this is of any help. All suggestions are welcome!  Thank you.

    The origin of the error found after studying the examples provided by the OR .NET. The callback function had to be moved out of the loop, which solved the problem.

  • How to open the labview with function of Labview program to stop smoking inside?

    Hi any idea how to open the labview with the Labview function program to stop smoking inside?

    I forgot to add and define the condition of the type for this program.

    If the program is an application, she closed immediately.

    If it is still the work of labview, it will go directly to editing without closing the program.

    I so need to retrieve, open it and make some changes.

    Clement

    Place the VI in a project and open it from there, then it should not autorun. App.kind application property allows you to decide whether to close or not.

    /Y

  • Lost storage functions HA

    Hello!

    I want to know if I missed something in the HA feature.

    I tested

    1. 1 host HA trick works very well (machine starts on another host)
    2. Remove all NIC 1 host HA works very well
    3. Remove all connectors (on the host) HA SAS don't work

    When 3 trials (removal of SAS) all machines that host still respond to ping and VC present them as functional console, do not work. For the HA to start, I turn to the host.

    Is there something to see on it?

    I have 2 host connected with 1 storage
    2 each hosts, connected to 1 storage SAS
    HA-host followed activate
    The host isolation response: stop
    ESXI 4.1 433742
    License, Essentials more

    This is an expected behavior - HA has been * no * intended to manage the loss of storage conditions, just because and certain conditions of network partition.  Its not supposed to detect this failure condition.

    Your next question is: ' well, it's ridiculous, how to recognize the loss of storage?

    Answer: upgrade to 5.x - it uses pulses of data store to manage this scenario.

  • Question of Gibbs phenomenon in square wave of labview builtin function generator

    I have a server and a client, I send commands on my client's server to generate different signals. but the display of my square wave and a waveform sawtooth in the client a Spades and lots of harmonics to it. When compared with the display of the same waveform in my server, the square wave and sawtooth wave appears. Photo will show a comparison of the two.

    Please help, I did some research and I think it could be the gibbs phenomenon happening and I'm not sure how to resolve this.


  • Close the labview function in the discussion of the nugget

    I was looking around some of the Darren chips that go the way of the return over the years, and I wanted to ask a question about one.

    As the nuggets are so old, I thought that a new thread would be the best way to do it.

    The nugget is about adding that some relatives of code to make sure that all of the VI stop correctly.

    http://forums.NI.com/T5/LabVIEW/Darren-s-weekly-nugget-06-22-2009/TD-p/931158

    I get the ideas behind it, and as it happens I'm already doing the same thing myself, but without using the LabView "Quit" function.

    I make sure that I have closed all my sub VI before finishing with the 'closed group' invoke node.

    I can see the value in following the narrow Panel with labview Quit, but more thought, I became more ill at ease.

    My concern was that if there were two or more completely separate running on the same computer at the same time of labview applications

    the function exit Labview stopped everyone, not just the one that the user wants to stop.

    If close labview indeed close all running applications, so it is extremely dangerous to use it!

    I have no way to test it, so I was wondering if anyone has had this experience, or can give an answer.

    Bob wrote:

    I can see the value in following the narrow Panel with labview Quit, but more thought, I became more ill at ease.

    My concern was that if there were two or more completely separate running on the same computer at the same time of labview applications

    the function exit Labview stopped everyone, not just the one that the user wants to stop.

    Quit LabVIEW ends the current instance of LabVIEW.

    If it is called from an executable LabVIEW only that one instance of the executable is closed. (Yes, you CAN open more than 1 instance of an exe if you know how) other instances of the same exe or any what other exe will not conduct.

  • Dequeue through LabVIEW API extremely slow?

    Hi I am storage step results in a queue. For this I use the movie Post result enter redial list file.

    Dequeue I use Labview API function, which waits for the next result and removes it for further processing.

    If my LabVIEW application retrieves the results, Teststand gets extremely slow. If I stop my application, it is extremely fast.

    It seems that there is a lock on the queue.

    How can I avoid this?

    You pass 'true' for the processMsgs argument to Dequeue? If this is not the case, try to do. Also, if you do this a step in a sequence from a call of code module in a labview VI, pass the step sequence context in to the sequence context parameter.

    -Doug

  • 1 TB PCI-e flash storage

    Hello

    There is an option on the Mac mini in Apple store for 1 TB pci - e flash storage function - what is? -What I mean is whence this appointment? -In the case of the right? -Not an external add on? -Clarity is necessary please, thank you.

    Apple offers only a 1 SSD TB PCle-based as an option in the high range for $800 Mac Mini more

    http://www.Apple.com/shop/buy-Mac/Mac-mini?product=MGEQ2LL/A&step=config

  • Where the range of network flow in LabVIEW 2010?

    I know that this palette "exists" (since I can with the right button on a thread of endpoint and network flow Palette appear in the menu), but (so far), I have not found on the pallets of LabVIEW 2010 function.  Where is it hidden?

    BS

    Under the "Data Communication" on my machine.

  • How to import an array of strings of labview in DIAdem spreadsheet/table

    How to set up a model of tiara so when you use labview express of tiara, the values are imported into a table.

    I have values such as gain, cut-off frequency and success/failure that exist in tables generated by the collection of information by a system of 7 EEG electrodes.  I want to create a table/worksheet in tiara that imports the data by using the DIAdem of LabVIEW express function, in a table or spread sheet?

    Notice to lovers?

    Hi eximo.

    The express block DIAdem report makes it easy fill the text boxes and the 2D graphics in DIAdem of variables (son) in LabVIEW.  Unfortunately no paintings 2D or 3D graphics are implemented in the express block DIAdem Rerpot.  So, you have 2 options.

    Option 1: If you do not have too many channels that you want to display, you can agree that several text boxes in the form of a 2D array and the use of the DIAdem report express block as it was planned (sending data to it by sons of LabVIEW).

    Option 2: at some point as you continue to add items to your report, you'll probably end up here.  The express block DIAdem report was designed to connect wires of LabVIEW with simple reports of DIAdem.  But there is a hook that you can use to run a VBScript script rather than load a REPORT model in DIAdem report express block *. File TDR.  With a DIAdem of VBScript, you can accomplish anything in tiara.  In addition to wiring up a way to VBScript instead of a path to the REPORT model, you will also need to send all the data you want to report on a TDMS file and have DIAdem read data from this file, instead of receive data directly from the LabVIEW of wire to the terminal of express block entry.  It's a little more complicated, but it will do absolutely everything you want in DIAdem and start this report of LabVIEW.

    I enclose an example of Option 2, but I'd be willing to help you adapt to your data and reporting needs if you are going to post or email ([email protected]) your data set and a rough *. File TDR that you want in the REPORT.  It's pretty slow here at the office at Christmas, so I have time...

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • LabVIEW MoveBlock and obtaining of a string from a DLL (assigned by the DLL)

    Hello classmates addicted LabVIEW,.

    I have a small question about the LabVIEW MoveBlock function.

    For a project I need to use an external DLL that must be called by my LabVIEW program.

    Essentially, the DLL returns a void * to a buffer and the size of the buffer (size_t). This stamp is just the string being returned by the DLL data. The DLL allocates these data and later in the program that I need to pass this pointer to a second function of the DLL to explicitly inform the DLL that I made using the data, so it can release these data.

    Here is the documentation for the function I want to use:

    Since you say the works of XNode, then you're dealing with a pointer and not a handle (pointer to a pointer), so you should be to pass the address of MoveBlock by value and not as a pointer to a value.

  • [HELP] Call library function node...

    I have a DLL that has a function as follows:

    int GetMessageNameNumber (char * messageName [], const int MessageNumber);

     

    The function is used thus:

    char * MessageName = NULL;
    int MessageNumber = 0;
    ...

    error = HL1553API_GetMessageNumberName (& MessageName, MessageNumber);

    MessageName will contain the name of the message as a string.

    I saw the Devils own job trying to wrap this in a Labview module.  I have a knot of library function to call the above function, but I'm not sure what to set the parameter "MessageName" also!  I tried array of integers 8 signed bits, adapted to the Type of pointer to data in the table and then passed in an array of strings.  Whatever I do translates into LabView crash.  I know HL1553API_GetMessageNumberName works, because if I call it directly in TestStand it works fine.  I need LabView well!

    Any ideas?

    C a pointer to a string or an array of strings are completely ambiguous.

    char * something = char * something [].

    You can't tell the two apart from the syntax, but only from the documentation or an example of how the function is called. A C compiler treats the equal in terms of access (but a C++ compiler will do a syntactic differentiation when code syntax checking, with the possible result compile warnings when you are prompted to use a sufficiently high level of warning).

    The example shows that it is not a string array gets allocated by the caller and passed to the function, but a string pointer that is passed by reference. So the function will allocate a pointer and return it (a very atypical C practice at least for strings). This automatically raises the question when and how this pointer will be released? The documentation for this function should document the call from Manager memory allows to allocate this pointer and also point to the function to call to release. Ideally the library (DLL) provides an exported function for this purpose.

    Assume that everything I spoke so far is clear and available you need to cheat a bit LabVIEW. You need to configer a pointer size whole that is passed by reference. Now this whole in the diagram IS actually your channel. If you only need to pass this pointer to other library functions call that you're already doing. Otherwise if you need access to the contents of this string from the diagram LabVIEW, you will need to copy the information from this string to a real string of LabVIEW pointer.

    One way to do that is to use the export of the MoveBlock() C function that LabVIEW exports itself. I have explained this several times here on this forum and the MoveBlock research will no doubt find out these positions.

    Another slightly better way is to use the LStrPrintf() function which also exports of LabVIEW. To do this, you configure a library function call as follows:

    Library name: LabVIEW

    Function name: LStrPrintf

    Calling Convention: C

    Thread: both are possible, but the function is thread safe, so just use environment

    return parameter: int32 (there is a possible LabVIEW Manager error code)

    1st parameter: handle string of LabVIEW, passed by value

    parameter 2: C string pointer

    3rd parameter: integer pointer size, passed by valu

    Wire an empty string in the first parameter constant.

    Wire a constant containing the text '%s' without the quotes on the 2nd.

    The pointer to your thread on the 3rd string

    The function will return 0 as a return value and the content of the string on the side of the exit of the 1st parameter or a zero value indicating that a mistake to return back.

  • TDMS of MDF time stamp conversion error / storage date time change

    I fought it for a while, I thought I'd throw it out there...

    Let's say I have a file TDMS which has a channel of labview time stamp and thermocouple 2.

    I load in DIADEM, I get this:

    Perfect!  But now let's say I want to save the PDM as a MDF file so I can see him in Vector sofa.  I right click and save as MDF, perfect.  I started couch and get this:

    The year 2121, yes I take data on a star boat!  It seems to be taking the stamp of date/time storage TDMS as starting point and adding the TC_Timestamp channel.

    If I change the channel of TC_Timestamp to 1, 2, 3, 4, 5, 6, 7 etc... and save as MDF, I get this:

    Very close, 2012!   But what I really want is what to show of the time, it was recorded what would be the 10/09/2012.

    The problem is whenever I do like recording, date storage time is updated right now, then the MDF plugin seems to use it as a starting point.

    is it possible to stop this update in TIARA?

    Thank you

    Ben

    Hi Ben,

    You got it right that the MDF use written the time of storage to start MDF that is updated by DIAdem when writing time. We are working on this and will return to you, if there is no progress.

    To work around the problem, you can try convert TDMS MDF in LabVIEW storage vis.

    Something like the following, you can write your start time of measurement to the MDF file.

    Hope this helps,

    Mavis

Maybe you are looking for