How do I script in DIAdem to include specific lines of code (similar to .ini in LabVIEW files) based on the computer/user?

I took Basic training courses so DIAdem Advanced and have been scripting for several months.  I am interested in how to include specific lines of code based on the computer.  Told me it would be similar to .ini in LabVIEW files, although I've never used myself .ini files.

Hi Karen,.

What do you mean by "includes the lines of code?  Do you mean what happens when you run a command 'ScriptInclude()' or 'ScriptCmdAdd()' in a tiara VBScript?  Or do you mean that you want to run several lines as DIAdem begins, similar to 'ScriptStart() '?

What do you mean by "computer-based?  Do you mean you want to implement different batch files on different computers, but you are still using the same file (named) command on each target computer?  Or do you mean that you want to implement the same command on all target computers file, but you want different commands to run this file based on the computer on which you are.  In the latter case, how do you determine computer on which you are on - MAC address, logged in user name, or what?

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

  • PowerShell script to delete files based on the current Date

    I know using PowerShell Get-Date will look at the current date.  I would like to make a very basic PS Script that will remove a file over 8 days based on the current date.  According to me, with the help of a if/then the function will be necessary.  I am very new to scripting if Im not sure how the syntax is written.  Any help is appreciated.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • How to decide which updates to accept? Is there a way to uninstall an update if it turns off the computer?

    Windows 7 updated 1 week ago disabled certain functions.  Could not get the printer to work until I had spent more than a half-hour in line with HP technical support.   He has kindly changed my settings so that updates do not load automatically.  Now have the message there is new update.  How decide whether or not it is safe to accept it?  If it screws to the top of the computer, can I uninstall it?  Should I just ignore the updates and keep the computer that works not changed?  I am a 70 year old doctor and do not spend days trying to fix the problems with this computer.

    Hi lagodasailing,

    I understand that you would like to know how to find out if it is safe to install an update or not and if there is an option to uninstall or cancel the installation of this particular update when they create a mess in your computer.

    First of all, I recommend you to continue the installation of any Windows Update, you are prompted to install. Windows updates are developed to close open ports, where a malicious user could get in your computer system.

    If an unlikely result occurs after you install the update, you can perform system restore to return the system to its previous working state back. If it is not-so-good result is caused of the newly installed updates more than 1, it is recommended to try to install the updates one at a time to separate or to know that it really caused the problem and after that the results back here so we could help more you or give you advice.

    To run under Vista/Windows 7 system restore: http://windows.microsoft.com/en-us/windows-vista/What-is-System-Restore

    If this post can help solve your problem, please click "Propose as answer" If you find it useful, mark it as useful by clicking the 'Vote as useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to export contacts (not addresses) from 650 to Mac address book?... .get photos out in the computer expansion card?

    I have a lot of contacts in my Treo650. I would like to export these to the address book of my Mac to switch to an iphone. There was no information on Palm contacts right on Palm addresses. Even if I sync my Treo with the pal Office successfully, there are 0 addresses on Palm desktop to export even though I have hundreds of contacts? I don't see a way to convert contacts to Plam desktop addresses. I could not find contacts on Palm desktop. I would appreciate your help. Jpertsch

    How to make pictures out of 1.0 GB and my Mac computer expansion card? Thanks Jpertsch

    Its ask me who found the answer:

    When the Palm Desktop window opens on the computer, in the upper R corner is an option for 'user '. Don't forget to specify yourself as the user! The default user is not automatically you. Once I made a selection of the user all contacts were there in the address section ready to be exported as a vCard to the Office so that I can then import in Mac "address book".

    I called Palm support 1-877-426-3777. Since I had a support Sprint Treo is in a Sprint. To directly call the Sprint: 800-974-2221 I stumbled on the issue of the 'user' waiting to phone support.

    Jpertsch

    Message is about: Treo 650 (Sprint)

  • How to sort the files transferred to the computer

    * Original title: file transfer

    I have files that have names dates in them viz ' 1986 April 1986 may "etc and I have 3000 on my computer in order of date name but when I copy the file to transfer files on an another compluter resort themselves to Aprils all together can all June etc.  Is there a way I can copy the files, but keep them in the same order?

    Hi Anthony,.

    I will definitely help you with this.

    I suggest you to refer to the advice given by Divya R 19 January 2011 and check if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-files/how-to-sorting-and-grouping-files-in-Windows/2f2e08c0-587c-47b1-94a1-1779a91090f7

    If the problem persists or you have any other questions, do not hesitate to let us know. It is our pleasure to be of service.

    Thank you.

  • How to connect, based on the previous user name connection?

    I have 2 usernames in Windows 7 family?

    User 1) NY

    User 2) Tokyo

    I connect using NY username and logout, then login using the username of Tokyo and reboot window 7 Home, it connections using NY instead of the previous Tokyo connection.

    Anyone have any suggestions on how to set the default connection based on a previous connection in Windows 7 Home?

    Thanks in advance for your suggestions

    I don't think that this option exists in Windows 7.

  • How to download file based on the URL and save it as BLOB in db

    Hello

    How can there be a file (image, pdf file,...) which is accessible by the URL that is stored as a BLOB object in a table?

    For example:

    procedure saveFileToDbasBlob (p_file_url varchar2) is

    Start

    -- 1. get a folder by accessing a URL

    -- 2. Save it as BLOB in a database table

    -- 3. Save it in a DIRECTORY on the server

    end;

    /

    Thanks much for the advice.

    Tomas

    Example:

    SQL> var doc CLOB
    SQL>
    SQL> begin
      2          :doc := httpuritype( 'http://my-server.my-domain.com' ).GetClob();
      3  end;
      4  /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> print doc
    
    DOC
    --------------------------------------------------------------------------------
    
    

    If a proxy should be used, call UTL_HTTP. Set_Proxy().

  • How wait animate() is finished and then execute a line of code?

    Thus, for example, I want to make a brief animation and then open a web page...

    in the click event of the instance of a symbol:

    SYM. $(e.target) .parent () .animate ({opacity: 1}, 1500);    or play the timeline of a symbol

    sym.getComposition () .getStage () .jumpToWebPage ("http://en.Wikipedia.org/wiki/i" "");

    How should I wait for the animation finish before going to the web page?

    Try this, this is the best way:

    SYM. $(e.target) .parent () .animate ({opacity: 1}, 1500, function() {})

    sym.getComposition () .getStage () .jumpToWebPage ("http://en.wikipedia.org");

    });

    });

    Zaxist

  • How do you install a regular mouse wireless - mouse-no, I want to install is not wireless, but plugs into the computer

    Can Hiow I install a plugin of the mouse.

    A standard USB mouse is supported natively by Windows itself and requires no driver work.

    Simply plug waiting for 30 to 45 seconds, and it should work. This should work even for the wireless mouse.

  • How can I remove the "Noge" of the computer user?

    Original title: Noge user

    Hello

    My computer is controlled by a user called "Noge", and makes me print documents that are not mine. The folder of the user is always placed in the folder users on the C:\ drive and it cannot be deleted. When I print a document the computer also prints the copy of the document called a new Microsoft Office Word Document created under the folder of Noge in disk C.

    Can someone help me? This is the second time my own Launcher Progam Windows detects the problem, which means a virus or a person who is called Noge is controlling my system. I created this tool to be used to luanch most of the Windows administrative tools primarily by system administrators.

    Please help me soon on Noge.

    OK, here is what your report tells me:

    • Logged in under your own account (A.B.)
    • Your profile folder is C:\Users\A.B.
    • You finally connected to 16:24
    • Your account is an administrator account.
    • Noge user finally connected at 16:14
    • His account is an administrator account.
    The strange thing is that the password for the account of Noge was exactly as the opening of session took place, in the second. This suggests that the account is used by an automatic process. If it is legitimate or not, I can't say. I now do this:
    1. Create a Windows restore point.
    2. Burn a CD of Windows repair.
    3. Use the CD to repair to start the machine in Repair Mode, then check whether you can see the Windows restore point, you created in step 1.
    4. Click the start planet.
    5. Type the three letters cmd into the search box.
    6. Press Ctrl + Shift + Enter
    7. Click on "Run as Administrator".
    8. Type the following commands and press ENTER after each:
      NET user Noge / active: No.
      (to disable the account of Noge)
      NET user Noge
      (to check if the account is disabled really)
    9. Reboot the computer.
    10. Re-issue the net use Noge command to make sure that the account is always disabled.
    11. Repeat step 10 at regular intervals.
    12. Communicate the results here.
    If step 8 has the unexpected side effect of making bootable machine then you can use step 3 to restore it to its previous state.
    Note: steps 1-3 are important!
    Also note that running a machine with one admin account is a way very risky to do things. If you have only one small problem with this account, you will be in diabolical trouble.
  • How can I open a pdf file... the computer simply stopped to open, will not restore is

    Have always been able to open attachments.  Don't know why, but now none will open.  I tried several times to restore to an earlier date, but that would not go through

    I think that a file is missing... so it cannot restore.   Thanks for any help, Christine

    If you do not have a PDF reader, you can not open a PDF file. Start by installing this.
     
  • How to convert PDF to PPT automatically? (command line, c# code)

    I need to generate a PPT from a PDF file. I don't know if there's a way to order online.

    If this is not the case, there is a c# code to do?

    Thank you!

    Too bad I think the server product might be easier. You would look at using VB JavaScript bridge we doc.daveAs in the JavaScrupt API I think.

  • How can I make the computer asks for a password before downloading a program?

    How can I make the computer asks for a password before downloading a program?

    Hello

    You can configure the computer to request the password when you install any program using the User Account Control (UAC) on the computer. But you will not be able to make windows to ask password when you try to download and program.

    You can check the link next on change control settings of user account for more information.

    http://Windows.Microsoft.com/en-us/Windows-Vista/your-permission-please-understanding-user-account-control-in-Windows-Vista

    http://Windows.Microsoft.com/en-us/Windows-Vista/how-do-I-change-the-behavior-of-the-user-account-control-message

    You can use any program of third-party download manager in which you can set a password when you download any file/program on the computer. You can use your favorite search engine to find any Download Manager for the browser software.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • How to use data recovery in memory of "D"? The computer did not contain a wrioter of C/D, so I couldn't make a recovery disk.

    How to use data recovery in memory of 'd' (about 10 GB)?

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    Ask your manufacturer of computers for the EXACT method to restore to factory settings.

    This isn't their recovery process, Microsoft.

    See you soon. Mick Murphy - Microsoft partner

  • How to remove the default user in Windows 7

    Some of the original user files became corrupt, in order not to lose all the files, we have created a new user on the same computer.  Now, when we remove the user name and files, original when the computer restarts, we cannot go back... He asks a password with a completely different name we have.  Where and how do I change the system for the new user to the default value and remove the old?  Thank you

    I wrote a longer version of the recommendation that Frederik Long has given you and then deleted because I'm not sure that I fully understand your situation.

    If you can get into Windows, then follow the advice of Frederik long.

    If you are unable to Windows, what do you see when you start the computer?  In other words, don't you see the Welcome screen with one or more of the icons for user accounts?  If there is only one icon and it's a 'completely different' user name this is the old name you deleted?  If not, what is?

    You have a Windows 7 system repair disc or a Windows 7 installation DVD?

Maybe you are looking for