Using measuremen​t studio classes in VC++ applicatio​n

How to identify the devices connected in the GPIB interface using measurement studio NI VISA classes with VC++ 2005 application? Please provide a sample.

Hello, if you have installed support for Visual Studio, then you will be able to find the examples in the following folder
C >> Documents and Settings >> All Users >> Documents >> National Instruments >> NI-488.2 >> Languages >> MStudioVC2005
I am assuming that you are running Windows XP and that you have turned on hidden folders.
Christian A
National Instruments
Applications Engineer

Similar Messages

  • Unable to Build VC++ applicatio​n it showing error 1 LINK : fatal error LNK1104: cannot open file 'NiFieldPo​int71D.lib​' but I am Using Measuremen​t Studio 2009

    I am Migrating a application in Visual Studio 2005.
    In my development PC I was install the Measurement Studio 2009
    my application is Showing following error:
    1>Linking...
    1>LINK : fatal error LNK1104: cannot open file 'NiFieldPoint71D.lib'
    1>Build log was saved at "file://c:\EdacsNt\Source\SaftyServices\NICfpDAQDll\Debug\BuildLog.htm"
    1>NICfpDAQDll - 1 error(s), 0 warning(s)
    In the project Setting I am done following setting
    "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"
    C:\Program Files\National Instruments\NI-DAQ\Lib"
    but in  "C:\Program Files\National Instruments\MeasurementStudioVS2005\VCNET\Lib";"  directory Not having the 'NiFieldPoint71D.lib' because Measurement Studio 2009 not provide this dll.
    Please provide some solution.
    Thanks
    Nityanand

    You posted this in the LabVIEW forum.
    Are you programming in LabVIEW?
    There is a separate Measurement Studio for VC++ forum. http://forums.ni.com/t5/Measurement-Studio-for-VC/bd-p/231

  • How to use a Measurement Studio class in MFC

    I am new to MFC coming over from VB.NET.
    I have created a VISA class to measure something from an instrument and have a simple dialog box with a Button to invoke the measurement and display it to a text box. I changed the ID of the control and made a member variable for the text box and can code the OnButtonClick event to display text in the Text box as a test.
    The problem is I cannot seem to create an object of the Visa Class that I built in the OnBnClickedRun()function. I can code the OnInitDialog() to make this measurement:
    double power;
    CGetBandPower BPower;
    BPower.Run(power);
    but want to do it when I click on the button. I am using VS.NET 2003 with Measurement Studio 7.0.
    Help

    Hello,
    I think the following other discussion forum post contains useful information for you:
    http://forums.ni.com/ni/board/message?board.id=232&message.id=1306&requireLogin=False
    In particular, read the posts by the names in blue... you'll find paths to great examples which should help you use VISA in the .NET environment.
    Repost if you continue to have any problems!
    Thank you,
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • How can I obtain a scope like presentati​on using measuremen​t studio and VB?

    I would like to use the scope active X control provided in Measurement Studio to provide an oscilloscope presnetation of data acquired using the NI 6110 high speed digitizer boards.
    Is this possible?
    Some sample code would be helpful.  I am used to setting up virtual channels in the Measurement and automation software and then referencing the virtual channel number in the properties of the active x control in VB.  I can't figure out how to accomplich this with the scope active x control.
    Thanks

    Hello Cubby!
    I am assuming when you say you want to use the Scope ActiveX control in
    VB6 that you are refering too the IVISCOPE activeX control.  This
    control will allow you to have the O-Scope type interface with little
    to no programming.   Please notice this will be different
    then using MAX because you will need to have an IVI session of your
    scope set up.
    After Adding this component to your project simply lay it on the
    form.  Next in the property page associated with the control find
    the 'Custom' property.  Click on the '...' button inside the
    property which will bring up a attribute page.  Finally, select
    your IVI scope session that was configured in MAX or if your using an
    NI scope board enter the resource in the DAQ::x::INSTR format.  To
    verify that everything is setup correctly click on the 'Configuration'
    tab and click the Verify button.
    For further help see....
    http://digital.ni.com/public.nsf/websearch/CEECFCB​F5015AB6F862568A100640EB0?OpenDocument
    If you have more questions please feel free to ask.  I could not
    locate any example code,  but you should be able to get it working
    by simply configuring the control correctly.  Have a great day!
    Allan S.
    National Instruments

  • How can I use Measuremen​t Studio components in SharpDevel​op?

    I tried to use NationalInstruments.UI.WindowsForms.Led in sharpdevelop (http://www.icsharpcode.net) and I got a message about the product not being licensed for use with this program. Is it possible to attain licensing for use with sharpdevelop or is Visual Studio .NET required?

    SharpDevelop does not support the .NET Framework licensing model (particularly LicenseManager and LicenseContext), so unfortunately there is not a way to use licensed controls in the current version (0.99b) of the SharpDevelop Windows Forms designer.
    Visual Studio .NET is the recommended environment for the Measurement Studio UI controls. Another option is Borland's C# Builder, which also has a Personal edition that is free for non-commercial development and can be downloaded from the C# Builder downloads page.
    - Elton

  • Synchroniz​ation of PCI devieces via the RTSI bus using the measuremen​t studio for Viusual Basic 6

    Hi everyone,
    I would like to synchronize a NI 4474 A/D card with a NI 6733 D/A card via the RTSI bus. Is there any way of sharing the timebase using the measurement studio for VB 6.0? It seems like it could be possible using the traditional NI-DAQ .DLL but I would prefer to do it with the ActiveX API.
    I am quite desperate, since all my attempts to use the CWDAQTools1.RouteSignal and CWDAQTools1.RouteRTSI command failed miserably :-(
    Thank you very much in advance!
    Federico

    Thank you very much indeed!
    Unfortunately it doesn't really work... I cannot use the DI options since my A/D card (NI 4474) does not support DI/DO... When using the other option (CWDAQTools1.RouteRTSI) I keep getting an error message that this command is inapropriate for my device (even though it does have a RTSI bus and allegedly it also supports time sharing...)
    Looking forward to your answer!
    Kind regards
    Federico

  • JSF using Sun Java Studio Creator 2

    hi every body:
    i developed an application using Sun Java Studio Creator 2 , now by default the url patterns the creator generates is like this:
    ...../faces/page1.jsp
    now i want the ,, i need to change the extension of the page , so i want to replace it from .jsp to .abc for example , and i want to remove the /faces prefix for each page....
    that's all
    thanks in advance

    Modify URL-PATTERN for your Faces Servlet from /faces/* to *.abc in web.xml
    change
    <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
      <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>to
      <servlet>
           <servlet-name>Faces Servlet</servlet-name>
           <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
           <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.abc</url-pattern>
        </servlet-mapping>hope that might help :)
    REGARDS,
    RaHuL

  • How to load image to midlet using SUN ONE Studio 4, ME?

    Hi, everyone:
    I'm trying to load an image to my midlet using Sun ONE Studio.
    Image image = null;
    try
    image = Image.createImage("/Duke.png");
    }catch (Exception ex) {}
    ImageItem item = new ImageItem(null,image,ImageItem.LAYOUT_CENTER,null);
    append(item);
    I copied Duke.png in the same directory with midlet class file. But I can't see the image. I can get correct result by using J2ME wireless toolkit.
    Anybody know how to use Sun ONE Studio to load image?
    Thank you in advance!

    Hi, everyone:
    I'm trying to load an image to my midlet using Sun ONE
    Studio.
    Image image = null;
    try
    image = Image.createImage("/Duke.png");
    }catch (Exception ex) {}
    ImageItem item = new
    m = new
    ImageItem(null,image,ImageItem.LAYOUT_CENTER,null);
    append(item);
    I copied Duke.png in the same directory with midlet
    class file. But I can't see the image. I can get
    correct result by using J2ME wireless toolkit.
    Anybody know how to use Sun ONE Studio to load image?
    Thank you in advance!
    Hi,
    I have the same problem that you had with the path to the .png file in
    sun one studio 4, ME.
    Have did you solve it?
    I have all my .java files and the .png file in the same dir. and
    the call for creating the Image look like this:
    logo = Image.createImage("/splash3.png");
    and it does not work.
    The .png file is in the jar content.
    Will be thankful for all help!

  • Webboard project using sun java studio creator 2

    I would like to create a simple webboard using Sun Java Studio Creator 2. In the View Topic page, there are a subject and a message creator by the owner of the subject. Then there are messages reply by others. I use Table component to list all the messages. I put a Static Text and a Text Area component in a group panel. And put a group panel in a Table Column. I bind the the reply message with the Text Area.
    My problems are...
    1. The Text Area have the same value for every row.
    2. I changed the Text Area to Static Text. The binding is successful. However, it cannot display multiline message. Please suggest a component that is more suitable to bind the variable lines message. I would like each row to have different height depending on the length of the message.
    My jsp is as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <ui:page binding="#{ReadTopic.page1}" id="page1">
                <ui:html binding="#{ReadTopic.html1}" id="html1">
                    <ui:head binding="#{ReadTopic.head1}" id="head1">
                        <ui:link binding="#{ReadTopic.link1}" id="link1" url="/resources/stylesheet.css"/>
                    </ui:head>
                    <ui:body binding="#{ReadTopic.body1}" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{ReadTopic.form1}" id="form1">
                            <ui:staticText binding="#{ReadTopic.staticText1}" id="staticText1" style="left: 120px; top: 24px; position: absolute"/>
                            <ui:messageGroup binding="#{ReadTopic.messageGroup1}" id="messageGroup1" style="position: absolute; left: 432px; top: 24px"/>
                            <ui:staticText binding="#{ReadTopic.staticText5}" id="staticText5" style="left: 120px; top: 72px; position: absolute" text="#{ReadTopic.topicGetNameDataProvider.value['topic.Owner']}"/>
                            <ui:staticText binding="#{ReadTopic.staticText6}" id="staticText6" style="left: 120px; top: 120px; position: absolute" text="#{ReadTopic.topicGetNameDataProvider.value['topic.Subject']}"/>
                            <ui:label binding="#{ReadTopic.label1}" id="label1" style="position: absolute; left: 24px; top: 24px" text="Topic No:"/>
                            <ui:label binding="#{ReadTopic.label2}" id="label2" style="position: absolute; left: 24px; top: 72px" text="Owner:"/>
                            <ui:label binding="#{ReadTopic.label3}" id="label3" style="position: absolute; left: 24px; top: 120px" text="Subject:"/>
                            <ui:button action="#{ReadTopic.button1_action}" binding="#{ReadTopic.button1}" id="button1"
                                style="left: 23px; top: 168px; position: absolute" text="Reply"/>
                            <ui:table augmentTitle="false" binding="#{ReadTopic.table2}" id="table2" style="left: 24px; top: 216px; position: absolute; width: 0px" width="0">
                                <script><![CDATA[
    /* ----- Functions for Table Preferences Panel ----- */
    * Toggle the table preferences panel open or closed
    function togglePreferencesPanel() {
      var table = document.getElementById("form1:table2");
      table.toggleTblePreferencesPanel();
    /* ----- Functions for Filter Panel ----- */
    * Return true if the filter menu has actually changed,
    * so the corresponding event should be allowed to continue.
    function filterMenuChanged() {
      var table = document.getElementById("form1:table2");
      return table.filterMenuChanged();
    * Toggle the custom filter panel (if any) open or closed.
    function toggleFilterPanel() {
      var table = document.getElementById("form1:table2");
      return table.toggleTableFilterPanel();
    /* ----- Functions for Table Actions ----- */
    * Initialize all rows of the table when the state
    * of selected rows changes.
    function initAllRows() {
      var table = document.getElementById("form1:table2");
      table.initAllRows();
    * Set the selected state for the given row groups
    * displayed in the table.  This functionality requires
    * the 'selectId' of the tableColumn to be set.
    * @param rowGroupId HTML element id of the tableRowGroup component
    * @param selected Flag indicating whether components should be selected
    function selectGroupRows(rowGroupId, selected) {
      var table = document.getElementById("form1:table2");
      table.selectGroupRows(rowGroupId, selected);
    * Disable all table actions if no rows have been selected.
    function disableActions() {
      // Determine whether any rows are currently selected
      var table = document.getElementById("form1:table2");
      var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
      // Set disabled state for top actions
      document.getElementById("form1:table2:tableActionsTop:deleteTop").setDisabled(disabled);
      // Set disabled state for bottom actions
      document.getElementById("form1:table2:tableActionsBottom:deleteBottom").setDisabled(disabled);
    }]]></script>
                                <ui:tableRowGroup binding="#{ReadTopic.tableRowGroup2}" id="tableRowGroup2" rows="10"
                                    sourceData="#{ReadTopic.topicdetailDataProvider}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{ReadTopic.tableColumn4}" id="tableColumn4" width="80%">
                                        <ui:panelGroup binding="#{ReadTopic.groupPanel1}" id="groupPanel1" style="height: 94px; width: 238px">
                                            <h:panelGrid binding="#{ReadTopic.gridPanel1}" border="0" columns="2" id="gridPanel1" width="100%">
                                                <ui:label binding="#{ReadTopic.label4}" id="label4" text="No:"/>
                                                <ui:staticText binding="#{ReadTopic.staticText11}" id="staticText11" text="#{currentRow.value['topicdetail.No']}"/>
                                                <ui:label binding="#{ReadTopic.label5}" id="label5" text="Name:"/>
                                                <ui:staticText binding="#{ReadTopic.staticText12}" id="staticText12" text="#{currentRow.value['topicdetail.Name']}"/>
                                                <ui:label binding="#{ReadTopic.label6}" id="label6" text="&#3586;&#3657;&#3629;&#3588;&#3623;&#3634;&#3617;:"/>
                                                <ui:staticText binding="#{ReadTopic.staticText10}" id="staticText10" text="#{currentRow.value['topicdetail.Message']}"/>
                                            </h:panelGrid>
                                        </ui:panelGroup>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
    </jsp:root>

    Modify URL-PATTERN for your Faces Servlet from /faces/* to *.abc in web.xml
    change
    <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
      <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>to
      <servlet>
           <servlet-name>Faces Servlet</servlet-name>
           <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
           <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.abc</url-pattern>
        </servlet-mapping>hope that might help :)
    REGARDS,
    RaHuL

  • Measuremen​t Studio ActiveX graph control vs LabWindows graph control

    Hello,
    we are redesigning our software and in this context we are deliberating whether to replace the LabWindows CVI graph controls with the Measuremnt Studio ActiveX graph control in our software. Can we be sure that the ActiveX Graph control provides the same functions as the LabWindows CVI grahp control? We are using almost everthing of the graph control. Is there any documentation about the differences?
    The other question for us is: is the ActiveX graph control just as performant as the LabWindows CVI graph control?
    Thanks for reply
    InoSw

    Now I understand. In that case, the MStudio ActiveX control probably will work better for you. We don't have any side-by-side comparisons of the graph controls, but I can tell you that the ActiveX graph does support Cursors and I am not aware of any specific limitations to the ActiveX graph compared to the CVI graph. We also do not have documentation for those controls online, so you will have to install Measurement Studio in order to view the help for those controls.
    When I said that MStudio is now targeting .NET, I mean that Measurement Studio no longer supports VB 6 or C++ MFC and only supports .NET. This may change in the future as technologies change, but for now the focus is on .NET support. Primarily C# and VB .NET. You can use the Measurement Studio .NET class libraries in Managed C++, but you will not have assistance from Measurement Studio's Visual Studio integration features. Also, all the help and support resources are for C# and VB .NET, so there are no examples or code snippets to help you get started. Even though Measurement Studio for C++ MFC is now legacy, you will likely have a better expereince with unmanaged C++ than Managed C++. However, I have never worked with QT before, so I cannot comment on that.
    National Instruments
    Product Support Engineer

  • Measuremen​t Studio 6 - PCI 6014

    I'm using Measurement Studio 6 to make a sinusoidal wave with a PCI 6014. I've an error when i use the examples containing the CNiFgen class. I would like to know if it's possible to use Measurement studio with this card ?
    It seems there is a problem with the device name (resource name). The example tells to use "DAQ::1"
    Thanks. (Sorry for my english)

    Hello,
    The NI-FGEN drivers do not support the E series boards such as the PCI-6014. To generate a waveform with this board, you have to use the NI-DAQ drivers.
    To use the NI-DAQ drivers with Visual C++ 6.0, you will directly use the Traditional NI-DAQ library. You will find examples in the "...\National Instruments\NI-DAQ\Examples\VisualC" folder.
    If you develop with Visual Basic 6.0, you should use the Measurement Studio CWDAQ classe. You will find examples in the "...\National Instruments\MeasurementStudio\VB\Samples\DAQ" folder.
    Regards,

  • Using Timer and TimerTask classes in EJB's(J2EE)

    Does J2EE allow us to use Timer and TimerTask classes from java.util package in SessionBean EJB's ( Statless or Statefull )?.
    If J2EE does allow, I am not sure how things work in practical, Lets take simple example where a stateless SessionBean creates a Timer class
    and schedules a task to be executed after 5 hours and returns. Assuming
    GC kicks in many times in 5 hours, I wonder if the Timer object created by survives the GC run's so that it can execute the scheduled tasks.
    My gut feeling says that the Timer Object will not survive.. Just
    want to confirm that.
    I will be interested to know If there are any techiniques that can make
    the usage of Timer and TimeTask classes in EJB's possible as well as reliable with minmum impact on over all performance.

    Have a look at J2EE 1.4. I think they add a timer service for EJBs there...
    Kai

  • How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012

    Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
    the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
    again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column  at all. 
    Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.

    Alex,
    This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find. 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • General Overview on How to use Final Cut Studio to create a Blu-Ray DVD

    I am a new user of Final Cut Studio and need an experienced user to give my a progression guide on how to create a Blu-Ray DVD of my recent Alaska Trip. Last month I spend 8 days in Alaska visiting Denali and Juneau primarily. During that time I took about 100 short video clips (HD 1080p) and 570+ still photos with my Canon 7D. I have experimented with some pieces of the software and have created a Blu-Ray disk using Final Cut Pro and Compressor. However my goal is to create this DVD with menus that will play short clips (some narrated) and still photos(also some narration). I did a short one in DVD Studio Pro this morning but need some general guidance on what progression and programs to use to create this project. I was not able to take my video from the Studio Pro Sequence I created for my 1st DVD I had to take the original clips which were processed using Apple ProRes 422 and copy them in one at a time and then find the audio (on the voice overs) I created and also place them into DVD Studio Pro one at a time. I obviously need some guidance on the proper progression.
    Any help would be greatly appreciated.

    Here's the situation...
    DVD Studio Pro will not do the trick for you - it doesn't do blu-ray discs. If you want to do Blu-ray you've got to use either Final Cut Pro's "Export" command or Compressor's "Burn Blu-ray disc" template. The downside to both of these approaches is that you can't burn more than one title (or movie, etc.) using Final Cut Studio.
    To do what you want to do, you need Toast (at least). Toast will auto-generate menus but will let you put more than one title per slide (so you can put multiple slideshows on the same disc).
    If you want to do full-on customizing of menus and multi-level menus, for that you need Adobe's Encore.
    My suggestion - Get Toast. Encore is close to $800.
    Here's your progression (at least the one I use).
    Edit in Final Cut Pro (ProRes 422 is fine, ProRes 422 LT would do the trick as well)
    Export as QuickTime movies (original settings)
    In Compressor using the H.264 for Blu-ray setting and Dolby Digital setting and create elementary streams for video (.264 file) and audio (.ac3). Make sure these files have identical names except for the extension.
    Using toast, add the video file to the Toast project and it'll find the audio file.
    Burn away!

  • I would like to know how to transform an API C++ application in MFC C++ application to use the measurement studio components or Labwindows CVI

    I don t know the way used to transform a C++ with API program in an MFC application using measurement studio or Labwindows CVI.
    Thank you for you help.

    You can use the Measurement Studio Add/Remove Components Wizard to add Measurement Studio components to your C++ application. For more information, see the "Adding and Removing Components from Measurement Studio Projects Using a Wizard" topic in the Measurement Studio reference. You can find it in the table of contents under:
    Visual C++ Help
    Tutorials
    Measurement Studio for Visual C++ 6.0
    If you're using the Measurement Studio update for Visual C++ .NET, this topic will be under:
    Visual C++ Help
    Tutorials
    Measurement Studio for Visual C++ .NET
    - Elton

Maybe you are looking for

  • Lightroom 4.4.1

    I have an folder with approx 500 photos that have been optimised in the Develop module (aspect ratio set at AS SHOT)  and exported to photo lab for 2 x 3 prints. Now I need to use these same images for a slideshow and set an aspect ratio of  16 x 9 

  • Preparing iPhotos for an iBook

    Over the years I've tried to avoid photos uploaded to Apple for an iBook from being printed too darkly.  In printing circles it's often called "press gain."  In short, I'm just about ready to upload pictures for an iBook and I want to avoid getting b

  • Captivate 8 glossary import from xml not working

    Hi, I am trying to import glossary of 110 words into captivate 8 using xml file.  It says successfully imported but nothing shows up in the glossary table.  I checked the xml file several times, it looks OK but still unable to import it to captivate

  • Cant hear sound on tv shows bought from itunes

    i downloaded tv shows and movies from itunes.  video is fine but no sound

  • Looking for a complete tutorial for Oracle forms buider 10g

    Hello, i'm a new oracle developer, actually i'm working on new project and i have to use the Oracle products. So, if someone has a complete tutorial for forms builder 10g,tell me where i can find it or send to me. thank you.