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

Similar Messages

  • 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

  • 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 can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Can´t read dvds or burn dvds using Lion

    Can´t read dvds or burn dvds using Lion. I´ve read some articles and suggests to reset the Nram and Pvram .. Any idea?
    Can I discard a technical problem of the unit.. I can´t use de Apple Hardware Test program because it is on a dvd

    Try a SMC reset on your imac http://support.apple.com/kb/HT3964

  • 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.

  • Beginner question - Can't read nor write a file using NetBean...

    Hi ,
    I'm a beginner java programmer, I got trouble when it comes to read or write a file program..
    I tried 3 programs and all of them can't read the file I want to read, eventhought I have put the txt file in the same folder with my source code.
    here is the source code I got from some site
    import java.io.*;
    class FileReadTest {
    public static void main (String[] args) {
         FileReadTest f = new FileReadTest();
    f.readMyFile();
    void readMyFile() {
    DataInputStream dis = null;
    String record = null;
    int recCount = 0;
    try {
    File f = new File("mydata.txt");
    FileInputStream fis = new FileInputStream(f);
    BufferedInputStream bis = new BufferedInputStream(fis);
    dis = new DataInputStream(bis);
    while ( (record=dis.readLine()) != null ) {
    recCount++;
    System.out.println(recCount + ": " + record);
    } catch (IOException e) {
    // catch io errors from FileInputStream or readLine()
    System.out.println("Uh oh, got an IOException error! " + e.getMessage());
    } finally {
    // if the file opened okay, make sure we close it
    if (dis != null) {
         try {
    dis.close();
         } catch (IOException ioe) {
    I also have tried another from book , both of them give the same result, can't read the file...
    Please help me with this...
    Thank you very much

    To start with use the full path to the file
    i.e. File f = new File("c:\\the\\full\\path\\to\\your\\file\\mydata.txt"); // Assumes a Windows platform using the C drive
    Then check to make sure you fiel exists e.g. System.out.println("File exists = " + f.exists());
    You can even test to see if the file is readable but since you created the file this porbably is not required.

  • 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.

  • How can I communicate the instrumnet in labview using RS485 interface?

    I am using NI USB RS485 to connect the instrument, but I donot have instrument driver,I have to use VISA write and read data. the connection and serial setting are correct, I used a software ModScan32 from win-tech, the communication works well. I want to use the labview as my platform, How can I use VISA? please give me any clue or sample code. the instrument has a Modbus commmunication protocol.ThankS!

    Hi,
    VISA allows you to send/receive string data to/from the instrument. Serial communication with RS-485 is just like RS-232, so any of the labVIEW examples on serial will work. For serial you basically need to use VISA Read and write, that's it.
    If you need information on what to send, you can check out the modbus website (www.modbus.org) and the documentation for the device.
    Hope this helps.
    DiegoF
    National Instruments.

  • How can you read datalog files in LabVIEW?

    I have a VI that records time and waveform data and writes them as a cluster to a datalog file. I have been unable to read these files in any way, however. I have been working with the datalog examples in LabVIEW, but I have not been able to figure out how to use the Read Datalog File example effectively. Does anyone have any suggestions on how I can either use this example to read waveforms, or how I can design a VI to read datalog files in another way? Thanks.

    Hi,
    when you read from a datalog file you have to wire to the datalog type input of the Open File function a cluster of the same type as the clusters when you created the file; each cluster is a record.
    In the example Write Datalog File Example.vi you see that each record consists of a cluster containing a string and 1D array of DBL; in the Read Datalog File Example.vi a cluster of exactly the same type is wired to the datalog type inputs.
    You can use this example to read your datalog files but you must wire to the datalog type input a cluster containing the time data and a waveform data; pratically you have to tell how the data are saved in your file.
    I hope I have been clear enough, eventually if you tell me how you save the time data (string, numeric) I
    can modify the example to read your datalog files.
    Good luck,
    Alberto

  • How can i read XML from local drive using Javascript into Live Cycle

    Hello,
    I am creating PDF Form using Acrobat LiveCycle.
    I want to write java script for load data into relative field and data present into xml file which is located at local drive
    I have write all method for parsing xml which is required ............... but i am stuck into how to read/open/load local drive xml using javascript?

    sandyrock:
    You'd better post this message to Adobe LiveCycle forum: http://www.adobeforums.com/webx/.3bbeda8d/
    You can use postMessage method in LiveCycle JavaScript to communicate with host application,the host application can be a web brower like IE.
    In IE you can use IE javascript to access local XML file.

  • How can I read bytes from std input using nextByte()

    Hi. I am trying to read input text from std input into a byte array. I used the following procedure but have been getting errors
    Scanner myScanner = new Scanner(System.in);
         do{
              List[i] = myScanner.nextByte();
              i++;
         }while(i<List.length);
    When i try to print the List array after this loop, i get an InputMismatchException and Unknown Source error. What could be responsible for this?
    Thanks

    i don't really know what you're trying to do, but try this:
    maybe it helps you out.
    byte List[] = new byte[10];
            for (int i = 0; i < List.length; i++) {
                Scanner myScanner = new Scanner(System.in);
                List[i] = myScanner.nextByte();
            }this code creates an array of byte elements. the length of the array is 10 ( = new byte[*10*]). the for loop let's you fill the array with byte numbers over the keyboard.
    good luck

  • Can v read a client text file using SQL*plus??

    We have a requirement like this: We need to read a text file to find spelling mistakes. Problem is the file has to be always moved to the DB machine, which is a Linux box and then run a stored procedure which uses UTL_FILE. Now in order to show the spelling mistakes of the file the user will have to again copy the file with the spelling mistakses (output file) from Linux to Windows.
    Is there a way to do it using SQL*Plus, where the text file is in the client machine???? Then users don't have to copy the file to and from the Linux box.

    SQL*Plus is a client software and whatever code you write using SQL*Plus, it ultimately run on the server. So the answers to your question is "no".

Maybe you are looking for

  • ITunes is asking for credit card details to download free apps

    I've never had an apple product before so im new to this, but i now have an iPhone 3GS on IOS 4.1. I can't update the iPhone as i have it unlocked and it will remove the patch. I know that to download apps you need to put in card details, but i dont

  • Album artwork one song lag or delay with streaming music

    while streaming to ATV 1st the album artwork displayed is from the prior song

  • How to get edited VOB files into iDVD?

    Hello all, This is actually a bunch of questions, not all of which are related to iDVD, but I didn't really know where else to post this. I have just ripped a DVD with MacTheRipper and have a bunch of VOB files in a VIDEO_TS folder that I would like

  • No ResiltSet column names in OMNIS ODBC

    Hi all Our java application successfully connects to various different databases through JDBC or JDBC-ODBC bridge. Whe are now trying to connect for the first time to an OMNIS database. We get the error 'Column not found' and found out that this erro

  • Get Computer Name

    I think there was a VI 'Get computer name' somewhere in the GToolbox (or former LVutil). I cannot find it - any hints? I need the name of the computer the program works on because it communicates with another application via TCP/IP and I would like t