Matlab ActiveX control from Diadem don't work

I tried to transfer data from Diadem to Matlab as discribed in the KnowledgeBase 2QUAUTZL: Running MatLab M Scripts from DIAdem, transferring data between MatLab and DIAdem.
I can only open a Matlab command window, but can't assign a variable to the Matlab workspace.
Any help?
Ralph Schmidt

Hello Ralph,
have you registered the "Matlab-DIAdem-Connectivity" yet? To do so:
Detach ScriptLibrary.OCX in to the DIAdem directory and register it through regsrv32, either by pressing “Windows R” or “Start\Run” to bring up the run menu. At the Run prompt type:
For Windows 2000 & NT
c:\winnt\system32\regsvr32 "c:\program files\National Instruments\diadem 8.10\ScriptLibrary.ocx"
For Windows Xp
c:\Windows\system32\regsvr32 "c:\program files\National Instruments\diadem 8.10\ScriptLibrary.ocx"
This will register the ScriptLibrary.ocx on your computer.
You'll find the file here:
http://digital.ni.com/public.nsf/websearch/1706BA4C65A8533686256C630062DD03?OpenDocument
Kai Kratt

Similar Messages

  • Matlab ActiveX control with DIAdem

    I have successfully used DIAdem to transfer data back and forth with Matlab using Active, as well as run Matlab scripts. However, I would like to be able to see the Matlab command window (errors, warnings, etc.) as the script is running. Also, I have found that when having DIAdem open a Matlab .m file (using the NI files from the support website), variables that are 1 x 1 in size are not retrieved by DIAdem and in addition, some variables get a _1 etc. tagged onto the end of them. Any help would be great. Thanks.

    Hello Justin,
    if you use the little ActiveX control we provided, the MATLAB command window is visible once you connect to MATLAB. If you run a script nothing happens in this window because echo is "off" by default.
    Use the "Execute" method to send "echo on all" before you execute the M-script
    The GetChannel method is optimized to transfer array from MATLAB to DIAdem and doesn't accept single variables. There is a work around you can use to retrieve single variables from MATLAB :
    You can use "GetCharVar" which is a method of the ActiveX control to retrieve a (single) character variable. If your variable is of a different type, please use the MATLAB function num2str to convert it before you retrieve it.
    Here is an example :
    ' load a file..
    Call oMatLabM.Execute("load D:\Source\scriptlibrary\Test\ML_SingleRow.mat")
    ' convert variable A to string :
    Call oMatLabM.Execute("zzz = num2str(A)")
    ' retrieve it :
    myVar = oMatLabM.GetCharVar("zzz")
    ' show it
    MsgBox(myvar)
    You may find it helpful to list all variables together with type and dimension. Please refer to the little script I have attached which shows how to list all variables in the current MATLAB workspace
    Let me know if you need more details...
    Attachments:
    MATLAB_List_Workspace.VBS ‏2 KB

  • Is it possible to call a activeX control from PL/SQL...?

    Hi all,
    Is it possible to call a activeX control from PL/SQL...? If yes, please give me sample code or any link.
    Thanks,
    Pal

    The LoadLibrary() Win32 call is used to find the physical DLL and load it into memory. This API call first look in the current directory for the file, and then uses the PATH environmental variable to try and find the file.
    Thus you need to make sure PATH is properly set. A Win32 process runs in a 32bit VM (Virtual Machine). Been a very long time since I did Windows server side development, but as I recall this VM inherits the default o/s environment (unlike Unix where the parent process environment is inherited).
    You can set the environment using the Properties menu of the System desktop icon (or via Control Panel).
    However.. Oracle does not run as your user. Typically it is installed as the o/s user Oracle and this user owns all the Oracle processes (listener, instance, etc).
    So you will need to make sure that this user's environment is correctly configured... Further more than this, I'm out of my depth. Did a lot of Windows stuff back in the 90's, but for many years now I'm only using Unix/Linux professionally - with Windows being my console platform for playing games at home. :-)
    On the Linux/Unix side, I configure the environment variable via the Listener. E.g. Under the entry SID_LIST_LISTENER, I configure the external procedure handler as follows:
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME=/tjs-dev/app/oracle/product/10.2.0)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ANY")
    )No idea how this applies and works on the Windows side.

  • Mission control gestures fail/don't work after sleep

    Newbie to a 15" Macbook Pro, Lion, with the most recent updates.
    I've noticed what I imagine is an operating system error twice now, where after waking the computer from sleep, my Mission Control gestures (I've got 4 finger swiping between desktops, 4 finger up/down for expose or mission control) and the Launchpad/Desktop thumb and 3 finger gestures all simply don't work.  All of the same preferences are chosen in System Preferences, but those gestures simply don't work.  The trackpad otherwise seems to work with scrolling, 3-finger dragging, tap to click, etc.
    The only way I've been able to get the gestures to return is by restarting the computer.
    Any ideas on what is going wrong?  Is there a command line or other process that would allow me to restart the gestures service without having to completely restart --- that isn't ideal (the ideal is that this wouldn't happen), but a workaround solution is better than nothing? 
    Thanks

    It appears after repairing my permissions with Disk Utlity has fixed this. Open up Disk Utlity (Found under "/Applications/Utilities/Disk Utility.app" - But typing "Disk Utility" in Spot Light should open it).
    Select your disk (in my case, Macintosh HD) and click on the button that says "Repair Disk Permissions".
    Don't even need to restart!

  • Fusion Middleware control and targets don't work

    Hello,
    I got problems with the Fusion Middleware control and targets that don't work after upgrading from AS 10.1.2.3 to 11g.
    I have WLS 11g running. The WL Admin consoles are working (http://<hostname>:7001/console and http://<hostname>:7002/console)
    1. Fusion Middleware control on Infra (http://<hostname>:7001/em) does not return anything - just show <loading> on the screen.
    2. Fusion Middleware control on Mid Tier (http://<hostname>:7002/em) returns a 404 error and I found a solution on this forum to do the Extend Domain and turn on/configure Enterprise Manage. I tried and got error "INST-07303 - Specified Domain cannot be used for Extend Domain configuration".
    3. There sre no Targets in both Infra and Mid Tier targets.xml files after ugrading from AS 10.1.2.3 to 11g. How do I transfer all targets from the old AS 10.1.2.3 Infra and Mid Tier targets.xml to Fusion 11g Infra and Mid Tier targets.xml.
    OS is Linux SUSE SLES-10 SP3
    Any help?.
    Thanks,

    create the sh file and comping for forms but this file in a where the forms available
    export ORACLE_HOME=/home/oracle/Oracle/Middleware/as_1
    for i in `ls *.pll`
    do
    echo Compiling Form $i ....
    /home/oracle/Oracle/Middleware/asinst_1/bin/frmcmp.sh userid=aaa/aaa@gggg batch=yes module=$i module_type=LIBRARY compile_all=yes window_state=minimize
    done
    with regards
    Abdulwajid khan
    [email protected]

  • Is it possible to seperate an ActiveX control from the GUI thread?

    I have an activeX control (*ocx) that we use for communicating with external instruments. We are running into some difficulty because if the communication with the instrument is held up it can take up to 30 seconds to timeout and our LabVIEW user interface is frozen in the mean time. The VI that contains the control itself does not have to be visible and all the subVIs that use the ActiveX reference have been set to run in the "instrument" execution system thread, but the GUI still freezes. Its my theory that since the ActiveX control itself is in a container and part of a front panel, all refernces to it must be executed in the GUI thread. I just wanted to confirm that this was the case. Also if anyb
    ody would like to suggest any work arounds, feel free. The only idea I've had so far was to move all use of the ActiveX control to external code, which is not a very attractive solution for us.

    ....Also if anybody would like to suggest any work arounds,
    > feel free. The only idea I've had so far was to move all use of the
    > ActiveX control to external code, which is not a very attractive
    > solution for us.
    ActiveX controls are loaded into the UI thread and all interactions with
    them, property nodes, and invoke nodes, have to take place in the UI
    thread/main thread of LV. So, setting the VIs to run in the
    instrumentation or other execution systems, doesn't do much good since
    each call to the property or invoke will just have to switch back.
    What other choices do you have? If the control doesn't have a UI
    anyway, it would improve matters if the control were simply an
    automation server. The automation server can be set to run in a single
    thr
    eaded apartment, or a MT apartment. Changing it to MT means that you
    will have to deal with protecting the code from being called from
    different threads, and having those calls interleaving and competing
    with one another. When you change it to be MT, it can tie up other
    threads in LV and leave the UI thread alone. Another alternative is to
    change the ActiveX control to spin up its own thread and have a method
    that initiates, and one that reads the results or returns the status.
    Greg McKaskle

  • Outgoing calls from Mac don't work

    Hi folks,
    handoff is working so far. I can receive incoming calls on my Mac. But I am not able to make calls from my Mac. It is starting but everytime it quits with an error and I am able to retry or quit but retry don't work either.
    I have checked all settings, logged-out and -in to iCloud but nothing works.
    Any hints?
    Steve

    What i did and it fixed the problem after i checked that both mac and iPhone are on the same network and have the same iCloud account and the phone number is mentioned on mac also. I just viewed the iCloud account from the FaceTime on iPhone and then everything work perfectly.

  • ActiveX control from Java

    Hi.
    I have few ActiveX components which I want to control from Java.
    I have googled for some solutions and found the following:
    1. Write a C code which will behave as a bridge between ActiveX component and Java (using JNI). But this seems to be rather very complicated :p
    2. I have found one very interesting paper at javaworld (http://www.javaworld.com/javaworld/jw-03-1997/jw-03-avb-tech.html?page=7). They compare ActiveX components and Java Beans there. There is also stated that (for example) it is possible to "develop an ActiveX control in Visual Basic that opens a window and adds a C++ AVI player (an ActiveX control), and then operate the player from a Java applet." However, I can't find any sources or samples which shows how to do such things in practise.
    Can anybody help me with this?
    Many thanks
    Miso

    See Tool at
    http://www.simtel.net/product.php[id]93010[SiteID]simtel.net

  • Speakerphone from iPhone don't work with FaceTime

    Speakerphone from my iPhone don't work with Facetime.
    Its a new iPhone 4S.

    Hi Anette ...
    The app runs on iOS 5.1.1 or later as noted here >  https://itunes.apple.com/us/app/bejeweled-hd/id517260318?mt=8
    But does not necessarily mean the developer updated the app for iOS 8 compatibility.
    Click Bejeweled HD Support at that link.

  • TS3474 I purchaed the earpods with mic & controls and they don't work with 6th generation nano.  Are the features supposed to be compatible with this model of nano?

    I purchased the earpods with mic & controls and the features don't work with 6th generation nano--is this normal?

    Hi there,
    According to the product page:
    The remote and mic are supported by all models of iPod, iPhone, and iPad (not all models support volume up/down functions). Audio is supported by all iPod models.
    Your iPod Nano may be one of the models that does not support the volume up/down function. Take a look at the page below for more information.
    Apple EarPods with Remote and Mic
    http://store.apple.com/us/product/MD827LL/A/apple-earpods-with-remote-and-mic
    -Griff

  • After the installation of os x Lion my software from HP don't work

    After the installation of os x Lion my software from HP don't work

    you try reinstalling the HP software?
    What HP software are you referring to?

  • Event Structure control from an another VI working in parallel

    Hello,
    First here is my goal:
    I try to control a event structure in a VI with a boolean command from a second VI.
    My first goal is to work with 2 VI in parallel, no subvi at all.
    Below an simple example: I would like that the VI MyVItwo gives the result of a 2 numbers addition only when the boolean "MyBooléen" value changes in MyVIone.
    If possible I would like to use in MyVItwo an Event Structure with the "event selector label" configured with "Value Changed". I have tryed to use the reference of the boolean "MyBooléen" from MyVIone to execute the MyVItwo event structure. I have not succeeded in it.
    My questions:
    Is there a way to use an Event Structure in my case?
    If not how can I do that? (I would like to avoid global variables!)
    Thank you very much,
    PB
    Attachments:
    Example1.zip ‏10 KB

    Since you don't want global variables, you should learn about a type of global variable called "functional global". Basically, it's using a VI with a while loop that runs only once that has an uninitialized shift register. Because the shift register is uninitialized it keeps the data in it from the last time the VI was run and so the data can be accessed from different location. search the site for "functional globals".
    You can use the data you pass to create a dynamic user event (in the Application Control>>Events pallete) or use the Value(signaling) property to generate a value change event.
    If you don't want to use data transfer at all, you can use the reference to the original VI with a property node, to get the "panel" property which is a reference to the front panel which you can use to get an array of references for all the controls on the front panel of MyVItwo and you can choose one of those and use the Value(signaling) property on that one.
    Try to take over the world!

  • "Where from:" Information don't work for any file type

    As i know Safari and iChat stores the download url from a file - downloaded over the internet - in a meta tag called 'kmditemwherefroms'. You can see this information in the finder information dialog.
    But not on my system. I'm running 10.4.8 on power mac G5.
    To invesigate the problem, i used the 'mdls' comand in the terminal on a fresh downloaded file: the above meta entry don't appear.
    Any ideas to activate this feature?
    Dual 1.8 GHz PowerPC G5   Mac OS X (10.4.8)   23'' Cinema HD Display

    Hi Mike
    As a follow up to your good work, perhaps this may help to clear some of sstoll's issues.
    If you watch your raw query as you download a file you will observe that the file will appear in the found list.
    However, some will disappear from the list when they are finished downloading.
    For example,
    1) if you go to VersionTracker and download 'Google Reader', it lists as GoogleReader.zip.download until you click continue at which time it immediately disappears from the list.,
    2) If you do the same thing downloading 'DownloadComment' - it remains in the list
    3) If you right click a pdf in your browser to send a copy of the file down, it appears in the list. However,
    4) PDF's which are set to open automatically in Adobe Acrobat will appear in the list but lose their WhereFroms the second they open in Adobe Acrobat.
    These are not bugs. It is the way that the files authors' have compiled their downloadable files to either store the necessary metadata permanently or temporarily, or both depending on how the download is initiated.
    Why would one want to only temporarily store or not include the WhereFrom metadata? Perhaps for security or privacy.
    Now it is possible that the storing of the metadata may be affected by how the Privacy pane preferences are set for Spotlight at the time of the download. Certainly if the download is set to be saved in a folder that is in the Privacy pane it won't be in the index. Taking it in and out should restore the order but that depends on how the author may have set the metadata to be stored in the first place.
    Unfortunately, updating applications, installing third-party search apps and diving into some of the, particularly Terminal, suggestions posted in these forums haphazardly can have a profound detrimental effect on how Spotlight is to function or the permissions in general.
    As a general rule, we now run Disk Utility and verify/repair the permissions immediately that we install or upgrade an application. That and trying not to upset the Apple-cart by messing around with the system seems to keep our machines running as they should be.
    Again, thank you Mike.
    Good luck sstoll.

  • Only Songs from Itunes don't work!

    So I've called support about this and it was fixed and was suppose to never happen again... and it did...
    My Ipod randomly decided to just stop playing anything i've bought from iTunes before and my videos. Plays everything else. It did it before. Support told me to just install the iPod Utility Upgrade so I did.. and it fixed it... for a while. A month later it did it again. So I installed yet another Upgrade and it fixed it. For a few days. Then it did it again, ect. Now its doing it quite frequently, almost every day, and I don't know why. I'm using only 1 computer and a peripheral i bought from best buy to go into my car. Also right before it stop playing all the itunes songs it makes a buzzing sound a couple times. All my other music works, just the iTunes does not. Any suggestions?

    I have a slight variation on this problem. Some of my videos loaded into my iPod, but for other ones, an error comes up telling me to convert them. However, when I try to convert them, another error comes up. These videos show up in iTunes, but will not play. Does anyone have any suggestions?

  • Video Freezes in Firefox. Also links from email don't work(404) (same link works in chrome)

    Most videos freeze after 5-15 seconds if the mouse is not hovering (and moving) in the video window.
    Also many sort URL links from email (Open in new Tab) fail with 404 error. Videos don't freeze and same links work fine in Chrome.
    Searched problem using Google and followed several pieces of advice -- same problem.
    Removed all add-ons and extensions - same problem.
    Removed Firefox 24, Reinstalled using latest version 25 (import nothing) -- same problem
    Replaced Firefox with version 22 and it seems to be working fine.
    Dell Latitude E6430
    Windows 7 Professional Service Pack 1 (64 bit)
    16GB Ram

    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    Please report back soon.

Maybe you are looking for