DisplayName property

Hello

A small question about the properties...

(1) I noticed that if I add a property with the name 'Unit' in LabVIEW to a TDMS file I can't delete it in tiara. It seems that it confuses it with the reservation of title "unit_string" (which has the 'Unit' DisplayName property) - I think it is a bug and not the intended behavior?

(2) why is the property of "DisplayName" of a custom property is read-only?

Kind regards

Steve.

Hi St3ve,

If you go create TDMS files in LabVIEW and view them in DIAdem, THANKS to write unit information to the property 'Unit_String' using "TDMS property Set.vi" LabVIEW - this will avoid any confusion and frustration.

It looks like the behavior of a 'Unit' property in the data portal is buggy since the handling in version 11.0 DIAdem unit, I had not noticed this before.  What version of DIAdem do you use?  The message box talk not being is not able to deal with information of the unit with the property 'Unit' seems intentional, but you should be able to delete the property interactively, which fails in tiara 2011.

You can use the TOC header object to remove the unwanted a TDM file property, but as the so-called Yongqing TDMS file format does not support delete a property, making it much more difficult that you can't remove it from the data portal.  You can save the TDMS file in a TOC file, remove the unit, then save it to a TDMS file...

Set TdmHdrObj = DataFileHeaderAccess ("C:\Example.tdm", "CT", False)

Call TdmHdrObj.ChnPropDel ("[1] / [1] ', 'Unit'")

