LabView, stored in array dynamic variables (ENG - FR)

(French version below)

Hello

I did a little .vi to use USB DAQ in analog acquisition of the sine.

I want to store each step of the test in a table. But when I start a new measure, it erases the old one.

Sorry for my bad English

---------------------

Hello

I'm currently measure the phase shifts with the LabView DAQ. I'd like to save my differentses test phases in a table, but for each new test values are overwritten.

Thank you pour your advice


Tags: NI Software

Similar Questions

  • Dynamic variable

    I want to add pages to an accordion component. The following code does not work:

    some_number_between_1_and_10 returned by the call to the database

    var numpages:uint = some_number_between_1_and_10;
    var cnum:String;

    for (var i: uint = 0; i < numpages; i ++) {}

    VALUE = "c" + i;
    This [value]: canvas = new Canvas();
    This [value] .label = "Page" + (i + 1);
    myAccordion.addChild (this [value]);

    }

    The first use of this [value] will return the error: label must be a simple identifier.

    So how to set and use a dynamic variable?

    Doug

    You can create 'dynamic' variables in the way that you are trying to do. Variables dynamic are also bad programming style that's why AS3 makes it more difficult to do. In your case, it is best to use a table:

    pages of the var: Array = new Array();

    for (var i: uint = 0; i
    {
    var page: canvas = new Canvas();
    page.label = "Page" + (i + 1);
    myAccordion.addChild (page);
    pages.push (page);
    }

    Then you can see each page as page [0], [1] pages, etc.

  • Error opening a VI (LabVIEW: unable to load dynamic library due to lack of external symbols or dependencies, or a format file not valid.) The file could not be loaded)

    Hi all!

    Yesterday, I worked all day in a VI and today, unfortunately, I'm frustrated when I tried to open it. Received the following error message:

    LABVIEW: Unable to load dynamic library due to lack of external symbols or dependencies, or a format file not valid. The "ENG633 v1.vi" file could not be loaded.

    This message repeats when I try else open a Subvi.

    Step by step:

    1. I created a copy of the LabVIEW VI example: "FuzzyEx Tanks with control of PI." I kept the copy in the same original directory.

    2 - I have edited the copy, created Subvi etc.

    3 - once I finished my course of programming I closed all the cut (ctrl-x) files and copied (ctrl v) into the other folder.

    4. then I tried to open the next day and... bug! I just couldn't do

    What can I do to open/recover the VI?

    I am using 32-bit LabVIEW 2016 in a Windows 10

    I tried opening them and got the same error you did, so I them opened with a hex editor to see if there was something in the file, and there is literally nothing other than the value of 0x00 for the entire file.

  • With regard to the dynamic variable repository

    Hi Experts,

    I made a dynamic variable repository. This variable is calculated the date of beginning of the week.
    I use this variable in the command as a default prompt.
    the problem I am geeting that its value is not getting updated. It shows the static value that I gave you in default initializer
    RPD.i want to, its value is changed in every week, but it does not change, his shows always value that have default
    in view of the RPD.

    Please share any solution for this problem.

    Hello

    Please use the below SQL syntax in the default selection of the guest of dashboard.

    SELECT CASE WHEN 1 = 0 THEN date_column of another TIMESTAMPADD(SQL_TSI_DAY,-0, CURRENT_DATE) END OF SH

    Concerning
    Young

    NOTE: Please mention if this solved your problem/still face and close the message.

  • How to remove all the dynamic variables of a movieclip?

    I have the movieclip:
    mcGrazer

    with a certain dynamic variables like this:

    mcGrazer.var1

    mcGrazer.var2

    etc.

    If I use:

    delete mcGrazer;

    It does not remove the variables.

    But if I use:

    delete mcGrazer.var1

    It removes this individual variable.

    is there a way to destroy information (variables) to a particular movieclip?

    Thank you.

    You can use:

    function deleteVariablesF(mc:MovieClip):Void {}

    for (var s:String MC) {}

    delete a [s];

    }

    }

  • Repository dynamic Variables

    Hi guys,.

    I noticed a problem in obiee 11g (thousands, unfortunately).

    I create different dynamic variables (repository) to be evaluated by a single query.
    If I test the block of initialization, it's all ok, and each variable to find a corresponding value from the query.

    But the programmer does not work and all the variables that remains to be equal to the default values.

    Why this behavior? Does anyone have the same problem? Solutions?

    Thank you very much.







    moved here from Business Intelligence Application *.

    Hi andysax

    I faced a similar problem when editing online a repository of 11 g. Oracle noted a bug (10394725) and developed a patch to me correct the fault. It was caused by the administration tool does not release its lock on the init block.

    A couple things to check to verify that it is the same problem. Look in your nqServer.log to see if there is an error concerning «unable to acquire an exclusive lock...» ». You edit your SPR in online mode and took a very long time recording?

    Kind regards
    Paul
    http://total-bi.com

  • Dynamic variable names

    Well, I just need to understand how to make dynamic variable names. In this case, I have a loop, and inside the loop, I need to create a table for each iteration of the loop. Something like

    < cfloop from = "0" to = "10" index 'i' = >
    < cfset LoopArray #i # = Some Value >
    < / cfloop >

    But it does not work. How can you make a dynamic variable named? I think it's probably something to evaluate them with or, but I don't know how to use them and the livedocs are meaningless to me. Thank you!

    See attached example.

  • AS2 syntax and dynamic variable names

    Hi all

    Try to learn AS2 and hoping someone can help me by explaining the problems with the following code example, and what would be needed to make it work (i.e. to create dynamic variables and some clips from a table).

    Thanks for your time!

    :

  • Create a dynamic Variable in LabView (newbie Java developer)

    Guys,

    That's my problem, I'm a java developer & c ++ and was interested in learning about LabView. But also simple as indicated by the site OR it is not as banal that I expect it to be perhaps because of my though process. So what I'm trying to get a simple sample to help me start my LabVIEW.

    Example in allows Java say I prompts a user to enter a value that the user enters the [value = 20] & I would be able to create [value = 20 new items], is the value regardless of the user enters. In LabView things do not seem to work that way. So I was hoping that someone provide a nontrivial simple example so that I can better understand how to apply it.

    Thanks for you comments

    Hi * E *.

    I come from a Java background too so might be able to help. I found that LabVIEW is less demanding on the programmer necessarily specify the capacity or the number of variables being created during development and it's a little more intuitively in the background.

    What types of data are you interested? From your post, I would be tempted to use a Subvi "Initialize the array" and wire just at the entrance to size dimension user input.

    In LabVIEW, it is considered advisable to use wires instead of variables wherever possible because they focus on the stream of data as part of the program.

    That help a little?

  • Why LabVIEW example projects using Global Variables?

    I'm puzzled.  I've been pretty good programmers LabVIEW talks (including some who work for the OR) and came away with the impression that Global Variables should, as a general rule, be avoided, with functional Global Variables (alias VI Globals) generally preferred for "local memory".

    I have studied some of the example distributed with LabVIEW, 2012 and 2013, in particular the proposed acquisition in real time and am struck by the use of Global Variables, where I'd be inclined to use instead a FGV.  For examples, to stop all the loops on the RT target, the overall "All the RT loop Stop" is defined; 'Constants' of configuration (such as timeouts, Streme network names, the names of the journal folder) are kept as Globals; Streme network endpoints are stored in Globals.

    [Note - there is a weird spelling of the second word of the network Streme, above - when I tried to post with the correct spelling, I got an error message saying this word is 'not allowed in this community".]  I apologize for the offense, but I must confess that I do not understand what the problem with the help of the spelling of this word...]

    Why use Globals in these cases, rather than write a bunch of VIGs to hold these data?  Note that almost all these Globals are 'Read' essentially (written once when a resource is acquired, for example) or "Read Only" (treated as if they were a constant).  Indeed, read-only variables can be written as a Subvi with only an output terminal, acting as a (visible, due to the icon) constant.

    I can see advantages to this approach.  On the one hand, VIGs can have error bounds who run the data flow (I just spotted a bug "data flow" in code, I am developing that is based on this model, to read configuration data to an XML file in a world and in the same VI, Global wiring to a "use - me" terminal, but with no guarantee that I'll read the overall after I write it).

    It is, I suppose, a matter of 'speed' - perhaps Global Variables are 'faster' than VIGs (especially if the VIG 'sits' on an error line).  My thought, however, is that this difference is likely to be trivial, especially as these VIGs (or Globals) tend to become "occasional" calls (with the exception of the indicator 'all the loop Stop' which is called once per line).

    Are there other arguments or considerations that make a Variable global to a better choice than a VIG?  Is there a reason that LabVIEW developers put in these start-up of projects LabVIEW?

    BS

    I have to ask, how do you use functional Global Variables?  Like just a Get and Set?  If so, you can use a global variable.

    Yes, globals are faster and use much less overhead.  At the summits of CLA in recent years, we talked about using globals.  The most common use is for Write-Once-Read Many and writing-never-Read Many with configuration data.  It's a good idea to use globals with the constants that can change on you.  It turns out that the world will have the same performance as a constant in this case.  This is done so that you don't have 1 place to edit the 'constant '.

    The rule on "Globals are evil" actually goes back several years when NEITHER had the huge "people of the country are bad" vendata.  But NEITHER explains well how to do things properly.  So I found people, instead of using local variables, using the value property node.  It's even worse because the property causes thread swaps and kills your performance.  It wasn't until I shouted to people to use wires and shift registers I have seen improvements in the way in which people wrote their code.  So people are always riffling in the use of globals and decided to use FGVs with the EEG and fixed rather cases.  But this does not solve the problem of the conditions of race with critical data and you cause an additional burden.

    So from my experience, I use globals all the time for configuration data.  Yes, you must be careful about the race conditions.  But as long as you understand that it is a common and useful practice.

    I would not use a global variable for data that are constantly changing (use registers to offset or Action motor) and/or processes that have critical sections of code (use a motor of Action).

    NOTE: I use the definition of Mercer to FGV (a Get/Set only) and motor Action (many cases which specifically affect the data).

  • TSQL stored procedure - passing several variables

    Hello

    I have a drop-down list box in a form that allows you to select more than one. When I process the form, I currently use CF to dynamically generate the SQL WHERE clause creating as much as needed AND instructions.

    I migrate to MS SQL 2005 and the stored procedures on the db. I am trying to create a stored procedure that effectively uses tsql to CF was doing previously (creation in the WHERE clause).

    In the code below, I'm passing tank (22) variable called channel. The code below was my first attempt at trying to create the WHERE clause. Most of the code is focused on the extraction on the individual entities 'channel '. Any thoughts on how to get from this would be GREATLY appreciated!

    I need help on the SELECT side, ultimately I select 'regions', of 'Syndicated', WHERE is based on 'channels' past.

    Thank you

    cfwild

    Hello

    It was quite the adventure of trying to understand this. I learned a little about tsql. Here's the final procedure:

    CREATE PROCEDURE dbo.uspSelectSyndicatedRegion
    @TablePrefix as (7).
    Varchar (100) of @Category,.
    @Channel varchar (2000)

    AS
    BEGIN

    SELECT DISTINCT S.Region
    S Union
    JOIN iter_charlist_to_tbl (@Channel, by DEFAULT) M
    WE S.Channel = M.str
    UNION
    SELECT "
    ORDER BY S.Region

    END

  • ADF/JavaScript - get dynamically variable of bean

    I'm trying to recovery value of bean in JavaScript according to the element in the source:

    function getValue(actionEvent){
      actionEvent.cancel();
       var component=actionEvent.getSource();
       var id=component.getId();
       var substr= id.substr(2,4); //This gives me "l11" for a component
       //Now I need the value of the bean variable MyBean.value<substr>
       //For this case, I need the value MyBean.valuel11
       //If I do something like alert("#{MyBean.valuel11}"); it works
       //But I need dynamically
       var val =   "#\{MyBean.value" + substr + "\}";
      alert(val);
    }
    
    

    But the result appears:

    {MyBean.valuel11} and not the value of bean.

    Could you help me?

    Thanks in advance.

    JavaScript don't know the Expression Language of ADF Faces components.

    You must use an af:clientAttribute tag

    Read more here:

    http://www.Oracle.com/technetwork/developer-tools/jdev/1-2011-JavaScript-302460.PDF

  • Instantiate a class from a dynamic variable

    Hello world. I'm just working on a small project of tilebased and I wish I could put one of my tile with a little code objects.

    For now, I just got this on my left, click on the function:

    __________________________________

    If (tileType == "grass") {}

    var grasstile:grass = new turf;

    addObj (grasstile, absMX, absMY);

    } Else if (tileType == "filth") {}

    var dirttile:dirt = new dirt;

    addObj (dirttile, absMX, absMY);

    }

    __________________________________

    Where tileType is a variable that changes according to what tile the user to select in the menu, and addObj is a custom function to add objects.

    However, there are a lot of tiles, and widely, I'd rather be able to use some code generation rather than duplicate it over and over again for each tile.

    Is there a way to do this?

    I thank very you much for your time.

    Brendan

    I think that the following example which will respond in what concerns the use of a string to dynamically set a class object, just translate it to your situation...

    var ClassRef: Class = Class (getDefinitionByName ("className"));

    var classInstance: * = new ClassRef();

    addChild (classInstance);

  • How to use a dynamic variable in guest of dashboard

    Hello

    I'll have a filter in my dashboard that display values only 15 (from max max-15). I created two dynamic in RPD as variables below

    Exec_Time1: SELECT max (CAST (START_TS AS TIMESTAMP)) FROM tablename
    Exec_Time2: SELECT MAX (CAST (START_TS AS TIMESTAMP))-15 FROM tablename.

    In the dashboard, I want to use the filter as timestamp between @Exec_Time1 and @Exec_Time2.


    Could someone explain how to apply this filter.


    Thank you
    Pushpa

    great (always nice marking ;-)))

    KR,
    A

  • Problem of navigation with dynamic variable list

    Hi all

    I'm a bit in stock with a small question (maybe). I am looking for a way to put the variable to a list of navigation in the same page. Can it is where my navigation list is pointed: f? p = & APP_ID.:20: & SESSION. : & DEBUG. : P20_3, P20_1, P20_2: #État #, #Année accountant #, #Période accountant #:.
    I need to inherit the value (#État #, #Année accountant #, #Période accountant # :) a SQL in the main region (list are in a subregion).)

    Could help me with this please?

    Thanks in advance!

    Eric

    844999,

    You will have to wait until 4.1 Apex

    It is one of the new features 'dynamic lists '.

    However, you can replicate such a list, if you create a report model that looks the same in a list and then create a report with this list.

    Kind regards
    Richard

Maybe you are looking for

  • multiple monitors using miniDP and HDMI

    I have a small question, I have 3 monitors (Acer and 2 DELL U2415). Currently, I want to have a configuration as follows: ACER-> MAC Pro via HDMI Both my DELL-> Pro MAC with MiniDisplayPort The only problem is, HDMI will work with a miniDP and the ot

  • How to use the XY graph

    Hello I had to use a rather graphic XY XY Express chart. The XY has only one entry. How can I input x and y to it? Thank you.

  • Paper size for eprint jpg files

    I use a HP 7520.  When I epring a jpg type file, it will only show for the photo tray.  Is it possible to print to the main paper tray?  I don't see this option in the configuration of printer options.

  • Printer will not work without black print cartridge

    I got a message saying I need to replace the black ink cartridge before I can print. Is there anyway I can print just using the color cartridges. Almost all colour cartridges are full, and I need to print something really urgent. My document is a wor

  • How to restore Windows Picture Viewer

    Can someone help me with this, I can't find in the list, how can I restore it?