How to use OLE to start a Diadem vbs Script, that starts the Measurement

Hi there,
i try to use OLE to start a Diadem Script that start my measurement. I always get the Error-Message "The Measurement can only be startet in the first instance". How can i make this work? At this time i use DDE to start my Scripts and i want to use OLE to get direct Channel Access and to prevent the lousy dde-timeouts.
IDIACommand = CreateObject("diadem.tocommand")
command="Scriptstart  etc
IDIACommand.CmdExecuteASync(command)
Thanks
Diademi

Hello diademi!
Depending on a registry setting DIAdem will treat the interface creation in two different ways:
Starting always a new instance of DIAdem and connect to this
Start a new DIAdem if there is no DIAdem already running. Then connect to the started or the already running DIAdem
The second mode will be right for your use case. Have a look at the key 'HKEY_CLASSES_ROOT\CLSID\{285E4FB2-F633-11D1-85DC-008048D9A408}\StartParameter' in the registry. The value 'Intancing' defines the behavior. Search the DIAdem help to get the definition (don't use the help index, it is missing there!).
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  

Similar Messages

  • JUst downloaded a rented movie from iTunes but cannot find it to run it!  How do I find a start the movie?

    Just downloaded a rented movie from iTunes but cannot find it to run it!  How do I find a start the movie?

    Check the Videos App.

  • How do I synce my Ipod to a new computer that isnt the one that I originally synced with?

    How do I sync my Ipod to a new computer that isnt the one that I originally synced with?

    - Transfer iTunes purchases to the new computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    - Transfer other music by using a third-party program like on of those discussed here:
    newer copy
    - Connect the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup.
    Note that the iPod backup that iTunes makes does not included synced media like apps and music.

  • How do I see a simlock iphone You can see that on the box

    How do I see a simlock iphone
    You can see that on the box

    No. You can't see that on the box. Don't buy iPhones from unauthorized sources and you won't have a problem.

  • How to use an external start button for 6024E w/ sc-2345, I would like it to function like a start button in LabView but I don't know how to connect the external button to the sc-2345's connector block

    I am confused as to how to connect my external start botton. I would like it to function like a start button on a front panel of a VI. I would like to use the +5V on pin 14 but I really don't know where to go from here. Any guidence for a novice would be most appreciated.

    phod,
    This is the LabVIEW Real-Time forum, so I suggest that in the future that you post this type of question to the Multifunction DAQ forum.
    For the simplest solution you will have to connect your button to a digital line of your board, consult the sc-2345 user manual for a diagram of where these lines are exposed. You will have to connect your start button in series with a line that is high, such as your 5V pin or another digital line. Then connect this to a digital line that will be your start trigger.
    Your program can poll the digital line that is connected to your button in a while loop and when it goes high, it lets the rest of the program execute. For the programming, I suggest you take a look at the shipping examples that come with LabVIEW. If yo
    u have LabVIEW 7.0 go to Help>>Find Examples. Open Hardware Input Output>>Traditional DAQ>>Digital Input and Output>>E Series for some examples of digital I/O programming with E-series boards.
    Hope that gets you started.
    Gerardo

  • How to use OLE Components in Java Application?

    Hi,
    I try to make program that is able to include OLE components( Excel sheet, MS Word document, and so on ), and that can control these components.
    I want to know that Java Application or Applet can control and show OLE components like JavaBeans components. If that, How to ?

    Try this to generate a Word file.....
    import com.jacob.activeX.*;
    import com.jacob.com.*;
    public class ExportDOC {
    public ExportDOC () {
    //Application type
    ActiveXComponent doc = new ActiveXComponent("Word.Application");
    //Application visible
    doc.setProperty("Visible", new Variant(true));
    Object documents = doc.getProperty("Documents").toDispatch();
    //Open a file already exits
    //Object document = Dispatch.call(documents, "Open", "c:/nameFile.doc").toDispatch();
    //Open a new file empty
    Object document = Dispatch.call(documents, "Add", "").toDispatch();
    Object selection = Dispatch.get(doc,"Selection").toDispatch();
    //Text Format
    Object font = Dispatch.get(selection, "Font").toDispatch();
    Object alignment = Dispatch.get(selection, "ParagraphFormat").toDispatch();
    Object image = Dispatch.get(selection, "InLineShapes").toDispatch();
    //I put the selection at the end of the file for if I want to add text
    //Dispatch.call(selection, "EndKey", "6");
    //Text format (bold & italic)
    Dispatch.put(font, "Bold", "1");
    Dispatch.put(font, "Italic", "1");
    //To jump line
    Dispatch.call(selection, "TypeParagraph");
    //Align center (0= left, 1=center, 2=right, 3=justify)
    Dispatch.put(alignment, "Alignment", "1");
    //Insert image
    Dispatch.call(image, "AddPicture", "c:/graf.jpg");
    Dispatch.call(selection, "TypeParagraph");
    Dispatch.put(alignment, "Alignment", "3");
    //Insert Text
    Dispatch.call(selection, "TypeText", "Text ....... ");
    //Original values
    Dispatch.call(selection, "TypeParagraph");
    Dispatch.put(alignment, "Alignment", "0");
    Dispatch.put(font, "Bold", "0");
    Dispatch.put(font, "Italic", "0");
    //To jump page
    //Dispatch.call(select, "InsertBreak");
    //Save the document
    //Dispatch.call(document, "SaveAs", "c:/test.doc");
    //Quit the application
    //dc.invoke("Quit", new Variant[] {});
    public static void main(String[] args) {
    ExportDOC e = new ExportDOC();
    but you must download 'jacob.jar' in....
    http://users.rcn.com/danadler/jacob/
    is a FREEWARE!!!
    regards!!

  • How to use Java Web Start with EJB ?

    hi forum...
    how to use Java WebStart with EJB ?
    examples ?
    thanks...
    mindu

    Mindu,
    WebStart will work with EJB. I use it with WebLogic Server. You have to make sure and deploy the weblogic.jar file - sign it if needed.
    For signing information, look here,
    http://java.sun.com/products/javawebstart/1.2/docs/developersguide.html
    Dan

  • I managed to transfer the music from 1 pc to 1 other pc (to be played by iTunes). Bit didn't fixe the transfer of the meta data (for example the rating). Does anyone know how to use your old playlists, etc..(= meta data) on the other PC? So, please help!

    I managed to transfer the music from 1 pc to 1 other pc (it is played perfectly on the other PC (Windows 7- pc) by the newly downloaded and installed iTunes, version 10.6.1.7). But I didn’t fix the transfer of the meta data (for example the rating). Does anyone know how to use (or import) your old playlists, etc..(= meta data) on the other PC? So, short: how to migrate the meta data from one pc to an other pc?
    It's a pity that it seems not to be possible to import on the new pc e.g. the ratings!!!
    I don't want to start again with rating my (beautiful classical) music!
    Thanks, from Amsterdam, NL

    Did you do the move via Home Sharing, astro?
    If so, perhaps try the instructions from the following post:
    Re: i transfered itunes to my pc playlists did not go

  • I do not know how to use i cloud. or i tunes anymore for that matter. can someone help me?

    I had not updated my Itunes in a while. when i got my mac i updated it to the latest version and i guess i set up i cloud but I have no idea how to use it. i have 1163 songs in my itunes library but they literally only show up some times and others they dont. it says i have all those songs in my music library on my phone but then half of them dont play and i dont understand why? most of my songs have a little cloud next to them like they need to be downloaded but i dont understand????
    I just want all my music on my phone.
    my phone also cant back up to icloud becase there is no storage but i have 3 backups under my back up and i dont know what to do? i lost my phone recently and i think it still has my old back up but i dont wanna delete that one cause im scared its gonna delete everything and i just really dont know what to do.
    does anyone know if im doing something wrong or what i can do to back up to my old back up or what?
    my contacts also always change names. or i put a number in my phone and it literally disappears 2 minutes later. ill save the number again and it does it again but then i look back in a ciuple of weeks and i have 4 of the same contact. its very frustrating

    Did you enable the "Find my..." function BEFORE you lost it?

  • How to use a BrowseForFolder box in my powershell script?

    Hello,
    I have the following script where I want to ask the user to select the folder they want the script to process the instructions from.  I've added a function for Select-Folder as follows:
    function Select-Folder($message='Select a folder', $path = 0) {
    $object = New-Object -comObject Shell.Application
    $folder = $object.BrowseForFolder(0, $message, 0, $path)
    if ($folder -ne $null) {
    $folder.self.Path
    Select-Folder 'Select the folder where the move scripts reside'
    $files=Get-ChildItem $folder -Filter "*.txt"
    foreach ($file in $files){
    $outFileName=[IO.Path]::GetFileNameWithoutExtension($file.Name) + "_StartVMs.txt"
    Get-Content $file.FullName | foreach{
    Add-Content $folder\$outFileName "Start-ClusterResource ""$($_.Split('"')[1])"""
    Issue #1:
    The .txt files I am creating live in the same location as where this script lives. What I've found is the path I choose in the browseforfolder box that pops up is ignored and the files are converted in the location where the script lives.
    Issue #2:
    How do I get the Cancel button to work so the script will exit if the user selects Cancel?
    Any help you can provide would be greatly appreciated.
    Thank you.

    Hi,
    You're not setting a variable with the output of your function, so you don't have anything to test on. Give this slight modification a try (you'll need to work this back into your script, this is demo stuff only):
    function Select-Folder($message='Select a folder', $path = 0) {
    $object = New-Object -comObject Shell.Application
    $folder = $object.BrowseForFolder(0, $message, 0, $path)
    if ($folder -ne $null) {
    $folder.self.Path
    $folderPath = Select-Folder 'Select the folder where the move scripts reside'
    Write-host "The selected folder path is $folderPath"
    If ($folderPath) { Write-Host 'I have a folder, so keep processing in here' }
    Else { Write-Host 'I do not have a folder path' }
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • How to use EWS or Powershell to rename all folders that have a forward slash in them

    We have many users that have created folders in Outlook that have forward slashes in the name (i.e. / ). They did this in Outlook/Exchange 2003. We upgraded to Outlook 2010 and this is no longer aloud so there are issues with the folders when performing
    functions such as trying to share or using IMAP, etc.
    I'm looking for a way to specify a particular user's mailbox in a script and have it traverse every folder/subfolder and check if there is a forward slash in the name. If there is a forward slash I would like to rename the folder to something like the bar
    character (i.e |) or another character that is valid.
    I had most users go through Outlook manually and clean them up. However there are a handful of users that have hundreds if not thousands of subfolders that have the forward slash in them.
    I've done extensive research on this (references to my research below) and came close in putting a script together but I just can't figure it out. Anyone have an example for this? Even if I need to specify a folder within the Inbox and have the script only
    process subfolders from this location would be acceptable since most of them are subfolders of a particular folder.
    Thank you.
    http://social.technet.microsoft.com/Forums/exchange/en-US/b24d0558-ed6a-4854-9a86-e9815741b5d0/rename-folder-example-in-ews?forum=exchangesvrdevelopment
    http://exchange-powershell.com/database-management/bulk-public-folder-rename-and-cleanup-script/
    http://unlockpowershell.wordpress.com/2010/10/14/powershell-rename-a-mailbox-folder-using-exchange-web-services-api/

    First two articles are for public folders so it won't help here as you have mailbox folders...
    http://unlockpowershell.wordpress.com/2010/10/14/powershell-rename-a-mailbox-folder-using-exchange-web-services-api/ 
    This is good starting point, you might need to change the logics around it  to search / and replace with - or someting, this might be the code change needed from that article but would suggest you to test it first.
    foreach ($folder in $ffResponse.Folders)
    if ($folder.Displayname -like “*/*”)
    Write-Output “Found / in the $mailboxName and folder name is $folder.Displayname”
    $folder.Displayname.Replace("/","-")
    $folder.Update()
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • How to use classes of packages in flex mx:Script/ or mxml/

    Hi.I am just learning Flex using Flex Builder 3 facing one problem,
    Suppose I declare one package with name alert.as
    package
    import mx.controls.Alert;
    public class alert
    public function alertBtn()
    Alert("Hello btn 1");
    Now in want to use the function in mxml that I declared in a package.
    <mx:Button label="btn1" click="alertBtn();"  />
    I have few questions
    1)How to Import the class alert.as in <mx:Script> and where should i store the file alert.as in the directory folder of flex?
    2)How to call the function alertBtn() when btn1 is clicked.
    Thanks so much!
    Regards
    Ankur

    Hi Greg.I think I was not able to clear my problem properly.Let me try this time again.
    What I wanted to do was that in the below written code I have the full access of the id=panel1 in the  script tag .This works properly.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script><![CDATA[
    import flash.display.Sprite;
    import mx.core.UIComponent;
    private function addChildToPanel():void {
    var circle:Sprite = new Sprite();
    circle.graphics.beginFill(0xFFCC00);
    circle.graphics.drawCircle(0, 0, 20);
    var c:UIComponent = new UIComponent();
    c.addChild(circle);
    panel1.addChild(c);
    ]]></mx:Script>
    <mx:Panel id="panel1" height="100" width="100"/>
    <mx:Button id="myButton" label="Click Me" click="addChildToPanel();"/>
    </mx:Application>
    This above functionality when I tried to do using class Outside the code ,its not working !
    Here is with the package:-
    But suppose I make One package 
    package
    import flash.display.Sprite;
    import mx.core.UIComponent;
    class getPanel extends Sprite
    public function addChildToPanel():void {
    var circle:Sprite = new Sprite();
    circle.graphics.beginFill(0xFFCC00);
    circle.graphics.drawCircle(0, 0, 20);
    var c:UIComponent = new UIComponent();
    c.addChild(circle);
    panel1.addChild(c);
              }//class
                        }//package
    Now in MXML
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script><![CDATA[
    import getPanel;
    ]]></mx:Script>
    <mx:Panel id="panel1" height="100" width="100"/>
    <mx:Button id="myButton" label="Click Me" click="getPanel.addChildToPanel();"/>
    </mx:Application>
    So My problem is that this code doesnt do anything.
    Neither the addChild function is working in it ,Nor the Panel1 is accessible here.
    Can u pls help me here.
    Thanks
    Ankur

  • How do I restart or start the TREX Queue Server ?

    Hi:
    In one of our environment, the TREX Queue server is unavailable. The service is down. I see it in the TREX Monitor (System Administration/System Configuration/Knowledge Management/Index Administration/TREX Monitor)
    How do i restart (start) the queue server again ? Where can I do that ?
    Thanks,
    Felipe Mendivil

    Felipe,
    Queue server can be restarted thru the TREX admin tool. Go to your Trex host and the trex installation directory and launch trexadmin.bat. You can see all your trex services there.
    restart also is possible.Is the problem only with your queue server or is http server also affected?
    Rgds

  • How to use custom pipeline dlls in Biztalk Projects so that they appear in the send/receive pipeline configuration after deployment?

    I have a existing Biztalk application that uses custom pipelines for receiving excel files. I have the dll of that custom pipeline. Now i created another BT application that needs to use that same custom pipeline. But after i deploy the application in
    Biztalk, i can't see the  pipeline available in Receive pipeline configuration combo box during configuration. I have referenced the custom pipeline dll in my project before deploying, but that doesn't help. I also copied the dll in the C:\Program Files
    (x86)\Microsoft BizTalk Server 2010\Pipeline Components folder and C:\Program Files (x86)\Microsoft BizTalk Server 2010 folder, but that doesn't make the pipelines appear during configuration too.
    Can anyone give any idea on how can i use these custom pipeline dlls in project so that they appear in configuration after deployment?

    If you plan on using the deployed pipeline across multiple applications in BizTalk, the BizTalk Application (using the BizTalk Server Administration Console) should have the other application [where the pipeline is deployed] as reference.
    For e.g.: Custom Pipeline (myCustomPipeline) part of a BizTalk Project (dll - myCustomProject.dll) deployed under Application [Some Application] also to be used in another BizTalk Application [Some Other Applicaiton] then using BizTalk Server Administartor
    right click the "Some Other Application" and select "Properties"
    on the "Properties" page, left hand side, select "References"
    on the right-hand side, use "Add" to add the "Some Project" as a reference.
    Doing so will ensure that ALL resources (maps, schemas, orchestrations, send ports, receive locations, rules, etc.) deployed for "Some Application" are available/referensible in "Some Other Application".
    Regards.

  • How to use a GPIB card's LabView drivers to communicate with the card?

    I have an axiomtek AX4810P PCI-GPIB card and i have aquired LabView drivers from the manufacturer.
    This has put VI's for the GPIB functions on the 'user palette' but i can't work out how to use them to communicate with the card. can anyone help? please.

    LS,
    Thank you for contacting National Instruments.
    Unfortunately, since you are not using a National Instruments GPIB card, I do not have access to the drivers that were provided to you by your card's manufacturer. I would suggest contacting Axiomtek directly to obtain support using their drivers.
    However, I did write a small VI that demonstrates how to use similar National Instruments drivers with a National Instruments GPIB card. Keep in mind, this example VI is not intended to work with your particular card. The drivers you obtained from Axiomtek may have similar functions, however, and you can use my VI as a guide. My VI allows you to send a command to an instrument at address 2 on the GPIB card.
    Hope this helps!
    Matthew C
    Applications
    Engineer
    National Instruments
    Attachments:
    GPIB_Communication.vi ‏23 KB

Maybe you are looking for

  • Error during a system copy with HANA DB

    Hello, I´m doing a system copy in a SAP ERP 6.0 EHP7 with SAP HANA DB. During a homogeneous system copy procedure with SWPM, it show me the following error during the phase Database refresh postload-activities. I checked some log files: -- sapinst.lo

  • WD Elements External Hard Drive: No Sleep Issue

    Hello, I know this probably isn't the best place for this as it's not directly related to an iMac. But it works. I have two WD Elements (http://support.wdc.com/product/download.asp?groupid=304&lang=en) external hard drives that I use for a Time Machi

  • Error handling for importing a file

    Hi, I have only been doing java for 1 semester, and have got terribly stuck on my final assg. I have to import a txt file, and catch any exceptions. I know I am not using the correct method to read the file, but am not sure what the alternatives are.

  • P6 EPPM V8.2.2.8 window popup windows not showing.

    I've installed Primavera V8.2.2.8 EPPM on 64bit Windows 2008 R2 sp1 server with weblogic 10.3.5 using a 64 bit JDK (1.6.0_27). The database is 11g on another rhel5 server and has sample data loaded. Initially the install worked great for a bit. I was

  • Calling plsql block in java

    Hi Needs some help, urgently. i have to call/execute a plsql block in java program. block is similar to this declare CURSOR l_csr IS select empname, empid, empdate from emp order by empid; l_empid NUMBER; l_empdate DATE; l_empname varchar2(30); o_dat