Any example for a MFC, WTL or Win32 without Measurement Studio?

It seems that NI wants you buy their Measurement Studio which can easily cost you a fortune. I am looking around a simple example for MFC, WTL without touching the measurement studio. But if you do not have measurement studio, NI only gives you very old examples in ANSI C which is difficult to implement to MFC or WTL. Apparently they want to increase their revenue by forcing you to buy the Measurement Studio. But I will not buy their hardware in the future if this is their strategy.
Anyone successfully implement the ANSI C example to MFC or WTL without measurement studio? Can you share an example?

Junqi,
Im a little confused with this request in general. What development environment are you using? Visual Studio? Also, what language are you coding in? We provide C, C#, VB.net, and legacy VB6 examples with our DAQmx driver that do not require measurement studio. They can be found in documents\National Instruments\NI-DAQ\Examples 
Now forgive me if Im misinformed about this, but MFC and WTL are just libraries that have some of the windows API wrapped into them, correct? If so, I dont see how interfacing with them is any different than interfacing with any other library, or why this would cause issues with doing DAQ calls. If you need help with the MFC or WTL library, there are many good places to find help with on the internet. MSDN, codeproject.com, and many others come up as having examples of using MFC in various projects.   
The MS examples dont install withough MS because they wouldnt be able to be used because they use libraries that are installed with measurement studio, so they would be nonfunctional and largely useless. 
Regards,
Kyle Mozdzyn
Applications Engineering
National Instruments
Regards,
Kyle M.
Applications Engineering
National Instruments

