Read an AutoCAD drawing In Labview using ActiveX

I want to read an AutoCAD drawing (.dwg) in the LabVIEW using Activex
plz send me the procedure for it & the Library files that will be required to get the objects.

Had to change the labview background color. Here is an image of a dwg file inside the activex control.
Attachments:
autocad dwg document inside labview.PNG ‏113 KB

Similar Messages

  • Can we read AutoCad drawing in LabVIEW using ActiveX??

    Hi hello ,
      Can we read AutoCAD drawing from LabView????

    The other thread in which this issue is discussed can be found here.
    Tom
    Applications Engineering, NI UK

  • How can I import an Autocad drawing in LabView ?

    Hi, I am new in this forum and have just started to use LabView and the DSC module. My question is: Is it possible to import an Autocad drawing in LabView and use it as a background picture with dynamic I/O tags on top of it, e.g. to import a picture of an office and then place status info of temp, light level, doors open/closed etc. on top of the background picture. If anybody has got some example code they would like to share, I would be grateful. Thanks in advance.

    Hi,
    LVDSC supports the BMP and WMF file formats for images. If you can somehow convert your Autocad drawing into any of these formats, using them in your VIs is easy.
    In the Tools>>Datalogging & Supervisory Control menu, you'll find an Image Navigator. This image navigator will allow you to import your images and copies them to Clipboard which you can later paste onto your front panels.
    If you can't convert or 'save as' your Autocad drawing to a BMP/WMF format, as a last resort, you can take a screen dump (hit Alt+PrintScrn) and save it as either of these formats.
    Hope this helps.
    Rgds,
    Khalid

  • How does labVIEW use ActiveX controls?

    How does labVIEW use activeX controls?
    I recently wrote an activeX control in VB and noticed that it would not work if the control was set so that its properties could not be set in ambient mode. This may suggest that labVIEW uses some activeX controls only in ambient mode.
    Is this the case or are there more complexities?

    Dan,
    Which version of LabVIEW do you have?
    As per the KnowledgeBase bellow, in versions of LabVIEW prior to 5.1 you would get errors accessing the ambient properties.
    ActiveX Controls in LabVIEW 5.0.1 Containers Cannot Access Ambient Property
    Do your controls use the Ambient.UserMode to determine when the control is being used in a development environment? When embedding ActiveX controls into a container on the front panel, by default, the ActiveX control generates and responds to events, i.e. it is running, even when LabVIEW is in edit mode.
    Right-click an ActiveX container and select Advanced»Design Mode from the shortcut menu to display the container
    in design mode while you edit the VI. In design mode, events are not generated and event procedures do not run. The default mode is run mode, where you interact with the object as a user would.
    Information can be found in the LabVIEW help files
    Zvezdana S.

  • Exporting figures to word from labview using activex??

    Does anybody know how to export figures into MS Word, XP edition from LabVIEW using activex. I am not using the report generation toolkit...dont have it....help wld be appreciated
    kuttu

    Here are some examples you can use. they all use activeX. One is even a toolkit I got from somewhere.Try these and if you have any more questions let me know.
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    word.zip ‏1226 KB

  • Printing the Autocad drawing by Labview

    My application should found the Autocad drawing and send it to one of the network printers/plotters. Is it possible to send the Autocad drawing to printer/plotter by Labview application?

    Not really an answer, but some ideas:
    If by an Autocad drawing you mean an Autocad DWG file than the general answer will be negative (in any case the solution will not be easy). DWG is not a "printable" (directly) file, it contains many objects/views, etc. From the formal point of view, this is proprietary Autodesk file format with documentation unavailable for users (I'm not sure that trying to decode it will be a good solution as this at least will take awfull amount of your programming time).
    If you run on Windows platform and autocad is installed on the same computer than there is a little hope that it is possible to do using automation approach (DDE, ActiveX). LabView have those abilities, the only question rests - I don't know if Autodesk supplies such kind
    of services as working with autocad drawing trough DDE/Activex. To make it clear, it's better to contact AutoDesk specialists now.

  • How to create a table in MS Access from Labview using ActiveX?

    I want to transfer datas from Labview to Access using activeX method. My only problem is to find out how to create a new table (array) in Access from the Labview program.
    Remarks: I use Labview 6i and MS Access 2000.
    For the moment I can write and read datas of Access from Labview.
    If someone could help me... that would be grate!

    This is off the Microsoft MSDN site "creating an external table". I think you can drop the last step.:
    Open the database you want to create the table in. If it is the current database, use the CurrentDb function to return an object variable that represents the current database. If it isn�t the current database, use the OpenDatabase method to open the database you want.
    Use the CurrentDb function to create a Database object that points to the current database.
    Use the CreateTableDef method of the Database object to create a table definition for the Microsoft Access table.
    Use the CreateField method of the TableDef object to create one or more fields in the Microsoft Access table.
    Use the Append method of the Fields collection to add the new field or fields t
    o the Microsoft Access table.
    Use the Append method of the TableDefs collection to create the Microsoft Access table.
    Use the TransferDatabase method to create the external table in the specified folder.
    Use the Delete method of the TableDefs collection to delete the Microsoft Access table definition.

  • Text Message sent from LabVIEW using ActiveX and Internet Explorer

    I am fairly new to LabVIEW and I am trying to make a VI that will be able to text me and let me know when a test is about to be done or if something has caused it to shutdown.  My VI uses www.onlinetextmessage.com but I can't get it to click the Send Message button. 
    I can get it to insert text in the text fields.  I just can get it to click send.
    Can you help me?
    Solved!
    Go to Solution.
    Attachments:
    My Texting.vi ‏38 KB

    MoonMan wrote:
    Well it sure seemed like that should have worked but no luck. When I try to add the FormElement with submit in my VI after I wire in the reference wire it automaticaly changes to a regular Element.  Then it wont run because submit is not an option for Element, I have to change the submit back to click. 
    I dont understand, it really seems like the click should work, and it seems like the submit should have also worked.  Getting text into the different fields was easy enough.
    Did you try my modified version?  That uses IHTMLFormElement properly.  If you then change the element name from "Send Message" to "txtmsg" (the name of the form), it appears to work - or at least, it pops up an advertising window in Internet Explorer (I didn't fill in any of the fields as I don't want to give out my phone number or email address to some random website, especially one that pops up advertising).
    When you try to change to FormElement, what steps are you taking?  Are you changing the type of the "type" input to Variant to Data?  You'll need to right-click on that constant, Select ActiveX Class... and choose IHTMLFormElement.
    As a LabVIEW style note, you should close all the ActiveX references you open.  That means all the references (IHTMLFormElement, IHTMLElementCollection, etc) need a Close Reference when you're done with them.
    Again, I think sending an email is a better way to send a text message from within LabVIEW, and for that matter, you might be able to find a better website for doing it.  TMobile allows their subscribers to send SMS messages through their website and it appears that AT&T provides a similar service; Verizon provides a web page to send SMS to their users.
    EDIT: by the way, the submit button is not a named element (it has a "Value" property but not a "Name" property) so you can't get a reference to it by name.  If you probe the item output of the IHTMLElementCollection property node, you'll see it returns an empty variant, which is why "click" has no effect.

  • Creating a table in Excel using ActiveX functions

    Hi,
    I am new to labview and have have a project where i need to create tables in labview using activeX, i cannot seem to get the Invoke node Table (under range) to work, any help would be much appreciated.

    This question is not related to LV at all. So in general, this question is more for MSDN (Microsoft Developer Network).
    That being said, here the steps you have to implement in LV:
    Open Automation Server Excel._Application
    Set property Visible to true (otherwise, you won't see the result unless you save the workbook)
    Create a Workbool
    In the Workbook, create a Worksheet (that's what you call a "table")
    That's it.
    Norbert
    PS: Due to "reference lifetime", you want to keep the VI running (e.g. event based waiting for a button press) otherwise Excel will shutdown as soon as you release the reference to Excel._Application.

  • Using ActiveX to _READ_ outlook mail

    Hello everyone!
      I am trying to fetch email messages from outlook and process them in my labview software.  I have seen the various examples and posts about sending email with outlook using ActiveX, but after crawling around the web I have not seen any examples of reading email in labview using ActiveX.  I am a newcomer to using ActiveX and am struggling with the specifics of how to do this.  I hope that the LabVIEW fairies can leave some guidance - or better yet, an example - under my pillow (How to examine the inbox for new messages, fetch them, and then erase them).
      I have successfully run various examples of sending an email, but I don't know exactly which sequence of ActiveX classes/calls to use to read email, or which types to wire to the inputs of the invoke node blocks (many of the inputs/outputs are variants, so if you don't know what they're supposed to be, you can't create them).
      Any help would be greatly appreciated.

    Please start a new thread if you have any more questions and place a link to this thread. Please dont hijack someone else's thread.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Controlling CANoe TestCases in LabVIEW over ActiveX

    Hi,
    I want to run CANoe TestCases in LabVIEW using ActiveX.
    Handling envVars and sysVars in CANoe was not a big deal and there are a lot of examples here.
    But handling TestCases is quite difficult. The CANoe help file shows this way in the object hierarchy:
    Application
    Configuration
    TestSetup
    TestEnvironments
    TestEnvironment
    TestModules
    TSTestModule
    TestSequence
    TestCase
    But I didn't find any way to realize it. I ended up in the following:
    IApplication3
    IConfiguration4
    ITestSetup
    ITestEnvironments
    ITestEnvironment
    ITestSetupItems
    ITestSetupItem
     ITestSetupItem is an object without any methods. I don't know how to access the TestCases without the linking objects in between.
    Greetings,
    Ludwig.
    Solved!
    Go to Solution.

    I've solved the problem with the help of Vector Support. They send me the following C# Example:
    CANoe.Application mApp = new CANoe.Application();
    CANoe.Configuration mConf = (CANoe.Configuration)mApp.Configuration;
    CANoe.TestSetup mTestSetup = (CANoe.TestSetup)mConf.TestSetup; //Test SetUp Window
    CANoe.TestEnvironments mTestEnvs = (CANoe.TestEnvironments)mTestSetup.TestEnvironments;
    CANoe.TestEnvironment mTestEnv = (CANoe.TestEnvironment)mTestEnvs[1]; // Test Environment (*.tse File)
    Console.WriteLine("Name " + mTestEnv.Name);
    CANoe.TestSetupFolders mTestSetupFolders = (CANoe.TestSetupFolders)mTestEnv.Folders;
    CANoe.TSTestModule mTSTestmodule = (CANoe.TSTestModule)mTestEnv.TestModules[1];
    Console.WriteLine("Name " + mTSTestmodule.Name);
    CANoe.TestSequence mTestSequence = (CANoe.TestSequence)mTSTestmodule.Sequence;
    Console.WriteLine("TestSequence Count " + mTestSequence.Count);
    CANoe.TestCase mTestCase = (CANoe.TestCase)mTestSequence[1];
    Console.WriteLine("Testcase Name " + mTestCase.Name);
    mTestCase.Enabled = false; // deactivate testcase - XML and structured NET module only.
    //CANoe.TestReport mTestReport =(CANoe.TestReport) mTSTestmodule.Report; // Access To report
    CANoe.Measurement mMeasurement = (CANoe.Measurement)mApp.Measurement;
    if (!mMeasurement.Running)
    mMeasurement.Start();
    mTSTestmodule.Start();
     I've realized that you can cast ActiveX object references to another child class in the following way:
    This was the correct solution and I want to share it with you. 

  • How do I open Windows Media Player 11 in a new window via labview 8.5 using ActiveX

    Hello,
    Although familiar with Labview, I am new to the ActiveX Controls. I have managed to open and play movie files in Labview with ActiveX controls but the player is embedded in Labview's front panel. How can I control what file is played and when it starts in Labview but have Windows media player 11 open in a separate window.
    Additionally, where can I find a description of the ActiveX properties.
    Thank you

    I'm trying to accomplish this same thing and am having a hell of a time finding the right Class, right Methods, and/or right Properties for a solution.  Some classes seem to return obscure errors when I try to create them use the invoke node "launchURL" (the WMPLib.ICore for example).  If I use the Player base class (which MSDS says is the root class and the class that is used when you create an embedded player) I don't get anything.
    What I would like is to progmatically launch Windows Media Player to play a particular video clip in full screen on the secondary monitor.  It seems like this should work:
    But doesn't... any ideas for this?  The C# examples are difficult to understand for me.  Also, the WMP class library is a MESS! (IMHO).  Thanks for your input.

  • Problems using Labview as ActiveX Server

    Hello,
           I have been having difficulty using Labview as an AcvtiveX server. I have reviewed all the postings on this subject and most are either pre Labview 8.2 and thus do not account for the changes made between 8.2 and 8.5 which broke the Activex server functions. I have looked at the recommendations for changing the to code to export (exported vi's in a DLL or Source distribution) and have tried these with no success. The closest example I have found was posted here http://forums.ni.com/ni/board/message?board.id=170&thread.id=283417 the example code they posted does ont work for me and still generates and error 3005.
          What i need is simple. I want to turn my applicaiton into a Vi server.. Expose a vi that acceses elements in the Vi server.. (controls, queues, Globals etc) that are in the Vi server context. I would then like to build a vi .. or dll that calls the 'exposed' vi in the vi server to pass data to or from the vi server. The V test.zip example file in the above indicated post is a pretty good example of this .. it just does not seem to work when i build it in 8.5. Are there any GOOD and 'current' examples of using labview as the ActiveX server (Compiled) and calling exposed vis from an external application Labivew, Visual Basic.. etc??  I am only interested in cases where Labview is the Sever. or both client and server.
           I have used a tool "ActiveXplorer" to examine the registered "exe" when the viserver is run. It always shows that there is no Type Library associated and the object is not creatable. There is a .tlb created by the project build however, where as the previous version 8.2.1 of Labview did not build that correctly. I have also tried this on 8.6 with similar error 3005 generated. sooooo what am i missing?
          Thanks
           Louis Ashford

    Mike,
           Thank you for your response to my question. The problem is that the example you site does not use the Labview vi as the Server. Excel is actually the vi server and the automation open is using and excel automation object. I am sure that Excel creates proper automation objects .. Labview however does not seem to. So while this example shows how labview can function as a client it is not an example of a compiled Labview Sever being accessed by a 'laview vi'. Possibly I am not looking at the vi that you are thinking of.
           The examples i am aware of:
                        "ActiveX Event Callback for Excel.vi... (Excel is server not Labview vi)
                        "ActiveX Event Callback for IE.vi (same Labview vi is client)
                        "Write Table to XL.vi" ( again excel is the server)
                        "3D Graph Properties - Torus.vi" (accesses an activex Control 'not' and Activex EXE)
                        "3D Lorenz Attractor Draw at Compeltion using 3D Curve.vi (Uses an activex  control not activex Exe server)
                        "3D Parametric Surface - Ribbon.vi (Uses an activex  control not activex Exe server)
                        "3D Surface Example - Fluctuating Sine Wave.vi (Uses an activex  control not activex Exe server)
                        "Excel Macro Example.vi (Uses excel as automation server..not Labview)
                        "FamilyTree.vi (uses MSComctlLib.ITreeView object not Labview as server)
                        "SlideShow.vi" (uses PowerPoint._Application not Laview as server)
          Most of the posts I have seen are for versions prior to  Labview version 8.2 (where the ActiveX server was broken) I have seen only a few posts that actually address the issue i am talking about. however thus far no real solution has been offered. I get the same results when compiling and testing this with 8.6..  as well. So have you tried this Mike? Possibly i am missing something very simple..
          The example i did find and gave the link to is a pretty simple one. This does not work on my machine at all. You can select the automation server that is registered with windows after running the server one time and this then breaks the client vi.. I have found by reselecting the GetViReference property node in the Client vi that it will the 'fix' the client vi as far as labview is concerened and it no longer shows and error. Now when you run the Client vi it will infact find the vi server and will launch it ok. However. The open automation object then hangs.. for quite some time then returns the error
    "Error -2146959355 occurred at Server execution failed
     in Client_reader.vi" Obviously the automation Exe (server) was seen because it was opened yet it did not return a valid reference so the subsequent property nodes in the client.vi will fail. Something is wrong with Labviews opening of or creating of automation objects..
              Thanks,,
                    Louis Ashford

  • Howto use ActiveX made in VB in LabView

    Hi,
    In LabView you can make a container for an ActiveX object.
    I have made an ActiveX component in Visual Basic. How can I access this in
    LabView. If I make an ActiveX dll I cannot find the functions in LabView. If
    I make and ActiveX ocx I cannot find the object in the object list in
    LabView.
    What are the constraints in LabView regarding ActiveX components?
    Thanks
    Leif H

    Leif,
    I previously used ActiveX containers created in VB (most are) in a LabVIEW project. If memory serves, all I did was to place the OCX in a file, and manually browse to it using the Active X browser. I had trouble with registering due to some bug or "feature" that wouldn't update the OCX from the registry in LabVIEW. Everytime we updated the OCX, it would break all of our code. Our solution was to NOT register it, and browse to it manually. That worked great.
    So, drop in a container open or invoke node on your diagram, right click to open the browser, and choose "Browse" to the right of the name. This will allow you to browse directly to an OCX.
    I strongly recommend placing your OCXs in an embedded file within your deployment file structure.
    That will make it much easier when you deploy your project.

  • LabView interface with DLL that uses ActiveX

    I've written a DLL using Microsoft Visual Studio 2005. This DLL uses ActiveX (MSXML4.0). It works fine being called from other applications created in Microsoft Visual Studio. It crashes being called from LabView 7.1. By commenting out everything, I've figured out that it crashes on the call to ActiveX (no problems if this call is commented out). What should I do to make it work?
    I've tried using CoInitialize at the initialization of DLL; it didn't solve the problem.
    Additional information: DLL is using MFC in a Static Library, not using ATL, Character set = Not Set.
    The functions are defined in C calling convention (not __stdcall).
    Please help.
    Thank you.
    Irina Kaliniouk

    Thank you for your answer, but that is not the case. There is no UI in this DLL, but it is using some convinenient MFC classes, like threads, CString, etc. The threading really was not even involved in the example that crashed. The function that crashed was
    selectNodes on MSXML2::IXMLDOMNodePtr. Here is the code:
    MSXML2::IXMLDOMNodeListPtr selectNodes (LPCTSTR expression, MSXML2::IXMLDOMNodePtr pStartNode)
    CComBSTR quesryBstr (expression);
    return pStartNode->selectNodes (quesryBstr.m_str); //_bstr_t(expression));
    where the pStartNode was a root node of
    MSXML2::IXMLDOMDocument2Ptr m_pXMLDoc;
    hr = m_pXMLDoc.CreateInstance ("Msxml2.DOMDocument.4.0", NULL, CLSCTX_INPROC_SERVER);
    I commented out really everything except this function, so there was nothing to corrupt the memory or any other problems.  
    What can be of a problem?
    Thanks.

Maybe you are looking for

  • Migrated from XP Pro 32 Bit to Win 7 Pro 64 Bit

    Used WET, yes another issue with WET, to transfer files from old to new.  I have tried the mig extraction tool and tried transferring back to XP Pro 32 bit machine with no luck.  I do not find the savedata.mig file but I do have a x86 and amd64 direc

  • ICloud Photo Library Differences Across Devices

    I have updated to Photos on my Mac and using iCloud Photo Library and I'm having issues as the number of pictures is different in my Mac, iPhone and iCloud library. I have always used iPhoto as my main library so upon upgrading to Photos, I uploaded

  • Callback with a USR modem

    Ok I have a USR modem plugged into the fax line as well as a 2811 router. Aux line was configured with: 1. rtr-1(config)#line 65 2. rtr-1(config-line)#modem inout 3. rtr-1(config-line)#speed 115200 4. rtr-1(config-line)#transport input all 5. rtr-1(c

  • Can i use LTE in Italy with iPad 3 and iOS 6.1?

    Can i use LTE in Italy with iPad 3 and iOS 6.1?

  • Strange behaviour of Forms 10g

    The BUR trigger on a table in the DB, raises an application error whenever user tries to enter some invalid value in one of the fields in the form. ( the block is Database block, with query data source as Table). So when the user enters a valid value