ActiveMovie Control,Translating ActiveX calls from Visual Basic into Labview

Hello,
I want to use DirectX to display a movie. In the attached file is a Visual Basic example
which I tried to translate into Labview.
To play the movie IMediaControl from ActiveMovie control type library Version 1.0 C:\WINDOWS\system32\Quartz.dll) is used.
To display the current Position I tried to wire the IMediaPostion. But I have no idea how to implement this in the Block Diagram.
After opening it the following message is shown.
Error 3005 occurred at Automation Open: Object specified is not creatable in Play Movie Current Possition.vi
Attachments:
Play_Movie_Current_Possition.vi ‏48 KB

Hello Joe,
the Windows Media Player has a lot of overhead. I also found it difficult to deal with the different Versions.
I want to display data in a graph and show the connected video frame in a separate window.
I used the QuartzTypeLib because it is on every Windows Computer and is easy to code in VB.
With one call I can start the video in Labview., but I find no way to wire the current position. I do not really understand how ActiveX is implemented in Labview. I attached a LV 7.0 vi. I hope you can open it.
Tiemo
Attachments:
Play_Movie_Current_Position.vi ‏63 KB

Similar Messages

  • Can anybody translate this one-line Visual Basic into AppleScript?

    I have been pulling my hair out in trying to get InDesign CS4 to markup selected text with an XML tag. Supposedly this can be done using Visual Basic. Is there anybody out there that could possibly translate this seemingly simply code into AppleScript?
    myText.AssociatedXMLElements.Item(1).XMLElements.Add("break", myText)
    Here is another example:
    With myTSRangeText.AssociatedXMLElements.Item(1).Parent.XMLElements.Add("znak")
  Call .Markup(myTSRangeText)
