Detailed index into the array

Hello!

I did a VI control card relay and relay settings (eight relay - power) is specified in an array of Booleans. line 1 is the first setting for eight (eight columns, one for each relay) relays and the corresponding digital control gives the time in seconds for this specific relay setting. Line will run two when line 1 is complete, then third row and so on. A user came up with the suggestion; When it has several settings settings as much as 40/lines - it is difficult for him to navigate in the table when he wants to make changes. He suggested I have add a number to each line and also if possible have different markers on each column (for example, colors different lamp for each column). I've attached a picture to show you what I mean.

My only idea is to use labels, but find it me difficult to do in a generic and dynamic way.

I am grateful for any suggestions or solutions!

Best regards

Mikael - Peterson

I agree with Saverio.

Customize a set of Boolean controls using the images you have now.

Put together them in a cluster

Place the cluster in a table

resize the table down

Right click on the table and hide the index and display the vertical scroll bar.

When you are finished, you should have a chart every step of the procedure.

You can add a 'step number' on the cluster to make it easy for what is the step number.

Ben

Tags: NI Software

Similar Questions

  • Show largest index in the array with the value 'True '.

    Hello

    Is it possible to show the maximum number of index with the value "true", as indicated under?

    I can show the value on what index series of 'real' ends with the function 'Table Max and Min', but when there
    a fake between these True, it shows that the index of the true left of the fake.

    I don't need to know the size of the table, because he must stay 8

    File is attached

    Hi Stef,

    Here you go:

  • Boolean index in the array

    In Matlab, often use a Boolean array to access the specific values in a table.

    It is a good way to reduce the itterative loops and improve the speed of the code.

    I'm trying to find a way to do this in a Mathscript node, otherwise the code takes forever to run.

    Common code in Matlab and Mathscript:

    a = [1,2,3,4,5]; % This is normally a much larger range

    b = [1,0,1,0,1]; %I whether Boolean, but by default it's double

    c = b > 0;  b change % to boolean

    d = [9,9,9,9,9];

    The Matlab code is:

    d (c) = a (c);

    d

    > d = [1 9 3 9 5]

    If I run the above in Mathscript, I get the following error:

    In Mathscript, to achieve the same result "d" I currently have this:

    for i = 1:length (d)

    If c (i) == 1

    d (i) = a (i);

    end

    end

    d

    > d = [1 9 3 9 5]

    A slightly faster version is:

    for i = 1:length (d)

    j = 1;

    If c (i) == 1

    e (j) = c (i);

    j = j + 1;

    end

    end

    d (e) = (e);

    d

    > d = [1 9 3 9 5]

    Any ideas?

    Thank you

    Hello

    The code you have posted works fine in the MathScript in LabVIEW 2009 node as well as in the MathScript window and the MathScript node in LabVIEW 8.6.  As such, I'll assume that you have found an error in the window of MathScript in LabVIEW 2009.  We have already identified this problem and currently filed the bug report 151999 for her.  You see error message did not come through in your post, so I guess it is-90026: ' indexes for an indexing operation matrix must be real and positive integers. "  The problem is that we do not treat the indexing variable 'c' as a boolean type.  As a result, it reports an error when it tries to use the index 0 instead of a fake.  We are working on a fix for a future version.

    To work around the problem in the MathScript window, you can use find instead of any Boolean indexing command.  It should integrate more quickly than the implementation of loop that reference you.  Instead of
    d (c) = AC;
    use
    d (Find (c)) = a (find (c));

    Grant M.
    Staff software engineer | LabVIEW MathScript | National Instruments

  • Determine which cluster and the array index element was clicked on table clusters

    Hello

    I'm overload of brain with dynamic events and references and nodes of property etc.

    I am trying to identify the cluster and the array index element that was clicked on table clusters

    This gives me the name of the element:

    Is this reasonable?  How can I get the index?

    Thank you

    Paul

    Hello

    Download the VI in this link (also attached).  It gives you the index of the array element that you clicked. Hope this will help you.

    Kind regards
    Nitz

    (Bravo to give good answers, mark it as a Solution If your problem is resolved)

  • item switch to function index into a text file

    I'm having some difficulties here...

    What I want to do is replace/switch element to an index in an existing text file. When I read the data from the text file I use 'read worksheet file.vi' and read items as strings, so my idea is to use the "write to worksheet file.vi' when I want to update the text file.

    For example, a text file with elements; 1-1-1

    2-2-2

    3 3 3

    An example of what I want to do is to change the place of the first 1 to index (0,0) and the last 3 in index (2.2), which should give me the result in the text file; 3-1-1

    2-2-2

    3 3 1

    Anyone who got advice or ideas? Thank you...

    You should really look at the various functions of table available. And rather than use the function Rotate 1-d array , you can try using the first remove table , then insert into the Array function.

  • changing/variable index of an array on FPGA

    Hi all

    I have a question about indexing an array on FPGA. Concretely, I have a constant size 1 M table and want pieces of index of size N of it. Unfortunately, when you try to compile I get the error message: the tables with variable sizes running are not supported. Is there a work-around nice for who?

    See you soon

    Hello

    Well, I don't have first play dynamicaly with the Index of the Array of subset function entry.

    This is not supported in a SCTL, so that the planned behavior.

    There are several workaround solutions to do this, depending on how you design your design.

    1 point by Point approach (as usually made it in FPGAs), using a function table of Index on the RefArray and with the use of counters to keep track of the Index, and evantualy count each sample collected.

    This means that every cycle, you have an example that needs to be addressed, you don't work with a tableau more out.

    2. same as 1, but using a BRAM I32 element as an interface in the screenshot gave you, I understand that your table with a value of several KBs, which can be a problem in the long term for your design.

    3. using a FPGA IP, you could build something like this:

    You can use a loop in the context IP FPGA that auto-index the RefArray, to pick up the samples you want, in your sub-table.

    This means that you can always work with a table in the output, but the cost will be that you can not leave the subarray in each clock cycle. (use the estimate feature to see the actual flow rate)

    4. you can explicitly implement a big MUX, using a box structure. In each case, you provide the desired sub-table.

    This is indeed what LV FPGA would do if you where using a standard while loop. Yes, ugly, but no way around it if you want a sub-table, at every clock cycle.

    5. the BRAM/DRAM can work with an interface of up to 1024 bits, 32x32bits elements for ex, then you might have used up to 32 items in you case (using the loose I32)

    So! In your case, I recommend that you use option 5 if possible:

    -Think of BRAMs, your table is starting to get impatient on slices

    -Use up to an interface of 1 024 bits on BRAM for a sub-table, do you really need more of 1024 bits a sub-table?

    If you don't see how to go from there, I would need more information on what you try to do + all necessary and upstream of the stored data and their data type

    Good bye

  • Search index of the secuence valuation until you reach a constant value table...

    Hello

    I have an arry of secuence RR values (its peak at the time of peak of ECG wave is seconds). I know that the added value of the paintings is the total time of sample data.

    I would like to separate in different charts in the representation of every hour of recorded data.

    I need to get a way to get the index where the number of added values are-online 3600 s (1 h).

    So that I can know the index of the arrays values to get the correct index in chart 1 h values, another index for another hour for an another graph,... so until you get the hourly chart several data can show.

    I hope you understand me.

    Best regards.

    Modulo division is performed by the function Quotient & remains on the digital palette.

    Work with tables and data DBL or integer types.

    When I use the method that Mike designed, in my view, the VI sometimes lacks a time transition. This happens with the simulated data that I generate because it is possible that the rest is different from zero. For example, this can happen if the accumulated sum is 3599.4 s and the next RR interval is 1.3 s. Which gives the following sum = 3600.7 s. The conversion by multiples of the amounts of 3599 and 3601. The remains are 3599 and 1 after modulo division. None are exactly equal to zero.

    I've changed this option to use DBL and then look the big negative transition. The minimum value may be with the largest range of RR in the data. However, there is always a great transition close to 3600 to near zero.

    Lynn

  • get the index of the same values in table

    Hi guys,.

    I'm trying to get the index of array elements with the same value but it can solve mine.

    my case is:


    array1 = [1,2,3,4]; <-here are the names of the pages, always in the order of CSA (these table I used only to check the results of my work, probably will not be for you but maybe...)

    array2 = [1,1,2,2,2,3,4,4,4]; <-these numbers are random, but always in the CSA order (these are the names of pages for items in table 3)

    array3 = [a, b, g, i, f, e, c, h, d]; <-these are all the values of the elements I want to work with later. number of articles is still the same as in array2, their indexes are corresponding.

    array4 = [];

    I need to remove array3 everything, but one of each issue of array2 (as I will remove duplicates) or push to array4 an article of array3 for each number of the array array2 (as I'm going to ignore duplicates)

    don't know is my desc is clear enough, but the result I get is:

    ex. [a, g, e, c]

    above example for each number of array2 array3 items, but do not have to be first, can be second or third if etc exist, but have to be alone.

    I thought that if I get duplicate values, the index in the array array2 and delete this index in array3 will get what I want, but can not solve.

    You will appreciate all help.

    Thank you

    Try something like this:

    var array2 = [1,1,2,2,2,3,4,4,4];
    var array3 = ["a","b","g","i","f","e","c","h","d"];
    
    var tempArray = [];
    var resultArray = [];
    var n , x ;
    
    for(var n=array2.length-1;n>=0;n--)
    {
        var string = ""+array2[n];
        tempArray[string] = array3[n];
    }
    
    for(x in tempArray)
    {
        resultArray.push(tempArray[x]);
    }
    
    resultArray.reverse();
    // a,g,e,c
    

    Hope, that helps.

    Uwe

  • delete the index in the transformation script

    In a custom transformation script, I would delete the indexes on a table.  However, I don't see that there is no table.removeIndex function ().  Is there another way I can drop an index?

    You can use the table.remove(KeyObject key) method, passing the Index into the KeyObject parameter.

    David

  • "Index was outside the bounds of the array"

    Hello

    I installed ESXi to my home server to test and get to know the software, but I ran into a problem.

    When I try to deploy a new virtual machine or to change the settings, I get a message saying "Index was outside the bounds of the array".

    I have no problem from vSphere, creating a new data store and so on.

    But the funny thing is, when I try another account that I have no problem...

    At the moment I have installed:

    ESXi

    version 4.0.0

    Generation 5044850

    vSphere

    version 4.0.0

    Generation 496403

    vSphere is installed on a computer, Windows 8.

    And the logfile viclient says:

    2013-07-21 16:55:33.103 [viclient:SoapTran] invoke Start 38, RetrieveContents on PropertyCollector: ha-property-collector [10.0.0.250]. [Appellant: VirtualInfrastructure.PropertyRetriever.InvokePropertyGet]

    [viclient:SoapTran] 2013-07-21 16:55:33.118 invoke RetrieveContents on PropertyCollector 38 finish: ha-property-collector [10.0.0.250] - series: 0.001, server: 000.024

    [: ShowExcp] 16:55:35.879 2013-07-21 System.IndexOutOfRangeException: Indeksen var utenfor matrisegrensen.

    ved VMware.CustomControls.NumericUpdownEx... ctor()

    ved VMware.CustomControls.DiskCapControl.InitializeComponent)

    ved VMware.CustomControls.DiskCapControl... ctor()

    ved VpxClient.VMConfig.BWzVDiskCapPage.InitializeComponent)

    ved VpxClient.VMConfig.BWzVDiskCapPage... ctor (TocWizard myBoss)

    ved VpxClient.VMConfig.NWz... ctor (NWzModes m)

    ved VpxClient.Common.UiCommands.VirtualMachine.NewOrImportVM (import Boolean, forceVmtn Boolean, entity, Service iService ManagedEntity)

    Stack trace:

    at VirtualInfrastructure.Utils.Log.Trace (String, String, traceCategory)

    to VpxClientCommon.Util.Dialogs.ShowException (IWin32Window, String, Exception)

    at VpxClientCommon.Util.Dialogs.ShowException (Exception)

    VpxClient.Common.UiCommands + VirtualMachine.NewOrImportVM (ManagedEntity, Boolean, Boolean)

    at VpxClient.GettingStarted.HostHtmlView.CreateVM)

    ...

    at System.Windows.Forms.Application.Run)

    concerning

    Thomas Isaksen

    Hello

    Have you checked this post?

    Re: An internal error has occurred in the vSphere Client. Details: Index was outside the bounds of the array.

    Kind regards

    Julien.

  • Index is outside the bounds of the array with bcs

    I used the bcs connection to connect to Sql server 2008 r2. I developed the code in visual studio 2010 with model. I tested with 3000 data that he was working.

    After that I change the data of 50,000 records
    It is giving error

    MethodInstance with name "ReadList" on the entity (external content Type) with the name "Entity" in the Namespace "Entity.BdcModel1" unexpected failure. The failure occurred in the "ReadList" method defined in the class "Entity.BdcModel1.EntityService" with the message "Index was outside the bounds of the array.".

    Update status DocuSign envelopes
    /_layouts/images/DocuSignFeatureReceiver/DSIcon16x16.gif
    {SiteUrl}/_layouts/DocuSignSharePointIntegration/DocuSignSend.aspx?userRequest=UpdateEnvelopeStatus&ItemId={ItemId}&ListId={ListId}&ItemURL={ItemUrl}&onFinishURL={Source}
    0 x 0
    0 x 0
    List
    15502
    300

    View in Web browser
    _layouts/VisioWebAccess/VisioWebAccess.aspx? ListGuid = {ListId} & ItemId = {ItemId} & DefaultItemOpen = 1
    0 x 0
    0 x 1
    File type
    VDW
    255

    Details of compliance
    JavaScript:commonShowModalDialog ('{SiteUrl} /_layouts/itemexpiration.aspx?ID= {ItemId} & list = {ListId} ',' Center: 1; dialogHeight:500px; dialogWidth:500px; resizable: Yes; status: no location: No.; menubar:no; help: No. ', function GotoPageAfterClose (pageid) {if (pageid == 'hold') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/hold.aspx?ID={ItemId}&List={ListId}'}); return false ;} if (pageid == 'audit') {STSNavigate (unescape (decodeURI ('{SiteUrl}')) +'/_layouts/Reporting.aspx? Category = audit & backtype point = & ID = {ItemId} & list = {ListId} ");" return false ;} (Si_(pageid_==_'config') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/expirationconfig.aspx?ID={ItemId}&List={ListId}'); return false ;}}, null); Returns false;
    0 x 0
    0 x 1
    ContentType
    0x01
    898

    Change in the browser
    /_layouts/images/icxddoc.gif
    /_layouts/FormServer.aspx? XsnLocation = {ItemUrl} & harvested = browser & Source = {Source}
    0 x 0
    0 x 1
    File type
    xsn
    255

    Change in the browser
    /_layouts/images/icxddoc.gif
    /_layouts/FormServer.aspx? XmlLocation = {ItemUrl} & harvested = browser & Source = {Source}
    0 x 0
    0 x 1
    ProgId
    InfoPath.Document
    255

    Change in the browser
    /_layouts/images/icxddoc.gif
    /_layouts/FormServer.aspx? XmlLocation = {ItemUrl} & harvested = browser & Source = {Source}
    0 x 0
    0 x 1
    ProgId
    InfoPath.Document.2
    255

    Change in the browser
    /_layouts/images/icxddoc.gif
    /_layouts/FormServer.aspx? XmlLocation = {ItemUrl} & harvested = browser & Source = {Source}
    0 x 0
    0 x 1
    ProgId
    InfoPath.Document.3
    255

    Change in the browser
    /_layouts/images/icxddoc.gif
    /_layouts/FormServer.aspx? XmlLocation = {ItemUrl} & harvested = browser & Source = {Source}
    0 x 0
    0 x 1
    ProgId
    InfoPath.Document.4
    255

    View in browser
    /_layouts/xlviewer.aspx?ID={ItemUrl}&DefaultItemOpen=1
    0 x 0
    0 x 1
    File type
    xlsx
    255

    View in browser
    /_layouts/xlviewer.aspx?ID={ItemUrl}&DefaultItemOpen=1
    0 x 0
    0 x 1
    File type
    xlsm
    255

    View in browser
    /_layouts/xlviewer.aspx?ID={ItemUrl}&DefaultItemOpen=1
    0 x 0
    0 x 1
    File type
    xlsb
    255

    Set Version History
    JavaScript:SP. USER INTERFACE. ModalDialog.ShowPopupDialog ('{SiteUrl} /_layouts/DocSetVersions.aspx?) List = {ListId} & ID = {ItemId} ")"
    0 x 0
    0 x 0
    ContentType
    0x0120D520
    330

    Send in the other place
    JavaScript:GoToPage('{SiteUrl}/_layouts/docsetsend.aspx? List = {ListId} & ID = {ItemId} ")"
    0 x 0
    0 x 0
    ContentType
    0x0120D520
    350

    I do the connection for the 15 million documents. So please advise me on the connection of BCS.

    Thank you

    Hello

    Your Windows question is better suited in the TechNet forums. You can follow the link to your question:
    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer/

  • How can I buy a free app without going into the details of my credit card.

    How can I buy an app without going into the details of my credit card?

    I have already created my Apple ID without going into details.

    How did you create the account? Did you use the instructions on this page: create an iTunes Store account, App Store and iBooks Store without a credit card or other method of payment - Apple support ? If these instructions are not used then payment details must be entered before the account can be used.

    Have you tried to enter the card details? The card will not be charged (with the exception of a temporary store holding the load that your card issuer should remove in a few days or more), and you should be able to remove the card after entering it

  • How can I index an element of the array as "index Board" function to labview?

    Hello:

    I am looking for a method to search an array with indexes and return the element specified by the given index.

    as the array index of the labview function, but I can't find an exact symbol in teststand-table-operations/functions.

    I am new to teststand and everyone knows how to use labview in teststand.

    anyone can teach me?

    Thanks in advance!

    Thanks anyway, found in the API

  • 'Replace the element of the array' replaces not only indexed items

    Hey masters LabView,.

    Fairly new to Labview and I'm trying to sort out how to create a table of images. I know that the total number of images I want in my 'stamp' (not the buffer of LabView), so I'm the initialization of an array of this size. Can I bring this table in a loop For with a shift register, and I want to capture images and write them in the table of the buffe continuously (a comment: I do a circular buffer, but I don't want to implement in LabView, because there a lot of things that I don't need and I will eventually have to the process to be as thin as possible).

    Here's the problem (I assume an implementation, that does not decompose LabView):

    I expect:

    AN element of the array, in the position indicated by the index of the loop [i], is replaced by the image newly caught

    I get:

    All THE elements of the array becomes the image newly caught.

    (I can tell because I taste under the table, grabbing a single image from a constant "Check Array" index - may 7, for example.) But my index of the loop [i] value is 13, and the subsample becomes again the image newly caught.

    What a ridiculous thing I am doing wrong?

    Any help would be greatly appreciated.

    Ah, I just noticed something.  Initialize you an array of references at the beginning of your program, but it is a complete picture OF THE SAME REFERENCE: you must call the IMAQ Create in a loop so that you actually get unique references in your table.  You must have a different NAME for each image.

  • How to dynamically control the index of an array

    Hello

    In fact, I have two request:

    1.

    I want to create a table with different size? According to the user request!

    So I would like to be able to set the index of the table, which allows the user to have his picture with a different line is array (1 d)!

    On my test will affect the number of line by another application (a loop used in another part of my request)!

    2 / is it possible to have two loops 'for' this command at the same time, a loop of the sequence (with indexation)?

    TX


Maybe you are looking for