Similar Messages

  • C# Examples of GPIB Programming without Measurement Studio

    I am trying to find examples of programming a gpib instrument with C#, but without Measurement studio. I am trying to cross the managed/unmanaged barrier and do not want to take any unnecessary performance hits.

    Hello,
    There is a very good reference on the functions that you can call for GPIB in C or C++. Once you have installed the 488.2 driver, if you go to Windows»Start»Programs»National Instruments» NI-488.2 »NI-488.2 Help.
    It will contain all the functions that you can use.
    Here I attached a C code for LabWindows/CVI which contains also some functions for a front panel. The important thing is to see how you use the ibdev, or ibwrt or ibrd commands.
    Basically what you need is the functions I just mentioned.
    You can find more examples in the Developer Zone. Look for CVI examples for GPIB and will be matter of just reading the C code.
    Best Regards,
    Ricardo Santa Olalla
    National Instruments.
    Attachments:
    gpib.txt ‏9 KB

  • Any example for ENQUEUE_ARRAY for JMS compatible messages?

    Is there any examples of using ENQUEUE_ARRAY with messages that are compatible with JMS? either a VARRAY or NESTED TABLE of JMS content?
    I have an after insert trigger that propagates to JMS and in the for each row loop I'd much rather enqueue as a batch than for each individual message.
    It's hard enough getting JMS compatible content working where you are enqueuing just a single message but just what's involved to get this working with batches of JMS compatible messages?

    Hi prajithparan,
    Thanks for the response. I already looked at the link and a few other links in this forum that are related to array inserts/updates. However, I could not find answers to my specific questions. I am specifically concerned with the setup of parameters to the API calls (OCIBindByName and OCIBindArrayOfStruct) that fully reflects the two-dimensional nature of the array of structs that I am trying to insert.
    Moreover, I need to set the data type of the columns to be inserted as SQLT_STR. I think this data type requires the programmer to supply the length of the null terminated C strings as well. If we are inserting just one column, we can provide the length of each of the strings to be inserted into a VARCHAR2 column as part of a OCIBind call, for each of those columns.
    Since in an array insert, we are supplying multiple rows at the same time, how do we supply the lengths of strings to be inserted ? Should it be some form of two-dimensional array ?
    I could not get clear answers to these questions from either the Oracle documentation or the links on this forum. May be the answers are there and I am just missing them ?

  • Any example for Timed ShellScript Discovery with PowerShell Discovery Probe?

    Hi all,
    Kris Bash provided a unix authoring library with many examples for dynamic discoveries for Unix/Linux (Unix/Linux Authoring
    Library). What I am missing here is a timed shell script discovery, using a powershell discovery probe for creating discovery data. There is only a PropertyBag Discovery available.
    Maybe one of you has already implemented such a discovery and can provide this as an example? I tried some things but so far it is not working.
    The idea behind this is to execute a shell script on a linux host that returns several lines. The output should then be parsed by a powershell script that - depending on the output - creates different class instances. Any ideas?
    Regards,
    Holger

    Holger,
    See the blog post here (http://operatingquadrant.com/2011/03/24/operations-manager-%e2%80%93-extending-unixlinux-monitoring-with-mp-authoring-%e2%80%93-part-iii/)
    for an example of using the PowerShellDiscoveryProbe.  It doesn't matter whether this follows a Shell Command or a Shell Script probe, as in both cases you are passing the StdOut output as a parameter to the PowerShell script.  You would parse StdOut
    just as you do in the PropertyBag examples, but use the MOMApi calls to create and return the class instances and properties.
    I hope this helps,
    Kris
    www.operatingquadrant.com

  • JAAS - any example for: Security.setProperty ?

    Hi there,
    I've just started to play with JAAS. I wonder if anyone can provide an example of such file for: login.rule
    When I run my application I get the following error:
    Exception in thread "main" java.lang.SecurityException: C:\workspace\Ds\login.rule (The system cannot find the file specified)
    Assuming I create such file - what should be the content inside?
    Thank You!
    Security.setProperty("login.config.url.1", "file:C:/workspace/Ds/login.rule");

    Hello Friend,
    The detailed instructions for setting up an external LDAP
    provider for WLS 7.0 can be found at the following link.
    http://e-docs.bea.com/wls/docs70/secmanage/realm.html#1172008
    I hope that helps.
    Regards,
    Tom Hegadorn
    Developer Relations Engineer
    BEA Support
    "Friend" <[email protected]> wrote:
    >
    Is there any example I can follow to setup a LDAP as the default security
    realm
    for wls7.0 ?

  • Any example for using LDAP for WLS7.0

    Is there any example I can follow to setup a LDAP as the default security realm
    for wls7.0 ?

    Hello Friend,
    The detailed instructions for setting up an external LDAP
    provider for WLS 7.0 can be found at the following link.
    http://e-docs.bea.com/wls/docs70/secmanage/realm.html#1172008
    I hope that helps.
    Regards,
    Tom Hegadorn
    Developer Relations Engineer
    BEA Support
    "Friend" <[email protected]> wrote:
    >
    Is there any example I can follow to setup a LDAP as the default security
    realm
    for wls7.0 ?

  • Any examples for drawing image in comboBox?

    Hi,
    I don't know how can I list some images in comboBox, can some of you provide an example for me?
    Actually, If I make an own class, which save some parameters and implement the onpaint. Can this object to be drawn in comboBox?
    thanks a lot

    my deadline is coming.., so I need urgent help...
    here is some of my code, can any experts give me suggestions?
    I created a listdata class, to store each items for comboBox:
    class listData
        protected ImageIcon m_icon;
        protected int m_index;
        protected boolean m_selectable;
        protected String m_data;
        public listData(ImageIcon icon, int index, boolean selectable, String data)
            m_icon = icon;
            m_index = index;
            m_selectable = selectable;
            m_data = data;
        public ImageIcon getIcon()
            return m_icon;
        public int getIndex()
            return m_index;
        public boolean isSelectable()
            return m_selectable;
        public String getString()
            return m_data;
    }and I implemented the ComboBoxRenderer as :
    class ComboBoxRenderer extends JLabel implements ListCellRenderer
        public ComboBoxRenderer()
            setOpaque(false);
        public Component getListCellRendererComponent(
                JList list, Object obj, int index,
                boolean isSelected,   boolean cellHasFocus)
            if(obj == null)
                return this;
            boolean selectable = true;
            if(obj instanceof listData)
                listData ldata = (listData)obj;
                selectable = ldata.isSelectable();
                setIcon(ldata.getIcon());
            else
                setIcon(null);
            return this;
    /code]
    and how I setup the comboBox is :....
    if(this.images != null)
    for(int i=0; i<images.length; i++)
    jComboBox_Page.addItem(new listData(images,i,
    true, images[i].getDescription()));
    ComboBoxRenderer renderer = new ComboBoxRenderer();
    renderer.setPreferredSize(new Dimension(86, 86));
    this.jComboBox_Page.setRenderer(renderer);
    am I wrong in some parts ?? Can you help ??
    Thousand Thanks !!!!!

  • Any example for (bounded task flow) popup return value

    I need to know what is the type of popup RETURN VALUE
    any example will be great

    I want to get parameter form popup bounded task flow with NO page fragment (task flow 1) to jsff page from another task flow with page fragment(task flow 2)
    I applied the scenario exist in URL's in first replay and it didn't work
    when I select task flow 1 from inside task flow 2 diagram I found in its inspector page filed called "Dialog Return Value"
    how can I use this field

  • Why can't visual basic 6 load CWDAQ.OCX in the example programs? I am using the latest Measurement Studio 6 and VISTA OS.

    Can someone help me with getting controls to work with Visual basic 6 in an Vista environment?  I cannot get the examples to work that use the CWDAQ.OCX control.  I did a search on my computer and the file is not even there.  What functions are in CWDAQ.OCX?  Is there a descriptions of what functions are included in this control and other controls?  It is not obvious where to find these descriptions. 
    I did install Measurement Studio 6 with all the options for Visual basic 6.
    I am new to programming NI cards with visual basic so any help in getting me started will be greatly appreciated. 
    I need to talk to a PCI-6110 card in visual basic 6.  I would like to preprogrammed the D/A fifos, store to two analog inputs simutaneously, and use some of the digital I/O.  Can someone direct me the direction as to what controls I need to use?
    Thanks in advance for any help or guidance. 
    Tony

    Hi Tony,
    So the reason you can't find the CWDAQ.OCX ActiveX controls in VB 6.0 in Vista is because that is a Tradtional DAQ (legacy) control meant to work with the Traditional DAQ Driver.
    The Tradtional DAQ drivers aren't officially supported in Windows Vista (KnowledgeBase 4FDH4MZN: Traditional NI-DAQ (Legacy) for Windows Vista OS) and so the CWDAQ.OCX controls don't get installed.
    However, the good news is that the PCI 6110 is a newer card that uses our newer driver, NI-DAQmx. DAQmx is supported in Vista and you can communicate to your card from VB 6.0 using DAQmx in Vista.
    There are several examples that show you how to communicate using DAQmx in VB 6.0.
    These can be found in:
    <Users>\Public\Documents\National Instruments\NI-DAQ\Examples
    This is also mentioned in the following Knowledgebase article:
    KnowledgeBase 47CCSQ5B: NI-DAQmx, NI-VISA and NI-488.2 .NET Example Locations
    Also, the DAQmx functions are documented in the following locations:
    Start»Programs»National Instruments»NI-DAQ»NI-DAQmx C API Visual Basic 6.0 Help
    Start»Programs»National Instruments»NI-DAQ»NI-DAQmx C Reference Help
    Hope this helps!!
    Message Edited by Jervin_J on 06-05-2008 02:58 PM
    Jervin Justin
    NI TestStand Product Manager

  • Is there any example for a software transceiver in labview / labview modulation toolkit ?

    hi everyone
    i am sure you have heard of this a lot ..... but i am new (like 20 minutes old) to labview. i am quite fimiliar with matlab and other programming languages. i am doing a project based on software defined radio. for that i understood an example demo from matlab where a fully functional software transceiver has been built as an example.
    now i myself have to do that in labview for the sake of comparison and better real time compatibility with USRPs. i am just getting started and was hopping if there is a similar example in labview or someone else's project. i have installed the modulation toolkit and have gone through its various blocks. i understand that i can build a tranmitter and receiver from scratch but that would take a lot of time and testing. so can anyone help me out in any way.....?
    regards
    khurram

    Hi khurram,
    did you look for examples with the ExampleFinder?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Any examples for loading a Flash video player into a JavaScript layer?

    I want to build a web page with a button that when clicked opens up a javascript layer and loads a flash player inside that layer.  And that layer would need a close button.  Does anyone know of any tutorials to help me do this?
    Thanks!

    Similar subject discussed here:
    http://board.flashkit.com/board/showthread.php?t=819704
    follow thread down to responses by Video Man (aka Adninjastrator) for simple javascript hide/show solution.
    That example needed to be launched from Flash.. so you see the big blue button.
    but just as well could be launched from HTML. sample page here:
    http://www.hiesequim.com/education_center_test.html
    view the source code to see how the overlay and video player are positioned using CSS (#mediaspace2).
    There are a number of ways to implement show/hide, so Google more more info.
    Best of luck,
    Adninjastrator

  • Is there any examples for VB as the "Cont Acq-Int Clk" for ANSI C?

    I wanna acquire  continuous datas using the USB-6008 in VB , but I can't find how to use "EveryNCallback" in VB!
     there is any way to acquire  datas continuing for real time computing in VB?
    Thinks!

    The device can return a set of samples after a amount of sampling(at least 1000 times, that's enough), namely at a longer time.
    Maybe there is RAM in the device which I didn't find on the user guide & specifications.
    Well.Now I have known the bottleneck is the slow reaction of PC.\(^o^)/
    The examples of VB still doesn't work. its parameters settings show in the picture.
    If I set the Sample Rate above 300Hz it show that msgbox after seconds ,if below 300Hz, it can work longer, .
    And if I set like this:
    it can work well,even the Sample Rate up to 10kHz.
    Wait for anyone who can settle this.
    Thanks for your patient help,NIhuyu!
    Yutong Sun
    帖子被gamesun在 10-20-2009 04:51 AM
    时编辑过了
    帖子被gamesun在 10-20-2009 04:51 AM
    时编辑过了

  • Any example for user-defined fuction

    Hi all,
    i need to write user defined fuction , i am very much confused with container and ll this stuffs , pleasse send me example with coding explanation
    thanking you
    sridhar

    Hi,
    How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the Lookup API -
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
      Re: Advanced User Defined Functions - Handling Contexts  
    Posted: Aug 31, 2006 7:45 AM    in response to: Kausik M       Reply      E-mail this post 
    Hi,
    This blog talks about context handling
    /people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
    This is will give you a clear idea and will be hwlpful for sure
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
    Advanced User Defined Functions - Handling Contexts
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
    http://help.sap.com/saphelp_nw04/helpdata/en/40/7b8e40496f6f1de10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/e127f28b572243b4324879c6bf05a0/frameset.htm
    Regards
    Chilla
    <i>reward points ..</i>

  • Are there any examples for programmatically creating OBR 11g rules?

    I am looking for some examples about how to use the API to create rules from Java code as the SDK documentation is very terse. Are there examples out there for creating rules?

    m_userName wrote:
    When you create items in IB, they always appear at a default size (table view cells and nav bars have a height of 44, etc.). Is there anywhere to access these constants in code, for when you are creating elements programmatically?
    Not that I know of.
    When I want the default dimensions for IB Library objects, I generally drag the objects of interest out of the Library, and read the dimensions manually in the Size Inspector. In fact, when I want to create a view programmatically, I often lay it out in IB, then use the Size inspector to get the frame of each subview.
    \- Ray

  • Are there any examples for using a CAN card via XNET on a real time system?

    I am programming a real time application and I have a PXI 8512 card.  My first order of business is to get 5-byte messages from transducers that are broadcasting at 10 Hz on known message IDs.  There are no CAN/XNET samples in my "realtime" CVI sample folder.  I have found some in the nixnet folder but they are Windows based so I have to hack a lot of stuff out of them.
    Thank you.
    Michael Chadwell
    Department of Engine and Vehicle R&D
    Southwest Research Institute

    In other words, I just need to do something very similar to this with no user interface:
    NOTE: See attachment
    Michael Chadwell
    Department of Engine and Vehicle R&D
    Southwest Research Institute
    Attachments:
    CAN Bus Monitor.jpg ‏83 KB

Maybe you are looking for

  • What happens to users' data if their account is deleted?

    I manage a number of macs in our lab. People come and go, and now it's time to delete some old accounts. If I just delete an account in the "accounts" section of system preferences, do their home directories and files therein get automatically delete

  • How to append a character using UTL_FILE pkg

    A table with student_id, student_name and date_of_join. create table student(std_id varchar2(10),std_name varchar2(20),std_doj date);I am loading the data from the below flat file using UTL_FILE package 101   ron   04081999 101   ron   01081996 102  

  • Pay Cycle Manager system check payments with Financial Gateway?

    Can PeopleSoft Payables Pay Cycle Manager be used to system check payment information Financial Gateway? Per PBooks "The Pay Cycle Manager only settles payments of EFT, ACH, and WIR payment methods through PeopleSoft Financial Gateway." However, can

  • How to merge cells in AdvancedDatagrid?

    Hi All, I am using advanced datagrid in my project to show hierarchical data. we have a requirement to merge related cells so that it will look like below (just like row span in html table) 1 1.1 1.2 1.3 2 2.1 2.2 2.3 For column header it can be done

  • How can I access old Entourage emails to import them into Mac Mail after upgrading to OS Lion?il

    How can I access old Entourage emails to import them into Mac Mail after upgrading to OS Lion? I don't really want to go back to Snow Leopard in order to access the old Microsoft Applications, but they simply aren't supported in Lion.