Channels table editing

Hello experts,

I am a newbie of labview, but I did find something that was quite like this in the knowledge base: here's a simplified version of a collection of data vi I built.

The vi in the screenshot uses a random number generator, but my true vi queries data from a magnetic susceptibility meter. For the iteration of the loop for however many times are required for my test, which depends on the length of the sample I able as the desired resolution, which is set before the start of the test sequence. In the real vi, the for loop generates the table in a table (string format) in real time, so that the values are visible in the front panel while it is running. The real vi converts decimals to the ACE string format in scoring genius, for the table to display. Now, here's what I'm after:

If "apply" is checked, I want to be able to apply a linear correction to one of the columns in my table and spit out a new column. This must be done after all steps have already been made. The reason being that my sensor requires a "correction of drift", in which we do an empty measure at the end of the sample, and all intermediate values are linearly adjusted to each increment to catch drifting as the coil heats up during use. It is a bit like making sure that a scale reads zero after that something has been weighed, just to make sure that the scale is working properly and then adjusting the measure after the fact.

My question is, which would put inside the case structure to achieve this? In the simplified version described, I want to pass the array out of the register shift and in the next frame of my flat sequence. From there on, I already learned how to use the 'index array' function to extract a column, and the "subset of table to replace" works to inject a new column in my old table (on the photo, I'll just use a new table to display the changed data). I ran into trouble when I tried to apply mathematical functions to items that are already in the string for the table format. I tried to use the function "decimal string to the number" to put the string in digital format data so that I could say, multiply by two. The problem, there is the function to stop the conversion when it hits a decimal point, and all my values are extremely low, between 0 and 1. Someone can think of a way to take the string data and apply arithmetic operators and then replace the subset of my original with the new column array?

Thank you for your understanding!

Hello corelogger

If the problem lies in the failure of the operation of a point number first, then try to convert the string to decimnal the number and save it. Its kinda a long way but if I understoofd it correctly, if you divide them so you can get the result. See excerpt

Tags: NI Software

Similar Questions

  • How to add channels to a channel table in the display panel in the script

    Hi all

    We try to put in place a review tool video using DIAdem, and we want to fill the results which have already been analysed in a Panel. This means populating a channel table in this Panel with the necessary data, but we cannot find a way to add strings to a table in the script. It seems that it should be very simple, but we can not find!

    Thank you

    Peter

    Hi Peter,.

    Yes, it's simple. You prepare your VIEW with the channel table layout and use the add on the columns collection method.

    The command might look like this:

    VIEW. Sheets (1). Areas (1). DisplayObj.Columns.Add("myGroup/myChannel")

  • Update and view Table editing

    I was faced with a very specific problem.
    I have a Table filled with some of the data view. My goal is to change the data in the table. For this, I selects a particular row of data and click a button "Edit". This brings me to a new scene, where the data are filled in textfields and I can edit them and then click on 'Save', so that the data are updated.

    But the problem I'm facing is that the updated data row ranks last and not to his place Moose where it was placed before.

    That's why I wanted any kind of help on how to insert a row of data to a particular line index.

    Thanks in advance.

    Looks like that you remove the old version of the list item of data from the table and added new version of back in. That is not always necessary in fact (but is sometimes, depending on your data model). By default, add (...) add at the end of the list.

    If this is the case, you can do something in the sense of

    List items = tableView.getItems();
    int index = items.indexOf(oldItem);
    items.set(index, newItem);
    

    Lists also have an add method that accepts an index if you really must use add:

    tableView.getItems().add(index, newValue);
    
  • DW cs3 Fireworks table Edit tries to open the mx2004 fw

    I created a page from fireworks CS3 open in dreamweaver CS3.

    When I click the button Edit in Fireworks table properties, it says "unable to launch c:\program files\macromedia\fireworks mx 2004\fireworks.exe.

    I uninstalled fireworks mx 2004, so I don't understand why dreamweaver is still looking for it!
    (I indicated fireworks.exe in regedit to 'open' and 'Edit with' fireworks cs3 as png did not open Explorer windows)
    Can someone help me please?

    I have not round to do the regedit thing but went directly into "Préférences" then "file types / Editors' and followed exactly what katsuey's says:"

    > So I went in the dw preferences and even if FW
    > was listed as the main editor for .png, .gif and .jpg with a
    > path to adobe cs3 FW - it did not work. So I deleted all
    > references to FW in there (so do Photoshop as the)
    (> primary - but we'll fix that). Then I click on the + button, navigate
    > to the adobe fw cs3 exe. So now, FW is reintroduced in the list and
    > then I use the mark it button.

    A big thank you to you two! This solves the problem.

    Dave

  • Custom table Edit in EBS (or Multi column Lookup)

    Hi all

    I'm a PL/SQL Developer and need help or advice on how I would go about using Oracle EBS to build the structure of the table below in the Application. The intention is that users will keep the table using Oracle EBS, rather than build a table, they may not maintain app.

    Initially I thought that this may be an easy task with the help of a fnd_lookup, but I quickly understood the research do not allow several values per line. I assume that the alternative might be to create a custom form and attach it to a custom table that has the structure below, but before I head in that direction, I want to see if Oracle EBS has a built-in feature to this?

    EBS R12.1.2

    HEADER1

    BY TETE2

    HEADER 3

    HEADER 4

    HEADER 5

    XYZ

    WE

    ABC

    DEF

    IGS

    JKL

    PPP

    WE

    XYZ

    + IN

    TTT

    ABC

    TTT

    WE

    JKL

    ABC

    EFG

    XZY00

    Guessing that Header1 would be the identifier of your line, you have a few options:

    Independent the header value 1 and value dependent value for 2-5 headings.

    Search using Header1 as code, then using DFFs for the remaining columns. Use the type of research according to the context, why the FDF applies only to this research.

    If you use HR/Payroll modules, there is a feature of defined user tables easily available.

  • Report: channel error in several tables description

    I get several error messages when you create more of a channel table and you want to view the descriptions of channel. Is there something wrong with the allocation of the value of the description of the header line? I have attached a minimal example:

    Option Explicit  ' force explicit declaration of all variables in a script.

    Call Data.Root.Clear)
    Call DataFileLoad ("C:\Program Files (x 86) \National Instruments\DIAdem 2014\Examples\Data\Example_data.tdm")
    Call Report.NewLayout)

    Dim oMySheet, oMyTable, oMyColumn, oMyGrp, iCount, gCount

    GCount = 1 to GroupCount
    Set oMyGrp = Data.Root.ChannelGroups (gCount)
    Set oMySheet = Report.Sheets.Add ("Table" & gCount)
    Set oMyTable = oMySheet.Objects.Add (eReportObject2DTable, "Table" & gCount)
    oMyTable.Settings.Header.Title2 = "@Data.Root.ChannelGroups (CurrGroupIdx).» Channels (CurrChnNo). Properties ("& Chr (34) &"description"& Chr (34) &" ""). "Value".
    oMyTable.Settings.Header.UseAutoFontSize = TRUE
    oMyTable.Position.ByBorder.Bottom = 5
    oMyTable.Position.ByBorder.Top = 5
    oMyTable.Position.ByBorder.Left = 5
    oMyTable.Position.ByBorder.Right = 5

    ICount = 1 to oMyGrp.Channels.Count
    Set oMyColumn = oMyTable.Columns.Add (e2DTableColumnChannel)
    oMyColumn.Channel.Reference = oMyGrp.Channels (iCount). GetReference (eRefTypeIndexName)
    Next
    Next
    Call Report.Refresh)

    As you will see, everything works fine for the first table, but errors are produced for all of the following.

    / Phex


  • Table of channel properties

    Hello

    is it possible to record the properties of the string selected in a channel table (view)?

    Thank you

    Yes,

    If you customize your table and save the layout, you have the same settings at the beginning / the next load of this page layout file.

    Kind regards

    Philipp K.

    AE | OR Germany

  • Align to the right of the numbers into editable tables

    Hello

    I have a table editable af where there are number of columns as well.

    I need number of these columns should be aligned to the right.
    I tried to set the property align to the right column.
    But make no change.

    Is it possible that I solve this problem?

    I use JDeveloper 11.1.1.0.1

    Thank you
    Melaka

    Hello

    Take a look at the the af StyleClass: InputText in af: column, I use AFFieldNumberMarker.
    See if that helps...

    Concerning
    Paul

  • Grouping of external midi channels

    Hello

    I'm trying to combine two external midi channels, but it does not work.

    I can put them in the same group, I have check the volume, but it still moves only a fader when I'm not touching her.

    I tried to stack them, but the created VCA group does not send the midi volume information

    Is there a way to do this?

    Thank you

    Be careful with the external MIDI in general channel strips. In the mixer, they resemble other Types of Channel Strip, but they are not. External MIDI channel strips don't "carry" any audio signal, the only signal of MIDI. I guess that's maybe the reason why the Faders group.

    It's a bit of a (misleading) confused situation, because there is no indication in this regard. The other grouping settings, however, work on all the channel strips: editing, automation Mode, Record, color, Zoom, track to hide track.

    Don't use Solo and Mute for groups or external MIDI channel strips, they are incompatible between buttons on the tracks and channel strips.

    Here's the group settings that you can use on external channel strip

    Hope that helps

    Edgar Rothermich - LogicProGEM.com

    (Author of "Graphically improved manuals")

    http://DingDingMusic.com/manuals/

    "I could receive some form of compensation, financial or otherwise, my recommendation or link."

  • Tables

    I have a structure of the event to a do while loop.  Events are 18 different test.  Each event a unique test.  Y at - it a way to update a table (live) with results such as if a test is run a second, third... time to the second, third... data run are put in the table?  The picture would be of 2 passes of 18 ranks.

    Yes, the table is essentially a 2D channels table. You can replace the elements in the table to reflect the current status/outcome. You will need to manage the information about what item needs to be updated as Test is the third row.

    In addition, it is generally not a good idea to have all your code run within the structure of the event itself. The reason is that no other event cannot be processed until the end of this event. So if you have an Abort button on your test, you will not be able to maintenance until the end. A producer/consumer architecture is a standard design patter that is used. The (producer) event loop contains very little code and is therefore very sensitive to user input. The loop of consumer would actually contain the transformation code itself. It is usually a state machine. Your state machine can be written such that it can get commands such as abandonment and allows you to stop a test with elegance.

  • Split and searching in a table 2D-DAQ

    Hello

    I'm collecting data of a data collection that returns a 2D array.  I take 1000 samples of the 4 channels at once, and I returned a matrix of rank 2 column X 1000:

    The first column indicates the channel and the second column shows the value of the sample.

    I want to find this matrix for all values corresponding to a given channel and draw.

    That is, if the matrix looks like this:

    1 54.5

    2 42.4

    3 67.6

    4 15.2

    1 34.2

    2 22.5

    ...

    I want to extract all values in column 2 that have a value of 1 in the first column and draw a graph and repeat for column values equal to 2-4 1.

    I can't understand how to do this using the table operations.

    If the first column is still 1,2,3,4,1,2,3,4... then I would just index on the second column and use the Decimate 1 d table to separate data of different channel tables.  You must expand the 1 d 4 output items table Decimate.

  • Send to table to the table receiving TCP and imaging

    Hello

    I work with the tomography of process;

    I want to send a picture 2D-double over TCP, to receive the same table (table 2D-double) and create an image of this table.

    Unflatten to channel, I got 2-D array of string. How can I create the original of this picture of string array?

    Please take a look at my vi s.

    Thanks in advance

    You write a 2D DBL table, but read in the form of a 2D channels table. Replace the constant matrix 2D string by a constant matrix 2D DBL. (I haven't studied the rest of the code, because I do not have IMAQ)

  • How can I count the pulses in a channel?

    Hello

    I have a channel consisting of 0 and 1 (data comes from a proximity sensor) and I was wondering if there is an easy way to count the events (i.e. pulse) to (Advanced) Tiara? At its simplest, I just need a method to count the number of rising edges in the channel.

    A script would be the way to do this? If so, is there any example autour code to demonstrate how to analyse the lines in a channel?

    Thank you

    PorridgeMan.

    Hello!

    @Martin: IMHO your aproach can operate, but need not because of input data and the right compares value (10 in your case).

    If the input data are not a pure 0-1 step you can get more the a value greater than 10 for a rising edge.

    The comparison value depends on the distance of time and the channel values, and it's not easy to calculate in advance.
    The other drawback I see is that you need a channel of X, which is not really necessary to solve the problem.

    I think my code will be more robust (IMHO as I mentioned).

    @PorridgeMan: Yes, it's a shame it takes certain steps of DIAdem to solve this common problem.

    First: By script is possible, but generally to slow down. My approach is to insert a 0 value at the beginning

    a copy of the input channel table and compare it to the input string. If a value is less than 0,5 (half of you maximum values)

    and the other is higher I put a 1 0 otherwise in a result string. Even in more complicated cases, the comparison value could

    be calculated or alienated by a moving average.

    Here is the code:

    Option Explicit
    
    ' Copy data
    Call ChnCalculate("Ch(""[1]/Dif"")=Ch(""[1]/Pulses"")")
    ' Insert one 0 at the beginning
    Call DataBlInsertVal("[1]/Dif",1,1,0,0)
    ' Compare and convert result to 1 or 0
    Call ChnCalculate("Ch(""[1]/Result"") = IIf((Ch(""[1]/Pulses"") < 0.5) And (Ch(""[1]/Dif"") > 0.5), 1, 0)")
    ' Sum is result
    Call MsgBox(Cch("[1]/Result",4))
    

    Hope this helps

    Matthias

  • table format

    Hi all

    I have this requirement where I control the format of the data of individual cells of a table. Look at the table below.

    is it possible to have the no. measures to only show as integer values (1 2 3 4 etc) instead of (0.00000, 1.00000, 2,00000) and keep the format of the second column. so I ideally I would have the rest of the table.

    A Table hint is a way to display a 2D channels table. As wrote billko, if you replace your Table Express with a normal table hint, then you can to format the data in an array of strings as you want, and it may be different for each cell, if that's what you want.

  • Find cell that caused the event change of value on table

    Hello

    I have a table, it is essentially a 2D channels table... I have a case of the event, he put in place to trigger if there is a change in value on my table.  Anyone know how can I know what my case of the event enabled cell? What element of the array has been the change of value?

    My table is large and has some extended channels, I'll try to find the row and column clues to the corresponding cell that has been the change in value.

    Thank you.

    Well Yes, there is a better way:

Maybe you are looking for