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

Tags: NI Software

Similar Questions

  • Rotate several tables of channels 1 d

    Hello

    I have a vi that eventually writes some data to a log (.txt) file.  In the data that are written, there are a few tables.  In a particular section, I have three arrays of strings that I try to handle it with no luck.  Here is an example of what I have now, and subsequently, where I want to be:

    Present:

    x 1

    x 2

    x 3

    Y1

    Y2

    Y3

    Z1

    Z2

    Z3

    Desire:

    x 1 y1 z1

    x 2 y2 z2

    x 3 y3 z3

    Where x, y and z represent the three tables of sepreate channels.  These tables is then concatenated with other data to generate the log file.  It seems that no matter what I do (build, transpose, index, etc...) I still end up with the vertical arrangement in my log file - I'm sure I'm overlokking something trivial, but it's deceiving me right now.

    I cannot post my code because of security, but will provide any more detais needed.  Thanks in advance.

    I think you are looking to do a table build followed by a transposition.

    Your build array must have 3 entries.

    Feed it to X, Y and Z and you should get

    x 1, x 2, x 3

    Y1, y2, y3

    Z1, z2, z3

    Hit this result with the conversion and you should get

    x 1 y1 z1

    x 2 y2 z2

    x 3 y3 z3

    What do you use to write to the log file?

  • The analysis of the Variables of e/s channel properties

    I have a situation in which I would like to configure the Daq on a cRIO since an interface of configuration on a Windows host. In particular, I would like to get IO addresses Variable for all analytical engine channels configured on the cRIO. The Setup program runs on the Windows host and impossible to deploy any demon on the RT which could question the material. He needs run as if the cRIO is not present.

    The configuration program is part of the same project as the cRIO, so my thought was to analyse the project to find corresponding topics. Here's a post that does something very similar:

    https://decibel.NI.com/content/docs/doc-16630

    However, this has several problems. This example was written in 2011. I am using 2015. Apparently, the properties have changed since then. Children' find' (it is no longer named "children []") does not give me the chassis on my 9068 reference. Instead, I could use the property "Items Owned []", which gives a bunch of things, and then I search the TypeString of these things until I have find one that is "Chassis". Fair enough. Then the ref chassis gives me the Modules and the Modules of give me the channels. Seems pretty good. But all I get are the names of channel. I can't find all the properties that define the type of module or the direction of IO. For example, I would like to know if a variable is a Boolean or real, and if it is a path of entry or exit. You can deduct that the names 'standards', if the project has not been changed to allow giving them a meaningful name to create or. But it looks like there should be a way to find these properties directly.

    Any ideas?

    TIA,

    DaveT

    I think that the analysis of the project tree is a quite fragile strategy that you should know already. AFAIK the OR sanctioned for this sort of thing for a few years now is to use the API of the System Configuration. Yes, it's a pretty involved API and need you a little time to learn how to get the specific information you are interested in. Fortunately there are some examples that you can use to start with.

  • Devantech TPA81 read temperature table "physical channel be unspecified.

    Hi, I'm new to Labview.

    I need to use a heat of TPA81 sensor in my Dani robot project, so I found the 'Devantech TPA81 reading temperature table' example in examples of robotics. I connect my sensor with a USB - I2C converter and then connected to my PC. I run the program, but the problem "the physical channel is not specified" still exists. How to choose the physical channel in labview for the clock channel and the data channel?

    Could someone please help me and thank you in advance.

    Jason

    Hello.

    The example given here "Matrix of the temperature read Devantech TPA81", works with acquisition cards supported by the driver "DAQmx" therefore, I think that this will not work with a simple "USB - I2C" converter.
    Now, on the other hand, if you just want to work with the "TPA81" sensor in the robot, DANI, you could see the example "Devantech TPA81 (FPGA). Lvprog' in the help of LabVIEW, where, in the "target FPGA", you will find the VI "Devantech TPA81 (FPGA). saw', where you can configure the channels (data and clock).

  • Table of channel adds channel list «»

    Hello

    I did apply for a measure of frequency via a HP34970A.

    Closed HP34970A 101--> HP5313 port measures--> and then HP34970A open port 101 again. Continue to port 102.

    I want to use #101 & #102 but # "" is added as well and gives me a timeout 50sec.

    The probe for a list of the input channels watch 101, 102 & «»

    On the output, it gives me

    #101 5 bed, 8ms

    #102 bed 1, 6ms

    # "" bed 0,0000000

    How can I remove ' ' from the list of channels? I don't know that it is not in the list itself, only 2 channels there.

    Thank you

    Hello again

    I ended up remove the entry from the chain and recreate. There wasn't any 'spaces' or anything in the figure of an i, but recreate fixed.

    Thanks for the comments.

  • Format-Table & Get-VMHost properties...

    I'm missing something.  I worked on it on and off for the last two days and may not know what I'm doing wrong here.  My goal is to ultimately develop a script of checking my environment, using the VI Toolkit.

    $scReserved = @{label = 'Reserved'; Expression = {(Get-View-id (Get-vue $_).)} {{(ConfigManager.MemoryManager). ConsoleReservationInfo.ServiceConsoleReserved)}}

    Get-VMHost | FT name, $scReserved

    It does not work.

    I have a way to get this info by following these steps, even though I wish I could use Format-Table instead.  Why it does not work and what don't understand me in how to make these Expressions?

    However, this work is not a friendly game to be saved to a file or use the Format-Table.

    $hosts = get-VMHost | Get-View

    {foreach ($hostview in $hosts)

    $mem get-view-id $hostview. ConfigManager.MemoryManager

    $h = $hostview. Name + ', ' + $mem. ConsoleReservationInfo.ServiceConsoleReserved

    Write-Host $h

    }

    PowerShell me likes it.

    The curly braces and parentheses are not balanced

    This example will do what I think you were trying to do

    
    $scReserved = @{Label = "Reserved"; Alignment = "Left";
                 Expression={(Get-View -Id $_.ConfigManager.MemoryManager).ConsoleReservationInfo.ServiceConsoleReserved}}
    
    Get-VMHost  | Where-Object {$_.State -eq "Connected"} |
      Get-View |
      ft @{Label = "Name"; Expression = {$_.Name}; Width = 20}, $scReserved
    

    Note that I added a Where-Object cmdlet for the tip because you cannot get the value of memdory reserved for guests who are not connected.

    To show that the hash table is used for formatting objects, I added a few other keys (alignment, width) to the hash table.

  • That does Create DAQmx Virtual Channel (TEDS AI accelerometer) actually?

    Hi all

    I have a logging application of fundamental vibrations for which I use TEDS accelerometers active.  I set up a task using the virtual channel create (TEDS AI accelerometer) to add the right channels, but none of the data in the table of TEDS seems to be get attracted to my channels.

    This VI pulls information of the TEDS scaled such that the values I have read are resized to the appropriate unit?  Is it possible to force it to drag all the TEDS data by so that when I save a waveform to a tdms file they end up like channel properties?

    I've included a screenshot of VI, which creates the task for reference.  Thank you!


  • report table 2D

    I'm doing a summary table in the report, where I can get specific channels, the channel properties values, etc. in a summary table.  So far, I can only displays all of the channels, a single value over and over in a column or property of channel more and more of a column.  I have my data structured in groups, where each group is a separate experience, every experience is a bouquet of channels.  I'm trying to generate a table where I can display a value of each experience in a single column.  I can give an example if it helps.  Thank you.

    Steve

    I was able to get a solution from the line of "ask an engineer".  My problem was that I called a number of specific group when I was coding the columns in the table, then he said only to repeat the same value of the column even every time.  In the Script tab, I would have just used a loop for loop on the number of groups.  The solution that had been planned for me the report was to use the variable 'D2TabRow' to specify the row in the table, instead of calling the group by the number.  For example, to display the maximum value chain 'dTemp smooth' of the group n - th to the nth line of the 2D table, I would use:

    @@Str (Data.GetChannel ("[" + str (D2TabRow) + "]" / smooth dTemp "").) Properties ("maximum"). (Value, 'AutoAdj') @.

    I think that this solves the problem I had.  I'm trying to find my way to the top of the learning curve of using the report feature to automate the summary of my analysis and data.  Report is an EXTREMELY powerful tool, but the coding is a little awkward for a new user.  Can you recommend resources for a beginner to report?

    Thank you

    Steve

  • Calculations using values in the channels

    Is there a way to make simple calculations (addition/subtraction) of single values selected channels?   New user DIAdem, so I'm not at all familiar with the scripts.  Looks like it should be a simple command, and I'm right on it.

    Thank you

    Shannon

    Hello Shannon,.

    It seems to me that you do not want to add two or more 'cells' (to use the jargon of Excel) together.

    DIAdem manages data such as channels, not individual cells. If the approach to add two cells in DIAdem works like this:

    The variable SMC allows you to access a 'cell' in a channel, using the following sequence parameters:

    ChD (X, Y)

    where X is the line number of the table of channel, and Y is the name of the channel (column) or the number of the cell you want to access.

    For example, this expression here calculates the result of adding the value of line 2 of the channel called "Temperature_1" and the channel called "Temperature_2" of the example data set that takes over at the start of tiara. In this case, R1 is a real internal DIAdem variable that stores a single value.

    R1 = SEC (2, Ch("[4]/Temperature_1")) + SMC (2, Ch("[4]/Temperature_2"))

    The calculation above can be entered in the "Calculator" which is available in MODE of DIAdem and DIAdem analysis in the toolbar.

    I hope it's useful, please let us know if you have additional questions.

    Otmar

  • inverted waveform channel values

    Hello world

    Anyone know how I can reverse the values of a tiara waveform channel? (practically activates the function of inverse matrix 1 d of Labview).

    See you soon

    Hi Saloutios,

    So let's say your channel signals departure has waveform properties that define the X axis range from 0 up to 0.999 with a stage with 0.001, for a total of 1000 values.  You ask how to redefine the properties of waveform so that the x-axis instead starts to 0.999 and goes down to 0 with-0,001 step width?  If that's what you want, just redefine the properties of waveform like this:

    Adjust the strings = Data.Root.ChannelGroups (1). Channels (3)
    StartValue = Channel.Properties ("wf_start_offset"). Value
    Increment = Channel.Properties ("wf_increment"). Value
    Length = Channel.Properties ("length"). Value
    EndValue = StartValue + (Length-1) * Increment
    Channel.Properties ("wf_start_offset"). Value = EndValue
    Channel.Properties ("wf_increment"). Value = - Increment

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Generate a list of channels

    I want to programmatically create a list of appropriate channels to pass to a function such as DataBlDel(), which requires that the channels to be passed as a list of strings, which is a string. I don't want to build the string of concatinating a hack like that seems to be terrible!

    I found the ChnStrToChnList() and ChnListToChnStr() functions. These functions require a list of strings like "...". a list of strings as a vector in the scripting environment. How I bild by this program or is this still what I have to do? -the help file is also useful as a hole in the head!

    Hi St3ve,

    For DIAdem 11.1 and later versions, the DataBlCopy() function accepts indeed a Collection of channel as its first FastInventory, like this:

    Call the DataBlDel (Data.Root.ChannelGroups (1).) Roads, 1, 100)

    For older versions of DIAdem, you can build the ChnStr variable like this:

    ChnStr = «»
    FOR each channel in Data.Root.ChannelGroups (1). Channels
    ChnStr = ChnStrAdd (ChnStr, Channel.Properties("Number"). Value)
    NEXT "channel
    Call DataBlDel (ChnStr, 1, 100)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Table Vision Builder & features of the calculator

    Hello

    I have a question about VBAI. I couldn't find these features in the software and I couldn't be sure if the software did these features or not. So, I just wanted to ask here, and if these features do not exist, I'll post to the exchange of ideas of Vision.

    -When I'm on tables in VBAI, on the stage of the calculator, I don't see the results of all computations of element tab measures. Only a few of them are visible, and there is no way to scroll left and right to see the other.

    Also, when I try to use these results table on the custom recovery stage, I can only use them as a whole, without any choice of format string.

    Are there other ways to do this or not?

    I see the same behavior on my end with digital pictures. I want to play with it some more, but I will probably be filling a CAR for that.

    To work around the problem, you can convert the digital table in an array of strings. It seems that tables of channels is displayed correctly the decimal parts after the conversion. I suggest using the fractional string function number, located in the String-> String Conversion/number. This will allow you to input a table 1 d of slna and specify the precision.

  • Numberic channel using Dict.Add text conversion

    I have several channels that have a text value for them and I used a Dict.add function to change the values of a number so it can be traced linearly.  However, I had to create a separate for each channel in the set data function.  I want to generalize it more so it will come out and watch an all channels and compare the values of the dictionary already created.  I have attached a sample form of how I currently do not change and I played with a new form called TxtToNum.vbs which is more widespread.  I have 6 dictionary that I use in total as well so who plays in the task.   I do a lot of work of script and could really use it little assistance.

    Thanks - J

    The following should do what you want:

    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ' Digital channel text
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    If programrevision then > 1129
    Channel Dim, State, Dict3, t, TXT1
    IF Data.Root.ChannelGroups (1). Channels.Count > 0 THEN
    FOR each channel in Data.Root.ChannelGroups (1). Channels

    IF Trim (UCase (Channel.Properties("DisplayType"). (Value)) = 'TEXT' THEN
    Call ConvertTxtToNum (Channel)
    Call ValChn (Channel)
    END IF

    NEXT "channel
    END IF ' Any channels at all
    END IF ' Version of program

    Function ConvertTxtToNum (Channel)

    Call Channel.ChannelGroup.Activate
    for t = 1 to Channel.Size
    IF Dict3.Exists (ChT (t, Channel.Name)) THEN ' compares the value in the value chain in the dictionary
    ChT (t, Channel.Name) = Dict3.Item (ChT (t, Channel.Name)) ' changes the key of the element in the dictionary
    On the other
    ChT (t, Channel.Name) = '0 '.
    end if ' dict3
    next

    End Function ' ConvertTxtToNum()

    Function ValChn (oChannel)
    Dim sgCmd
    Dim ChnNumber: ChnNumber = oChannel.Properties ("number"). Value
    sgCmd = 'ch(""#1"") = Val (ch(""#1"")).
    sgCmd = Replace (sgCmd, "#1", oChannel.GetReference (eRefTypeIndexName))
    Calculate (sgCmd)
    End Function

  • Properties 'speed-boosting.

    LabVIEW 2013 (old road)

    Tiara 2012 (complete noob)

    According to the help:

    So, I made my code write all four of these properties for all channels:

    I am not able to measure the load time, so to see if it worked, I put the 'Maximum' property to TWICE the real maximum, as noted above.

    The PDM VIEWER, integrated into LabVIEW, comes the double value of the property.

    Imagine my surprise when tiara shows the maximum real:

    If I use the name "Number2" in the code, then TDMS Viewer is no different (with the exception of that name), but DIAdem and then shows me a property called 'Number2' with a value of 2.0 (that I wrote) and a property called 'maximum' with a value of 1.0.

    If he will calculate the maximum value anyway, why bother with the definition of the property and how that speed up something?

    What Miss me?

    Hey Steve,

    I noticed a typing mistake in your value for the monotony property ("not monitone"). Given that this is not a valid value, DIAdem will calculate all 4 of the channel properties. ( White paper: all 4 properties must exist and be filled with valid values.)

    Adjust the value for "Not boring" instead, and it should calculate are more property values.

    Happy Thanksgiving!

  • problem by creating a virtual traditional NI-DAQ channel

    Hello friends,

    in fact I change computer daq to a machine, but for now I have problems when I try to create a virtual channel.

    I see the jury on the devices and interfaces but when I fill in the parameters of the analog track exactly in step giving the ports, and the channel of material not appear anything and when I finished the configuration in the virtual channel properties appears invalid configuration and there I can't select anything in the hardware channels.

    I don't know what is happening?

    I installed labview 2009 Windows 7 with MAX 5.0 and NI DAQ 9.4

    Please help me or ideas on the...

    Thank you...

    You change os or change at DAQmx. Traditional DAQ has been made obsolete when DAQmx was introduced with LabVIEW 7. If your card is one of the old cards that didn't is not supported by DAQmx, then Yes, you would also have to replace one if you stayed with windows 7.

Maybe you are looking for