How Do I Use Examples for Visual C++with NI-DAQ?

我有一张NI6723的卡,用the Measurement & Automation Explorer测试的时候,一点问题都没有。完全安照前面所说的例子(http://digital.ni.com/public.nsf/allkb/0087C1E2092​0F7B986256D9B0061DEE2),我用Visual c++建立工程后,编译没有任何错误。但是运行后就会弹出错误:
[AO_VWrite] returned NI-DAQ error-104041
The specified device is not a National Instruments product,the driver does not support the device (for example,the driver was released before the device was supported),or the device has not been cofigured using the Measurement & Automation Explorer.
请问各位,这是怎么回事?

用TRADITIONAL DAQ可能不支持
M系列有很多卡不支持

Similar Messages

  • How can I use CWGraph3D for Visual C++,How the Variant operate?

    I have a VC++ project that use CWGraph3D to show data.
    How I use it's method Plot3DCurve(VARIANT& xVector,...)
    what's the VARIANT type.
    How do I use the VARIANT type to do this job?

    Thank you for response this question so soon.
    Because I do not have Measurement Studio for VC++,
    I do not have CNiVector data type.
    Now I have CCWSafeArray from Chris Matthews,
    National Instruments.
    I could use it's contructor and AccessData() method
    to create an array like this:
    double xArray[3]={0,1,2};
    double yArray[3]={0,1,2};
    double zArray[3]={7,8,9};
    double wArray[3]={0,0,0};
    CCWSafeArray xSafeArray(xArray,3);
    CCWSafeArray ySafeArray(yArray,3);
    CCWSafeArray zSafeArray(zArray,3);
    CCWSafeArray wSafeArray(wArray,3);
    m_Graph.Plot3DCurve(xSafeArray,ySafeArray,zSafeArray,wSafeArray);
    It works very well.
    But now I would like to use Plot3DSurface() method.
    I write C++ code like this:
    double xArray[3]={0,1,2};
    double yArray[3]={0,1,2};
    dou
    ble zMatrix[3][3]={{1,2,3},{4,5,6}.{7,8,9}};
    double wMatrix[3][3]={0};
    CCWSafeArray xSafeArray(xArray,3);
    CCWSafeArray ySafeArray(yArray,3);
    CCWSafeArray zSafeArray2D(zArray,3,3);//error line
    CCWSafeArray wSafeArray2D(wArray,3,3);//error line
    m_Graph.Plot3DSurface(xSafeArray,ySafeArray,zSafeArray2D,wSafeArray2D);
    It could not work.Complier tell me:
    error C2664: '__thiscall CCWSafeArray::CCWSafeArray(unsigned short,long,long,long)' : cannot convert parameter 1 from 'double [3][3]' to 'unsigned short'
    I don't know what's wrong.

  • How can I use NSDictionaryControllers for 2 dicts with common key?

    I have two dictionaries, both with the same key. Using Interface Builder I can build for each dictionary a two-column table, but I did not find out how to connect their keys so that selecting a line in one table automatically selects the corresponding line in the other table.
    Does there exist a binding between the two controllers that solves the problem? If so, how can it be established?
    (First I tried to use only ONE table - with 3 columns:. This appeared to me the best way. But again I could not establish the appropriate binding.)

    I assume you are using a UITableView to show your data. Remember that the table view does not store your data, only shows a few rows of your collection.
    I would detect a selection in one table, then programatically select the row with the same key in the second table. There would be no connection in IB to do that.
    Mobile table programming guide:
    Table View Programming Guide for iOS
    General programming guide:
    Table View Programming guide
    Jason

  • How to simutaneously use 2 PCI cards, one with traditional DAQ, the other with DAQmx?

    Hi,
    I am currently trying to debug a system that used to work.. but sadly isnt anymore
    A single computer contains 2 PCI cards (6110 & 6036E). The 6110 card is controlled by a fairly old software, programmed in labview, and hence, using Traditional NI-DAQ. The 6036e card is controlled by a more recent soft, programmed in LV as well but using DAQmx.
    the AI/AO of the 6110 card is only momentarily used (20 sec consecutively, every minute) while the 6036E card is continuously receiving and sending data on its AI/AO.
    Now the problem: the program that control the 6036E card freezes every time that the old prog access the 6110 card.. and then it works again perfectly until the next time that the 6110 card is used.
    So my question: how can I make those 2 cards work simultaneously?
    I dont think that it is because of the software nor because of the computer lack of memory/CPU if it used to work in the past. It might be about a wrong configuration of cards in the MAX but I couldnt find anything wrong there (no problem when accessing AI/AO of both cards through "test panel")
    Thank you very much for you help.

    That's what bugs me. The only thing that those 2 cards share is an AO of the 6110 connected to an AI of the 6036.
    For the rest, nothing is common. The 1st program only deal with device1, while the 2nd prog only access dev2. There shouldnt be any problem and everything is working fine separately. Hence, why I was wondering if the traditional daq and daqmx might conflict on a same computer.
    I just cant find out why the 2nd program controling the daqmx card just freeze everytime the 1st program access the traditional card. It actually doesnt freeze completly but becomes soooo slow, with about only 2 iterations of the main while loop during those 15-20 sec (instead of the normal 3-4000 iterations during such a period).
    The computer specs are a 2.2ghz proc for 1G of ram and running XP, so it should be ok.. even though the computer does slow a bit down when the 1st prog access the traditional card.

  • How can i use autoSuggestBehavior for inputText witha separator

    I use JDEVADF_11.1.1.2.0
    how can i use a input Text Field with auto suggest by sepearted
    in a field with what, is separated
    Example Value :"Name1;Name2;Name3......"
    Sorry for my English

    I'm not exactly sure what do you mean here.
    The basics of working with autosuggest are here:
    http://www.connotea.org/user/jdeveloper/tag/auto%20suggest

  • How do I use my late 2011 iMac ( with thunderbolt) as external monitor for laptop/Xbox or other device with hdmi as output.

    May be this question has been asked thousand times. how do I use my mid 2011 iMac ( with thunderbolt) as external monitor for laptop/Xbox or other device with hdmi as output. if apple hasn't removed that feature and has just moved that functinoality to thunderbolt then how can I use it. currently there is no laptop available with thunderbolt output. no 3rd party converter available. whats the use of having feature on latest functionality if we cant use it. I wish they would have made one port has mini-dvi and other thunderbolt for backward compatibility untill some vendor comes up with converter.

    It Says :
    Mac (21.5-inch, Mid 2011) and iMac (27-inch, Mid 2011) and later computers support Target Display Mode via Thunderbolt to Thunderbolt cable (2 m) when the source is another Thunderbolt-equipped computer.
    Name one computer model/vendor which has thunderbolt as output for display + audio. this is so stupid to move to new technology without availbility of its compatible devices.

  • How do i use ibooks for saving my lecture notes / power point slides please?

    Hi, how do I use ibooks for savng / storing my lecture notes on please? (on either a iphone or ipad). Also, can I save powerpoint slides to it too? thanks.

    iBooks can only read two formats -- .epub and pdf.  So you have to convert your lecture notes or powerpoints to one of those.  To do that, check the Save, Export, or Share functions of whatever app you are using to create your notes.

  • I have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    i have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    Chris, I believe this link may have the information you're looking for. Welcome to discussions!
    http://docs.info.apple.com/article.html?artnum=300432

  • How can I use TopLink for querys that have two and more tables?

    I use TopLink today, and I can use one table to query, but how can I use TopLink for querys that have two and more tables?
    Thank you for see and answer this question.

    You can write a custom SQL query and map it to an object as needed. You can also use the Toplink query language "anyOf" or "get" commands to map two tables as long as you map them as one to one (get command) or one to many (anyOf command) in the toplink mapping workbench.
    Zev.
    check out oracle.toplink.expressions.Expression in the 10.1.3 API

  • How can I use OCCI for oracle8.1.6?

    my database is oralce8.1.6 for solaris8.
    I want to develop database application by OCCI .
    But only oracle9i has OCCI.
    How can I do?
    Where can I get OCCI ,and how can I use it for oralce8.1.6?
    thank you very much!!

    OCI is available for all versions of Oracle including Oracle
    7/8/8i etc. However it is not installed by default with these
    versions. I am assuming that the default 9i installation
    includes OCI. You should be able to install OCI for other
    versions through one of the development platforms e.g. ProC/C++
    etc.

  • How can i use AME for the new OAF page.

    Dear all,
    I have developed a new OAF page and registered under Employee Self Service.
    How can i use AME for the approval process.
    Appreciate your ideas?
    zamora

    I will try to answer based on my experience of working with iProcurement and AME. It depends on how you want to make a call to AME , directly from OAF Page or from Workflow and your requirement. You didn't specify what you want to show the users on OAF Page and your business requirement.
    Before calling AME Engine from the OAF page or workflow, I guess you did already setup AME Transaction Type and it's Approval Groups, Conditions, Action Types and Rules. Do some testing from AME Business Analyst Test Workbench. Please note that, AME provides lot of PL/SQL API's that you have to call from your programs (java or workflow pl/sql)
    Let's look at the workflow and putting an OAF Page as notification.
    As Sameer said, you have kick-off workflow process from PR of CO and with in the workflow function, you make a call to AME Engine API's with the AME Transaction ID. This transactionId belongs to the AME Transsaction Type that you setup. Based on the rules setup, AME Engine generates list of approvers/approver and stores them AME Tables for that transactionId. Then, it sends a notification to the approver.
    In the workflow, where that notification is defined, in the message body you have to put an attribute(&XX_WF_FWK_RN) of type document/send. And this attribute will have the constant JSP:/OA_HTML/OA.jsp?OAFunc=XX_FUNC&paramId=-&DOCUMENT_ID-. This function is SSWA Jsp function that makes a web html call to your OAF Region.
    If your requirement is to just show the list of approvers on the OAF Page, you may have to call AME API diectly passing your AME TrasnactionId with other parameters. Then AME generates list of approvers and stores them in AME tables with each approver status. You can pickup those approvers using VO and show them on OAF Page.
    Hope this gives some idea.

  • How can i use RTFEditorKit for JTextField.

    hi all,
    how can i use RTFEditorKit for JTextField.
    thanks in advance
    daya

    Don't cross post. This is a Swing related question and you have already posted in the Swing forum:
    http://forum.java.sun.com/thread.jspa?threadID=619619&tstart=0

  • How can I use Siri for IPhone?

    How can I use Siri for IPhone?

    Siri only works on the iPhone 4S or iPhone 5. If you have one of those devices, turn it on in Settings > General > Siri.
    If you need more info than that, ask in the Apple forums.

  • How can I use music for ringtones on my iphone 4?

    How can I use music for ringtones on my iphone 4?

    You can take any MP3 file that it 40 seconds or less and change the file extension to M4R. Then drag it into iTunes. It will appear under Ringtones and transfer over next time you sync,

  • How to use itunes for making video with software Studio

    How can I use my downloaded music files with my video making software?

    Purchased music from the iTUnes store is in a "AAC protected" format. It can only be used in iTUnes. Any music you buy online these days will have some protection on it where you can only use it in there program.
    The way around this is to burn the purchased songs to a CD in iTUnes. Then goto edit>preferences>advanced tab>Import sub tab and set your import settings to something like MP3.
    Now put the burned CD back in the PC and "Re"import it into iTunes so its imported in a MP3 format so you can use it in any program. Before importing it tho you need to manually add the name of the song, artist album ect ect

Maybe you are looking for