Call TdmHdrObj.Save

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

  • PowerCLI script to update SCSI LUN DisplayName

    Hello

    I'm looking for the powercli command to use to be able to change the display name for the (storage) devices based on the canonical name (naa.*).

    I have a script that allows you to capture the DisplayName of the device and CanonicalName configured for a devices using vCenter, but I wasn't able to write a new DisplayName for devices using PowerCli.

    When we use vCenter to update the DisplayName property of devices, an order of "Update unit logic SCSI display name number" is displayed.

    I'm looking for a way to use PowerCli for updating this DisplayName in the same way that we do manually in vCenter, based on the devices for example CanonicalName.

    I have hundreds of devices to rename and need a script to do this.

    Thank you in advance for your help.

    Stephan Olczak

    Of course, I found that the master of the masters, Luc D, already posted the correct script in 2010 (thread 261045).

    Topic closed.

  • SCSI LUN DisplayName update

    Hey people,

    I'm trying to to bulk update (data warehouses and RDM) scsi LUN names that attended my ESXi cluster.  I can get the information I need using the following (the example lists a unique device based on the canonical name of filtering):

    $esxName = 'myserver.mydomain.com '.

    $esx = get-VMHost $esxName | Get-View

    $scsiLun = $esx. Config.StorageDevice.ScsiLun | where {$_.} {LunType - eq 'disc' - AND $_.canonicalName.substring (32) - eq "3000"}

    Write-Host $scsiLun.CanonicalName $scsiLun.DisplayName

    I want to update the DisplayName property.  I tried $scsiLun.Set_DisplayName ("test"), but it does not apply correctly.

    Does anyone have any suggestions?

    See you soon!

    I put myself up against by the script in your first post.

    It is not the CanonicalName you want to change, but the DisplayName property.

    Since you mentioned that you did via vSphere client, I realized what you were trying to do.

    Yes, this can be done.

    Use something like this

    $esxName = 
    $esx = Get-VMHost $esxName | Get-View
    $storSys = Get-View $esx.ConfigManager.StorageSystem
    $esx.Config.StorageDevice.ScsiLun | where {$_.LunType -eq "disk"} | %{
         $storSys.UpdateScsiLunDisplayName($_.Uuid, $_.DisplayName + " test")
    }
    

    This script only adds the suffix 'test' to the existing value.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • error windows\ebodemaw.dll

    After starting I get errorloadingc:\windows\ebodemaw.dll

    Hello

    This looks like remaining associated malware (probably Trojan.Hiloti variant) in the run key of your registry charged through rundll32.exe
    You can manually disable it via msconfig > Startup tab. In the list, you should find a reference pointing to the ebodemaw.dll file. The displayname property is also random. Just uncheck that one, so there will be no more startup with windows.
    Or you can delete this value in the registry under the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key. Normally, it should be there - otherwise, it is under the HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key, but since I suspect a Variant Hiloti rest here, it should be under HKLM.

    But I suggest instead of using msconfig here rather as tinkering with the registry is always a risk.

    What in any event, the actual file (ebodemaw.dll) is already gone, otherwise you would not get this error after startup. So it's just an orphan entry in the registry causes the error.

    I hope this helps.

  • Windows Defender error 126: the specified module could not be found

    How to fix Windows Defender on Windows 7?

    For some time now, Windows Defender no longer works. I can't install new updates of definition and the service cannot be started. If I try to manually start the Windows Defender service, there is an error message:

    "Error 126: the specified module could not be found.

    However, I can launch the GUI of C:\Program Files\Windows Defender Defender. However, I tried to download the Windows Defender from Microsoft, but the installer launches because it is said that Defender is already part of Windows 7 x 64.

    I'm really looking for a way to get Windows Defender to rework.

    First of all, it's what I already know and what I don't want:

    • I don't want to disable Windows defender, I want to make it work again
    • I have no antivirus uninstalled or disabled Windows Defender software, the module really seems to be corrupted (I am software engineer)
    • I don't want to reinstall Windows or use the backup, because I don't know how far I have to go back
    • Windows Defender can be removed from the menu of functions and software, because it is part of the operating system
    • I do not have MSE installed, tried to install it, haven't changed a thing

    Any solution to solve this is appreciated. Advanced solutions (Registry hacks, enveloping, manual installs, work...) Welcome!

    Kind regards

    Florian

    I was able to fix this on my own. It seems that the registry has been damaged (as I thought).

    Changed the DisplayName property is property in the register of "Windows Defender" to "@%ProgramFiles%\\Windows Defender\\MsMpRes.dll,-103" which in reality should not be the cause of the problem, however, the DisplayName property original of the resource file.

    ServiceDll property have been replaced in the registry of
     
    hex (2): 25, 50, 00, 00, 6f 72, 00, 00, 67, 00, 72, 00, 61, 00, 6 d, 00, 00, 46, 69,--------.
    00, 6 c, 00, 65, 00, 73, 00, 25, 00, 5 c, 00, 00, 69, 57, 00, 6F, 00, 64, 00, 6f, 00, 00, 73, 77, 00,------.
    20,00,44,00,65,00,66,00,65,00, 6F, 00, 64, 00, 65, 00, 72, 00, 5 C, 00, 6 D, 00, 00, 70, 73,------.
    00,76,00,63,00, 2nd, 00, 64, 00, 6 c, 00, 6 c, 00, 00, 00

    TO

    hex (2): 25, 50, 00, 00, 6f 72, 00, 00, 67, 00, 72, 00, 61, 00, 6 d, 00, 00, 46, 69,--------.
    00, 6 C, 00, 65, 00, 73, 00, 28, 00, 78, 00, 38, 00, 36, 00, 29, 00, 25, 00, 5 C 00, 57, 00, 69, 00,------.
    6th, 00, 64, 00, 6f, 00, 77, 00, 73, 00, 20, 00, 44, 00, 65, 00, 00, 65, 66, 00, 6F, 00, 00, 64, 65,.
    00,72,00, 5 c, 00, 6 d, 00, 70, 00, 73, 00, 76, 00, 63, 00, 2nd, 00, 64, 00, 6 c, 00, 6 c, 00, 00, 00

    in fact, which solves the problem. WIndows Defender is now in service yet. Updates can also be installed again.

  • Sort of a listfield

    Hello..

    I display a listfield of names in the address book...

    I use vector for holding data from address book...

    Vector objects contains the following data...

    Title

    First name

    Family name

    Contact No.

    I'm adding contacts to the listfield. but I want that they sorted according to the displayname property that contains the title, first name and family name...

    Please suggest...

    Thank you

    He provided no method of sorting a ListField.

    You can sort the vector yourself or use one of the classes that can be sorted.

    Generally, I sort myself, that you can then give your users the ability to change the type - for example, you might want to sort your vector by the first or last name.

    When sorting of the channels, I recommend that the String.compareTo (.) or StringUtilities.compareToIgnoreCase (.)

  • How to find "program last used date" W7 - works on XP & Vista

    Works in XP & Vista

    Used to be able to say when the last used program on in programs and features, and if it were not needed, I uninstalled the program.

    Added "last used on" field in "Control Panel, all the elements of Control Panel, program and feature, uninstall or change a program".

    Field never fills, some in W7 features must be turned on the fact?

    Is there another place to find the answer?

    If the program does not provide this information itself, add/remove programs is forced to guess.

    The problem is that there is no "obvious" way to map an entry in the Add/Remove Programs list on a real program. Each entry in the list, for those who are interested in these things, HKEY_LOCAL_MACHINE
    \Software
      \Microsoft
       \Windows
        \CurrentVersion
         \Uninstall
          \{ProductCode}
    . Required properties only for an installable program are the DisplayName property and the UninstallPath. Everything else is optional.

    http://blogs.msdn.com/b/oldnewthing/Archive/2004/07/09/178342.aspx

    -Raymond Chen [MSFT]-

    Windows confidential - the legend of uninstallation

    http://TechNet.Microsoft.com/en-us/magazine/gg558108.aspx

    "If the application does not record the information, Windows keeps the blank column.

  • PowerCLI to change vm and its file names

    Hi all

    For 100 VMS, I need to change the inventory of vm name and its file names (vmx, vmdk, etc.) to another name.

    Could you please help to create a script that retrieves the entries to a file (existing name and new name for it) and it changes automatically.

    The easiest way is to rename the DisplayName property of the virtual machine with Set-VM.

    Then do a svMotion, which will rename all of the files for the DisplayName property.

    But, you will need space for moving VMs around, and a svMotion could take some time to complete.

    That's what I meant when I asked if you could use svMotion.

  • VM not found

    We are unable to find a VM on VC but when I run rvtools I saw on databases, the vmx files

    How best practices of procedure.

    How do you know the history of this virtual machine

    You can also open the vmx file and look for the field "displayName." The displayName property may be different from the name of the vmx file. If this is the case, this will be the name of the virtual machine, you will see in the CR.

  • Import the image in FLEX

    I'm testing Horizon FLEX, but I have problems to import an image. I followed the steps of creating a virtual machine with VMware Fusion Pro. Encrypted virtual machine, restrictions, type of restriction enabled = managed and registered Management Server (mirage).

    When I select the vmx file to download, I get the message that this is an invalid image. What can I do it wrong?

    This fix worked for me:

    -Open the .vmx in a text editor.

    -Implement "displayname" "displayName."

    -Save the .vmx

    -import the .vmx in FLEX administration console.

    It is in the release notes:

    • The Horizon FLEX server cannot handle the full virtual machine name defined in the .vmx for a virtual machine if the displayName property is not what she expected.
      Solution: Edit the .vmx for the virtual machine so that the N displayName is uppercase and all other letters are lower case.
  • Result of the SQL action in a non String table presentation

    Hi all

    I have a simple action with a SQL queries where I get a table as a result and which I use in a couple of the workflow.

    What I need now is also an action with a SQL query, but that the result is a required string that I can set as "Default" in the presentation of the workflow.

    Here is the action that I already have a table/string result

    database is of Type SQL: Database entry

    table is of Type SQL table

    var currentUsersVMs = new Array();

    Get the displayName property of the workflow Starter

    try {}

    jdbcConnection var = new JDBCConnection();

    var connection = jdbcConnection.getConnection (database.connectionURL, database.username, database.password);

    System.Debug ("... successful login");

    var selectStatement = connection.createStatement ();

    settle with your column names to get a string like

    SELECT 'Server Name' IN 'yourTable' WHERE 'user' = 'Karl Mustermann '.

    var selectString = "sΘlectionner SRV_Name from dbo. "VC_Info_All where POWERSTATE = 'On' ORDER BY SRV_NAME."

    System.Debug ("request for enforcement:" + selectString);

    resultSet var = selectStatement.executeQuery (selectString);

    Depending on whether you expect users with no VM

    If (! resultSet) throw ' no line not found in table ' "+ table.name +" ' ";

    While (resultSet.next ()) {}

    columns resultSet starts a 1!

    currentUsersVMs.push (resultSet.getStringAt (1));

    }

    } catch (exception) {}

    throw "error reading database:"+ exception; ".

    } {Finally

    try {if (resultSet! = null) () resultSet.close ;} catch (e) {};}

    try {if (instructionselect! = null) selectStatement.close () ;} catch (e) {};}

    try {if (connection! = null) Connection.Close ;} catch (e) {};}

    }

    System.Debug ("VMs for the current user:" + currentUsersVMs);

    Action:

    Return currentUsersVMs;

    So, I already have the solution for this action.

  • Cloning into a subfolder of the data store

    I have a powershell script that creates daily snapshots and clones on Sunday.  I would like to have clones stored in a subfolder on a NFS share.  I can't figure out how to set the data store in a subfolder like "NFS_NAS_SHARED\CLONES".  The following code fails indicating "'NFS_NAS_SHARED\CLONES' is not found, using the specified filters."  Is it possible to have the destination clone as a subfolder of a data store?

    Start-Transcript-Path "C:\VMWare_Scripts\LOGS\SnapshotsTranscript.log".

    #Get the VMware PowerCLI
    Add-pssnapin VMware.VimAutomation.Core - ErrorAction SilentlyContinue

    # Import the backup information
    #File layout: MasterVM (vmname), BackupDS (DS to store clone), BackupFolder

    #$backupinfo = import-Csv C:\VMWare_Scripts\Snapshot_backups.csv
    $backupinfo = import-Csv C:\VMWare_Scripts\Snapshot_backups_TESTING.csv

    Date format #Set to name
    $datetime = get-Date-Format "YYYYMMDD-hh: mm".
    $date = get-Date-Format "YYYYMMDD".

    #Connect to vCenter
    SE connect-VIServer "localhost".

    #Get the day of the week
    switch ((get-date).dayofweek.toString ())
    {
    Sunday {$dow = "SUN"; break}
    Monday {$dow = 'MY'; break}
    Tuesday {$dow = "KILL"; break}
    Wednesday {$dow = "WED"; break}
    Thursday {$dow = "THU"; break}
    Friday {$dow = "FRI"; break}
    }

    {foreach ($customer to $backupinfo)

    $vm is get - VM $customer. MasterVM
    $days = $customer. DaysToKeep

    Write-Host $vm. Name
    #Write - Host $days

    #Delete snaps more $days
    Get - VM $vm | Get-Snapshot | Where {$_.} Created - lt ((Get-Date).) AddDays(-$days))} | Remove-Snapshot - confirm: $false

    If ($dow - eq 'MY') {}
    #Create a clone

    #Create a new snapshot for cloning
    $cloneSnap = $vm | New-Snapshot - name "clone_snap" - suspend: $true

    # Get the managed object display
    $vmView = $vm | Get-View

    # Get the managed folder object reference
    $cloneFolder = $vmView.parent

    # Construction specification clone
    $cloneSpec = new-object Vmware.Vim.VirtualMachineCloneSpec
    $cloneSpec.Snapshot = $vmView.Snapshot.CurrentSnapshot
    $cloneSpec.Location = new-object Vmware.Vim.VirtualMachineRelocateSpec

    #set the destination clone
    $backupDestination = $customer. BackupDS + $customer. BackupFolder
    $cloneSpec.Location.Datastore = (get-Datastore-name $backupDestination |) Get - View). MoRef
    $cloneSpec.Location.Transform = [Vmware.Vim.VirtualMachineRelocateTransformation]: sparse

    $cloneName = "$vm - $datetime".

    # Create clone
    $vmView.CloneVM ($cloneFolder, $cloneName, $cloneSpec)

    # Write newly created VM to stdout as confirmation
    Get - VM $cloneName

    # Remove snapshot created for clone
    Get-Snapshot - VM (Get - VM $customer. MasterVM) - name $cloneSnap | Remove-Snapshot - confirm: $False


    }
    else {}
    #Take a snapshot
    New-Snapshot - name $datetime - description "scripted Snap: Snapshots.ps1" - vm $vm - suspend: $true
    }

    }

    VCenter #Disconnect
    Disconnect-VIServer-confirm: $false

    Stop-Transcript

    I'm afraid that the CloneVM_Task method you cannot specify subfolders on a data store.

    He wants a data store and use the displayname property of the virtual machine to create a folder on this data store.

    If you clone a computer virtual called XYZ to the store of data DS1, the clone will be located in the "[DS1] XYZ" folder.

    If you want to move the clone to a different folder, you can use the cmdlet Copy-DatastoreItem thereafter.

  • PowerCLI Invoke-VMScript re - ip guest - how to get the variable hostname comments

    I run the following script as a task Post-Power-we a re - ip our VMs after that MRS. them rocking.  I was able to run this script successfully without the variable hostname of comments (in the test, he runs a script by test VM with the hostname assigned...), but I'm stumped on how to get comments variablized according to the machine's host name works on, it will take the host name and use it in the GuestUser variable and the command - VM.  I tried the bold part, but it does not work.

    $srv = Connect-VIServer 10.0.0.10 - administrator of the username-password password

    $Hostname = (get-wmiobject win32_computersystem). Name

    $script = "%windir%\system32\cmd.exe/c c:\dr\drIPsettings.bat".

    $HostUser = "root".

    $HostPassword = "password"

    $GuestUser = ' $Hostname\Administrator '.

    $GuestPassword = "password"

    $ScriptType = "bat".

    SE connect-VIServer 10.0.0.10 - Session $srv. SessionID

    Invoke-VMScript - ScriptText $script - VM $Hostname - HostUser $HostUser - HostPassword $HostPassword - GuestUser $GuestUser - GuestPassword $GuestPassword - ScriptType $ScriptType

    Thank you!

    How you code the - VM on the Invoke-VMScript cmdlet parameter, it seems that Displayname of the guest is the same as the host name.

    Can't you just use a loop on guests and then use the displayname property

    $script = "%windir%\system32\cmd.exe /c c:\dr\drIPsettings.bat"
    $HostUser = "root"
    $HostPassword = "password"
    $GuestPassword = "password"
    $ScriptType = "bat"
    
    Get-VM | %{
       $GuestUser = $_.Name + "\Administrator"
       Invoke-VMScript -ScriptText $script -VM $_ -HostUser $HostUser -HostPassword $HostPassword -GuestUser $GuestUser -GuestPassword $GuestPassword -ScriptType $ScriptType
    }
    

    You can encode the Get - VM with more specific selection criteria or use a Where-Object after the Get - VM.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Script to export information about LUNS - try to iron out the kinks

    I have a script which aims to export the details on the LUN information for the ESX hosts in a particular place. Here's the syntax:

    Report_LUN_Details_Location.ps1 where is introduced in the - position inside the script parameter. The script returns the content in c:\temp in the CSV format. Most of it works, but I have a problem with the path information access which to correctly report. Also, there are errors during execution of the script, but that does not affect the result. There also a few custom fields to communicate their data from EMC Symmetrix devices. Advice on how to improve/correct the script would be more appreciated.

    Thank you

    Ed

    The string error you see is the UUID to local disks is shorter than that of the SAN disks.

    Most of the time these local disks have the word "local" in the displayname property.

    If you can filter them by replacing it

         foreach ($Device in $VMHostObj.Config.StorageDevice.SCSILUN | Where-Object {$_.Vendor -ne "VMware"})
    

    by

         foreach ($Device in $VMHostObj.Config.StorageDevice.SCSILUN | Where-Object {$_.Vendor -ne "VMware" -and $_.DisplayName -notmatch "local"})
    

    The empty DevicePath property is due to disk devices.

    If I replaced this line

         foreach ($Device in $VMHostObj.Config.StorageDevice.SCSILUN | Where-Object {$_.Vendor -ne "VMware"})
    

    by this line

         foreach ($Device in $VMHostObj.Config.StorageDevice.SCSILUN | Where-Object {$_.Vendor -ne "VMware" -and $_.LunType -eq "disk"})
    

    This problem has disappeared.

    BTW, why do you test for vendor VMware?

    Is your set up running on a VMware Workstation perhaps?

    The complete script is attached.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • ESX possible powerdown of VIMA?

    OK, since your very helpful responses yesterday (http://communities.vmware.com/message/1252435#1252435), my colleague and I have installed VIMA on our server. VMware Infrastructure Client is open and localhost.localdomain, I can start and stop VIMA and a Machine virtual Linux Fedora 8.

    We also tested software from Tripp Lite PowerAlert Local (PAL) installed to VIMA, using an internal release candidate. The inverter I have connected right now is just connected via the serial port only on the unit. My VMware Infrastructure Client does not give me the option to add a USB to VIMA, so I can't connect a UPS in this way. Monday or Tuesday, we'll probably also test our power alert Shutdown Agent + SNMP Webcard combination as well. Is there a good reason why users will not want to consider plugging an inverter via the connection in series on the server?

    I added William Lam on VIMA scripts, and I'm under the upsVIShutdown.pl of the command line. It works at the first stop, my Linux Fedora 8 VM and then my VIMA, but the area of the ESX Server is never extinguished. Should I wait that the ESX Server will shut down when the script is run from VIMA? Scripts are usually installed on the ESX console or VIMA? I guess I'm missing something about the whole box of VIMA turned off after that virtual machines are off safely.

    Thank you

    Xochitl Lunde-Monzón

    Tripp Lite Software Engineer

    So, it seems you have still some problems resolution with the displayname property of the so-called really your VM VIMA.

    First of all, lets check the host or / IP you added your_ESXi_ host in VIMA, you can check by doing the following:

    [vi-admin@vima ~]$ sudo vifp listservers
    Password:
    himalaya.primp-industries.com
    

    You should get back your ESXi host, now if you do, I want that you do the following:

    [vi-admin@vima ~]$ vifpinit himalaya.primp-industries.com
    

    again, replace everything that was of the first command to see if vifpinit run and make sure that no error occurs. If it's good so far, then I want you to run the following command:

     /usr/lib/vmware-viperl/apps/vm/vminfo.pl --server himalaya.primp-industries.com | grep Name
    

    This will display the VM (s) currently residing on your ESXi host and provide you with the displayName, which is the same name you'd see in the VI Client.

    I suspect that you have just a bad reputation somewhere on what you think, is the real name which is actually stored.

    You can also correct the problem where the host is "localhost" by going to configuration of the host-> DNS and routing and make sure that all the information is configured correctly

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

Maybe you are looking for