End With
    I am still thinking that AS cannot do this… but it is worth a shot to ask.
    Thanks in advance,
    Jeff

    If it makes any difference
    This is what I have so far using AppleScript. It is very very close. But the result of running the script appends the tagged text to the end of the text in the frame. In other words, it looks like this: (assuming I had the characters "word" highlighted). This is because I can only seem to tell the story to markup using the tag. I cannot tell the selection to markup using the tag?
    This word is the item I want to tag.[word]
    I am wanting the result to tag the selected item. So it should look like this:
    This [word] is the item I want to tag.
    tell application "Adobe InDesign CS4"
        tell document 1
            set selText to object reference of (text from character 1 to character -1) of selection
            set selTextString to selText as string
            display dialog selText as string
            set parentStoryID to parent story of selection
            set myXMLTag to (get XML tag "theDate")
            set myXMLStoryTag to (get XML tag "Story")
            tell XML element 1
                set theStoryElement to make XML element with properties {markup tag:"Story"}
                tell theStoryElement
                    set myXMLElement to make XML element with properties {markup tag:"theDate", contents:selTextString}
                    tell parentStoryID to markup using theStoryElement
                end tell
            end tell
        end tell
    end tell

  • Struct in type library for DLL called from Visual Basic

    Wrong dicsussion board, sorry.
    Menchar
    Message Edited by menchar on 10-20-2008 01:28 PM

    In CVI, you can get the parameter information into a DLL. First of all, you have to have a function panel (.fp) file with all of your exported functions defined as function panels. From this function panel file you can also generate a windows help file to document your DLL. Once you have the .fp file and .hlp file, you can enable references to them in the build target settings (Build->Target Settings...). Select "Type Library..." and check "Add type library resource to DLL" and "include links to help file" then browse to your .fp file. If there are descepencies between the functions defined in your .fp file and the actual functions you have exported in the DLL, then you may get a compiler error.
    --Peter

  • Type Mismatch error while calling a Java Function from Visual Basic 6.0...

    Hi,
    I'm having a problem in calling the Java Applet's Function from Visual Basic. First, I'm getting the handle of the Java Applet and components of it using "Document.Applets(n)" which is a HTML function. I'm calling this function from Visual Basic. My code is something like this...
    ' // Web1 is IE Browser in my Form.
    Dim Ap,Comp
    Dim Bol as Boolean
    Bol = true
    Ap = Web1.Document.Applets(0).getWindow() ' \\ Gets the Parent Window.
    Ap.setTitle("My Java Applet") ' \\ Sets the Title of the window.
    msgbox Ap.getVisibility() ' \\ This will return a Java boolean ( true or false )
    Ap.setVisibility(Bol) ' \\ Function Syntax is : void setVisibility(boolean b)
    Here in my code , i'm able to call any function that which accepts Integer or String but not boolean. So, i m facing problem with Ap.setVisibility() function. It gives me a "Type mismatch error" while executing it. Can you please tell me a way to do this from Visual Basic !
    I'm using Visual Basic 6.0, Windows 2000 , J2SDK 1.4.2_05.
    Please help me Friends.
    Thanks and Regards,
    Srinivas Annam.

    Hi
    I am not sure about this solution. try this
    Declare a variable as variant and store the boolean value in that variable and then use in ur method.
    Post ur reply in this forum.
    bye for now
    sat

  • Creating a DLL in Labview 8.6 and calling it from Visual Basic 6.0

    Dear friends,
    I need to create a DLL in Labview 8.6 and call it from Visual Basic 6.0. The system works as follows:
    I made an application using Labview 8.6 + Vision Assistant 8.6 where I can obtain the x,y coordinates of a template in an certain image being captured by an USB camera. The template coordinates change every time it moves and Visual Basic 6.0 must read these x,y values in real time. I found some information in the link http://zone.ni.com/devzone/cda/tut/p/id/3925, but it works for version 6.x of Labview and 8.6 version is different. Am I in the right path? If you have an updated tutorial like the one in the link above but for Labview 8.6 It would be very nice. Please help me.
    Kind regards.
    João Júnior

    Hello Osvaldo,
    I analysed the updated tutorial you sent me, but the thing is that it doen't show how to create the DLL in LV 8.6 but only show how to accessing the DLL from VB6. My problem is really HOW TO CREATE THE DLL IN LV8.6. In the link http://zone.ni.com/devzone/cda/tut/p/id/3063 there is detailed information about how to do this in LV6.x, the problem is that I don't find the path Tools»Build Application or Shared Library (DLL) in LV8.6, I think the procedure in LV8.6 is a little bit different. Don´t you have an updated tutorial on how to build a dll in LV8.6?How could you help me?
    Kind regards.
    João Júnior

  • Calling a dll created with vision 7.0 from visual basic doesn't work

    I created a dll using some vision 7.0 functions and Labview 7.0 environment. I call this dll from visual basic. The dll will work fine as long as I don't stop the visual basic program execution. As soon as I stop the program execution the dll will no longer work. I must reload the visual basic environment and the call to the dll will start working again. I created the exact same dll but I created it with vision 6.0 in Labview 6i environment. It works great and has no issues.
    Attachments:
    Test.vi ‏36 KB

    Roberto N. wrote:
    Thank you Jordan, I'm using Labview 7.1.
    Anyway I've resolved the problem by adding the "lvanlys.dll" file (present in "..\Labview 7.1\resource\lvanlys.dll" path) as support file in the building process. Now the DLL containing the analysis functions works correctly.
    Natalino Roberto
    Ok, you probably got lucky since the lvanlys.dll seems to implement that function directly. However most Advanced Analysis functions are just redirected by lvanlys.dll to the Intel Math Kerneal Library that gets installed with LabVIEW 7.1 and higher. The only way to get that properly installed with your LabVIEW executable or DLL is to create a LabVIEW installer in your Application Builder and make sure to select under "Installer Settings->Advanced" the "LabVIEW Run-Time Engine" and the "Analyze VIs Support". Then use that installer to install your DLL on another computer.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can I get the version of the GPIB driver from Visual Basic ?

    I want to readout from visual Basic which version of GPIB-Driver is installed on the PC. I must change some parameters for my application when GPIB 2.0 runs instead of 1.7.
    Thanks for any solution...

    Hi,
    The driver should create a key in registry depending on the driver version. Check for the existance of HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\NI-488.2M\ (In my case I had a folder called 2.00).
    Hope this helps out.
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • How to set the password encrytacion a database. Accdb from Visual Basic 2010 for a report. Rpl

    I want to know how to set the password encrytacion a database. Accdb from Visual Basic 2010 for a report. Rpl

    You have to connect via ODBC, then use code along the lines of what is described here:
    http://scn.sap.com/thread/3526924
    by me on March 28 and Jan on March 29.
    Also see KBA: 1686419 - SAP Crystal Reports designer does not recognize Access *.accdb file
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to connect to oracle database from visual basic 2010 express edition

    I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?

    Hello,
    I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
    I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
    look at the list of datasource options.
    In here you can make ODBC connections via the Microsoft .net Data Provider .
    If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
    This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
    Once you created a server connection then you should see it in the server explorer.
    You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
    ** I suspect this is only for VS 2010 and I didn't see that Express was supported.
    http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
    Let me know if that helps.
    John

  • Calling from an EJB into a JSF Backing Bean

    Hello all,
    I'm looking for some help in making calls from an EJB into a Backing Bean (the converse is fairly straightforward). My basic question is: what is regarded as the best way to do this?
    However, for anybody who's interested, I'll describe what I've been trying...
    Here's my situation (I'm working with OC4J 10.1.3.2). I have a simple application-scoped backing bean:
       public class BackingBean implements SimpleInterface, Serializable {
           private String greeting = "Hello, World";
           private SessionEJBRemote blBeanRemote = null;
           public BackingBean() {
               // get hold of EJB
               // [ ... code to obtain EJB's remote interface snipped ... ]
               // set the callback with the EJB       
               try {
                   blBeanRemote.setCallback(this);
               } catch (Exception ex) {
                   ex.printStackTrace();
           // methods to manipulate the greeting string
           public String getGreeting() {
               return greeting;
           public void setGreeting(String greeting) {
               this.greeting = greeting;
       }SimpleInterface, which my Backing Bean implements is, well, a simple interface:
       public interface SimpleInterface {
           public void setGreeting(String greeting);
       }And my EJB is also pretty straightforward:
       @Stateful(name="SessionEJB")
       public class SessionEJBBean implements SessionEJBRemote, SessionEJBLocal {
           private SimpleInterface callback = null;
           public void setCallback(SimpleInterface callback) {
               this.callback = callback;
               callback.setGreeting("Goodbye, World");
       }Now, by using SimpleInterface, my intention was to ensure a one-way dependency: i.e. the JSF-level code would depend on the EJB-level code, but not vice versa.
    However, my experimentation has shown that when I make the call to blBeanRemote.setCallback, the parameter appears to be passed by value rather than by reference. This means firstly that, at runtime, by EJB needs to have access to my backing bean class and secondly, that the call to callback.setGreeting has no effect.
    Can anybody suggest how to work around this? Is it possible to pass the backing bean by reference? Is there a better way to achieve this callback? I appreciate that these questions might be more general Java/AppServer queries rather than JSF-specific ones - but hopefully this is something that all you JSF experts have encountered before.
    (Incidentally, I realise that what I'm doing in this example is pointless - what I'm building towards is using the ICEFaces framework to have the EJBs prod a backing bean which will in turn cause a user's browser to rerender.)
    Many thanks - any help very much appreciated!
    Alistair.

    Hi Raymond - yes, you've pretty much got that spot on: an event occurs (say receipt of a JMS message - which is spontaneous, as far as the users are concerned). As a result of that event, the client's view (in their browser) needs to be re-rendered.
    ICEFaces uses the AJAX technique to allow server-pushes, and rather than refreshing the whole page it uses "Direct-to-DOM" rendering to maninpulate the page components. If you've not come across it, and you're interested, then there are some pretty interesting demos here: http://www.icefaces.org/main/demos/ - the "chat" feature of the Auction Monitor demo (if you open it up in two browsers) is the nearest to the effect I'm looking for.
    The Auction Monitor demo uses a number of session-scoped beans, each implementing the ICEFaces "Renderable" interface, and each of which registers itself with an application-scoped bean. The application-scoped bean can thus iterate through each of the session-scoped beans and cause the corresponding browser to refresh.
    Unfortunately, in the Auction Monitor demo, the entry point is always from a browser - albeit the result is then mirrored across all connected browsers. I haven't found any examples of this processing being driven by an external event, hence my experimentation in this area!

  • How do you call a Visual Basic App From Labview?

    I have a Visual Basic executable application that is collecting data from a USB port and displaying it in an MS grid control. I would like to read the same data in a LabVIEW application. The LabVIEW app would periodically poll the VB App to collect the current data. Does anyone have any insight or examples?

    Go to the Resource Libary at http://zone.ni.com/devzone/devzone.nsf/webcategories/9C6DF90777E5A78206256874000FA14E?opendocument (Resource Library>LabVIEW>Connectivity>ActiveX) for some examples. You'll need access to the VB source code.

  • Trouble Calling InspectionLot.GetDetail from Visual Basic 6.0

    I am having difficulty trying to retrieve data from the InspectionLot object in SAP using VB and the SAP ActiveX Control.  We are on SAP ECC6.  I've successfully called the InspectionLot.GetList BAPI, but am struggeling with the GetDetail.
    Here is my code after I have successfully logged into SAP.  My problem seems to revolve around the Dimas method.
    Dim oBAPICtrl As Object
    Dim objInspLotDetail As Object
    Dim objUsageDecisionData As Object
    Dim objSystemStatus As Object
    Set oBAPICtrl = CreateObject("SAP.BAPI.1")
    Set objInspLotDetail = oBAPICtrl.GetSAPObject("InspectionLot", "090000093993")
    After calling this DimAs function objUsageDecisionData is equal to Error 0
    Set objUsageDecisionData = oBAPICtrl.DimAs(objInspLotDetail, "GetDetail", "UsageDecisionData")
    After calling this DimAs function objSystemStatus is equal to a data structure as expected
    Set objSystemStatus = oBAPICtrl.DimAs(objInspLotDetail, "GetDetail", "SystemStatus")
    The next call returns 4 rows into the objSystemStatus data structure, but obviously nothing into objUsageDecisionData
    objInspLotDetail.GetDetail UsageDecisionData:=objUsageDecisionData, _
                               SystemStatus:=objSystemStatus
    'Note: I can see in the BAPI Explorer that the UsageDecisionData is not marked as a table, but it returns fields in a table like structure.  How do I get these values?
    Thank you for any assistance you can provide.
    Regards,
    Paul
    p.s. Is this the correct forum to post this question?
    Edited by: Paul Murray on Oct 15, 2009 10:13 PM
    Edited by: Paul Murray on Oct 16, 2009 7:20 PM

    My mistake, it was returning a structure, just a different type that I couldn't read with the VB IDE Variable Watch utility.

  • Help me plz: Connect to tuxedo from visual basic 6.0 client application

    Hello everyone,
    i have a big problem
    i try to connect my visual basic application 6.0 to the tuxedo, but i dont know how to use tpinit and tpcall in vb environnement.
    that my code:
    Private Declare Function tpinit Lib "C:\OracleHome\tuxedo11gR1\bin\wtuxws32.dll" _
    (ByVal vlTpInfo As Long) As Integer
    Private Declare Function TpTerm Lib "C:\OracleHome\tuxedo11gR1\bin\wtuxws32.dll" Alias "tpterm" () As Integer
    Private Declare Function TpCall Lib "C:\OracleHome\tuxedo11gR1\bin\wtuxws32.dll" Alias "tpcall" _
    (ByVal vsServiceName As String, ByVal vlBufPtr As Long, ByVal vlBufLen As Long, _
    ByRef rlReplyBufPtr As Long, ByRef rlReplyBufLen As Long, ByVal vlFlags As Long) As Integer
    Private Declare Function TpAlloc Lib "C:\OracleHome\tuxedo11gR1\bin\wtuxws32.dll" Alias "tpalloc" _
    (ByVal vsTpType As String, ByVal vsTpSubType As String, ByVal vlSize As Long) As Long
    Private Declare Sub TpFree Lib "C:\OracleHome\tuxedo11gR1\bin\wtuxws32.dll" Alias "tpfree" (ByVal vlBufPtr As Long)
    Option Explicit
    Type tpinfo_type
    username As String
    cltname As String
    passwd As String
    flags As Long
    datalen As Long
    data As String
    End Type
    Dim tpinfo As tpinfo_type
    tpinfo.username = "cajat05"
    tpinfo.passwd = "cajat05"
    tpinfo.cltname = "VB6"
    tpinfo.flags = 110
    tpinfo.data = "NMLRS 55502022"
    tpinfo.datalen = 14
    Dim ret_init As Integer
    Dim ret_tpalloc As Long
    ret_tpalloc = TpAlloc("tpinfo", "", 9000)
    MsgBox "ret_tpalloc = " & ret_tpalloc
    'ret_init = tpinit(900)
    'MsgBox "ret_init = " & ret_init
    Dim s As String
    If ret_init = 0 Then
    msgbox "good"
    Else
    msgbox "not good"
    End If
    Can any one send me the code he made for a similar case ?
    Thank you in advance.
    Edited by: user3465258 on 2 août 2010 14:57
    Edited by: user3465258 on 2 août 2010 15:44
    Edited by: user3465258 on 2 août 2010 18:00

    As an alternative you may want to consider writing a "C" DLL that is callable from VB. The DLL would make the Tuxedo "tp" calls and check all the return codes and the functions defined in the DLL would simplify the interface to VB. I have done this successfully in the past.
    Harvey

  • Can not select the VISA library (visa32.dl​l) as a reference from Visual Basic.

    I have a copy of Labview base package version 5.1.1 and Microsoft Visual Basic 6.0 in my PII 333 128M PC. I like to use the NI-VISA feature to develope my own testing program by using Visual Basic. However, the NI-VISA library (i.e. visa32.dll) can not be found from the Visual Basic reference library.

    Go PROJECT | REFERENCES menu. In the list, look for "VISA library".
    If the list does not show it, then BROWSE the visa32.dll located in the
    WinNT\SYSTEM32 folder.
    If the VISA library is earlier than V2.x, there is no TypeLib supported.
    Makoto
    "rfan99" wrote in message
    news:506500000008000000B6180000-984882144000@quiq.​com...
    > I have a copy of Labview base package version 5.1.1 and Microsoft
    > Visual Basic 6.0 in my PII 333 128M PC. I like to use the NI-VISA
    > feature to develope my own testing program by using Visual Basic.
    > However, the NI-VISA library (i.e. visa32.dll) can not be found from
    > the Visual Basic reference library.

  • How to set transceiver mode to 2-wire TXRDY Auto from Visual Basic

    I am using a PCMCIA-485 adapter to interface to some RS-485 sensors. The sensors are connected using a 2-wire interface. I have developed an application in Visual Basic to control the various sensors. However, the application is dependent on the PCMCIA-485 adapter's transceiver mode being configured into the "2-Wire TXRDY Auto" mode. Presently I require the user to configure the transceiver mode by opening up the advanced setting dialog within the device driver for the adapter and manually setting the transceiver mode. I would prefer to have my application take care of this directly. Unfortunately, I cannot find any references that document how to do this.
    Can I use Measurement Studio Tools for
    Visual Basic to control the transceiver mode of the PCMCIA-485 adapter?

    Hello-
    There is a registry key in Windows that can change this mode:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Serial\Parameters\Serial1000X\TransceiverMode
    Try experimenting with it by hand first. It may also be necessary to reboot after changing this value.
    Randy Solomonson
    Application Engineer
    National Instruments

Maybe you are looking for

  • Need to print horizontal line at the end of main window in each page.

    Hi, I am printing a smartform with main window having 10 lines in footer. The problem I am facing is when the content extends upto two or more pages, I am not getting the horizontal line at the base of main window. For last page it is fine as it cont

  • Connecting iPad to dlink DIR-600 router

    I wish to connect my iPad to a DIR-600 router so I can print wirelessly. The printer and router have successfully connected but I have no idea what settings to put into the iPad to get it to connect. There is no internet involved due to location (bui

  • Check at PR /PO level for budget exceeding in WBS project

    Hi experts, We have a requirement to put check for creation of PR and PO if budget exceeds for a particular WBS. Kindly suggest the steps to configure the same in PS module. thanks.

  • Missing QT help files

    I have QT pro installed and when I go to the Help files I get all the titles but when I click on them nothing happens. Each title seems to be a link to something but can't get any of them to open up with the help I need. Tried an update and it says a

  • E51 Outlook phone number Field.

    Hi, I'm having a problem with my E51, when using PC Suite to sync with Outlook. When a new contact is added via the phone, and then synced with PCSuite, the Phone Field entry in Outlook is set to Other, even though on the phone it's set to Telephone: