Queston on DAQ using Visual C++

I'm new to DAQ programming. I want to use Visual C++ 6.0 to do data
acquisiton on DAQ card. I can find some examples in NI's package. Although
the examples are said to be VC++ examples, but they are really C style
example, not C++. Does anybody here know where I can get some examples
which use VC++ (using classes, functions etc.). It would be of help if
there are separate functions like
initialization()
acquisiton()
finalise()
in the example.
Thank you so much.

1) Each NI-DAQ function will return an integer. If the integer is 0, then no error occurred. If the integer is negative, the function returned an error. Positive numbers are warnings. The NI-DAQ Function Reference Help file contains a list of error code descriptions. The error handler function used in the examples matches the error codes with these explanations and displays them in a popup box. Many programmers prefer to have error descriptions that are related more to the application they are developing. However, you can still use the NIDAQErrorHandler that the examples use if you want, we just don't document it.
2) DAQmx has advantages over Traditional NI-DAQ in several areas. See KnowledgeBase 2XBDKM7V: What is NI-DAQ 7.0? Overall, it is much easier to use and learn than Traditional NI-DAQ. It exceeds Traditional NI-DAQ in performance and is much more flexible than Traditional NI-DAQ. (It's not simply higher level functions built on top of Traditional NI-DAQ. It's a completely new driver.) Basic as well as advanced applications are much easier to develop in DAQmx. If you are new to DAQ, I would especially recommend learning DAQmx instead of Traditional NI-DAQ. Unfortunately, I just noticed from the README that the DAQCard-AI-16E-4 will not be supported by DAQmx at all. (Sorry to build things up so much.) So I suppose you will need to use Traditional DAQ afterall as long as you're using the DAQCard-AI-16E-4. You could, however, use DAQmx if you switched to one of the DAQCards listed in the KB above in the thread I suppose.
-Russell

Similar Messages

  • My DAQ program uses Traditional NI-DAQ in Visual C++ 6.0. I get error-10609 at SCAN_Start when run

    My data acquisition program uses Traditional NI-DAQ in Visual C++ 6.0. When I run the program, I get error -10609 at the SCAN_Start that states
    A transfer is already in progress for the specified resource, or the operation is not allowed because the device is in the process of performing transfers, possibly with different resources.
    Why do I receive this error?

    Hi,
    TThe error -10609 can result from several situations in which the device's resources are already in use.
    A Measurement & Automation (MAX) test panel is already open.
    If you open a test panel window for your device and attempt to run your application, you can get this error. If this is the case, close the MAX test panel.
    An AI Clear function was not used at the end of the previous acquisition.
    If you do not call the AI Clear function after performing your acquisition, the resources remain open. Be sure to call this function, inputting your taskID, at the end of the acquisition.
    Multiple programs are accessing the device.
    If you have multiple VIs accessing the device, or perhaps a LabVIEW VI and another application, the resource will be taken and you will receive the error. You can only run one application accessing the specific resource (for example, analog input on channel 0) at a time
    I hope this helps...and have a Great Day!
    George

  • How do i detect DAQ device number programatticaly using Visual Basic (not using MAX)?

    how do i detect DAQ device number programatticaly using Visual Basic (not using MAX)?

    Several of the CWDAQ objects have Device (the device number), DeviceName, and DeviceType properties that I think will give you the information that you're looking for. For more information, look in the index of the Measurement Studio reference for Device, DeviceName, and DeviceType.
    - Elton

  • Is it possible to use Visual C 6.0 only to simulate a temperatur​e of a room?

    Im using microsoft visual C++ 6.0 to build the system without using measurement studio. Is ti still can simulate the system?

    Hi:
    Thank you for contacting National Instruments.
    Yes, you can measure the temperature of the room using Visual C++ without Measurement Studio. However, you will not have access to the powerful data analysis algorithms, scientific user interface controls & graphs and easy to use networking features that ship with Measurement Studio.
    Using Measurement Studio will increase productivity and make DAQ programming easier.
    If you have additional questions, please do not hesitate to contact me.
    Regards,
    Bharat S
    Applications Engineer
    National Instruments
    Penny

  • How to measure current and resistance if i only have DAQ using VB 6 and Measurement Studio

    I want to do a remote lab for basic electronic lab. One of the task is to measure current and resistance. How to do it if I only have DAQ card and using Visual Basic 6 and Measurement Studio. Can anyone give me a clue.

    If your DAQ device is supported by DAQmx, you can use it with VB6. Here's how: NI-DAQmx Support in Visual Basic 6.0.
    Michael P
    National Instruments

  • Adding Columns to the matrix in SAP B1 user form using Visual studio 2010

    Hi,
    Using Visual studio 2010, I have created a SAP B1 user form( b1f ) with one matrix.Matrix is having 5 columns. Its working properly. Later, I want to add few more columns. Then I added columns to the matrix as I have created columns initially. But, it does not saves.
    i.e, Whenever I run, In B1 I could see only old columns. Newly created columns are not showing.So, I closed the .net project and opened again. Created columns are not showing in visual studio b1f itself. So, I created again and saved. But, its not saving.I tried it many times.
    What I am missing?
    Any help is appreciated.
    Thanks in advance,
    Parvatha Solai.N

    Hi Parvatha,
    Are you using B1 Studio? Anyway try to clean the solution first then rebuild it. This would re-copy files to the output directory, that contain your changes.
    Best regards,
    Pedro Magueija

  • How to get string value from database table using Visual Studio 2005?

    Hi,
    Im developing plugin in illustrator cs3 using visual studio 2005. I need to get the values eneterd in database. Im able to get the integer values. But while getting string values it is returning empty value.
    Im using the below code to get the values from database table
    bool Table::Get(char* FieldName,int& FieldValue)
        try
            _variant_t  vtValue;
            vtValue = m_Rec->Fields->GetItem(FieldName)->GetValue();
            FieldValue=vtValue.intVal;
        CATCHERRGET
        sprintf(m_ErrStr,"Success");
        return 1;
    Im using the below code to get the values.
    AIErr getProjects()
        char buf[5000];
        int i;   
        std::string  catName;
        ::CoInitialize(NULL);
        Database db;
        Table tbl;
        errno_t err;
        err = fopen(&file,"c:\\DBResult.txt","w");
        fprintf(file, "Before Connection Established\n");
        //MessageBox(NULL,CnnStr,"Connection String",0);
        if(!db.Open(g->username,g->password,CnnStr))
            db.GetErrorErrStr(ErrStr);
            fprintf(file,"Error: %s\n",ErrStr);
        fprintf(file, "After Connection Established\n");
    if(!db.Execute("select ProjectID,ProjectName from projectsample",tbl))
            db.GetErrorErrStr(ErrStr);
            fprintf(file,"Error: %s\n",ErrStr);
        int ProjectID;
        int UserID;
        int ProjectTitle;
        char ProjectName[ProjectNameSize];
        if(!tbl.ISEOF())
            tbl.MoveFirst();
        ProjectArrCnt=0;
        for(i=0;i<128;i++)
            buf[i]='\0';
            int j=0;
        while(!tbl.ISEOF())
            if(tbl.Get("ProjectID",ProjectID))
                fprintf(file,"Project ID: %d ",ProjectID);
                ProjectInfo[ProjectArrCnt].ProjectID = ProjectID;
                sprintf(buf,"%d",ProjectID);
                //MessageBox(NULL, buf,"f ID", 0);
                j++;
            else
                tbl.GetErrorErrStr(ErrStr);
                fprintf(file,"Error: %s\n",ErrStr);
                break;
            //if(tbl.Get("ProjectTitle",ProjectName))
            if(tbl.Get("ProjectName",ProjectName))
                MessageBox(NULL,"Inside","",0);
                fprintf(file,"ProjectTitle: %s\n",ProjectName);
                //catName=CategoryName;
                ProjectInfo[ProjectArrCnt].ProjectName=ProjectName;
                //sprintf(buf,"%s",ProjectName);
                MessageBox(NULL,(LPCSTR)ProjectName,"",0);
            else
                tbl.GetErrorErrStr(ErrStr);
                fprintf(file,"Error: %s\n",ErrStr);
                break;
            ProjectArrCnt++;
            //MessageBox(NULL, "While", "WIN API Test",0);
            tbl.MoveNext();
        //MessageBox(NULL, ProjectInfo[i].ProjectName.c_str(),"f Name", 0);
        ::CoUninitialize();
        //sprintf(buf,"%s",file);
        //MessageBox(NULL,buf,"File",0);
        fprintf(file, "Connection closed\n");
        fclose(file);
        for(i=0;i<ProjectArrCnt;i++)
            sprintf(buf,"%i",ProjectInfo[i].ProjectID);
            //MessageBox(NULL,buf,"Proj ID",0);
            //MessageBox(NULL,ProjectInfo[i].ProjectName.c_str(),"Project Name",0);
        return 0;
    In the above code im geeting project D which is an integer value. But not able to get the project name.
    Please some one guide me.

    As I said in the other thread, this really isn't the place to ask questions about a database API unrelated to the Illustrator SDK. You're far more like to find people familliar with your problem on a forum that is dedicated to answering those kinds of questions instead.

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

  • How can i use visual logic on my mac

    I am a student at the University of Phoneix and Im taking a programming class that uses Visual Logic. The professor knows about my problem but really doesnt know what to do with a Mac but he says I will need a windows environment to install and run the pogram... doe anyone have any tips? I saw a program for $79 call Parrallels but I really dont want to be buying equipment for the computer in every class. Shortcut needed!!!

    Windows 7 64-bit Home Premium $99 System Builder.
    Boot Camp Apple is free of course.
    Parallels 7 then lets you run natively or as a guest OS VM - though you probably want to run VL natively on the hardware not through virtualization.
    Equipment? two programs to run all the Windows based software you mean.
    CrossOver Mac supports a few popular titles but maybe not this.
    Really helps to always list mac model etc to know OS and how old whether even using a VM is worth it, or get yourself a $499 PC laptop for school instead.

  • How to create a three state approval workflow in SharePoint 2013 using visual studio 2013

    Hi Everyone,
    i have a requirement like 3 state to approve. Here is the details:- when the item added into the list it will go for reviewer. Once the reviewer review the item, he will assign the task to concern person/department(Parallel process more than two persons).
    Once they will approve the request again it will come back to reviewer and he will assign the task to team member(parallel process). Once the team member accepted then workflow terminate.
    i want develop this workflow using visual studio 2013 only, not using designer.. 
    Thanks in Advance.....
    Mallesh

    Hello,
    you can find multiple sample on the web like those
    http://www.splessons.com/2013/12/create-state-machine-workflow-in-sharepoint-2013-using-visual-studio-2012/
    http://msdn.microsoft.com/en-us/library/ee231606.aspx
    I don't think that's very different using VS2013 or VS2012
    Best regards, Christopher.
    Blog |
    Mail
    Please remember to click "Mark As Answer" if a post solves your problem or
    "Vote As Helpful" if it was useful.
    Why mark as answer?

  • How to work with BI using Visual Composer....?

    Hi
    I want to work with BI report and BEx analyzer etc using  Visual Composer.
    I am using Visual Composer 7.1. I  have configured BI system connection using the following link
    http://help.sap.com/saphelp_nwce10/helpdata/en/7e/6dbcea3700452195e3bddaa47c5906/frameset.htm.
    In the above document i didnt understand the following para....
    Creating BI Users in the Portal
    Ensure that the BI back-end users also exist in the J2EE Engine. You can use the BI back end as the user store for the J2EE Engine or you can create the users manually. If you create the users manually, you should ensure that they have the same names as in the BI back-end; this avoids the need to configure user assignment.
    How to check BI back end user also exist in J2EE engine ?
    How to use BI kit in Visual composer. From where can i download BI kit for Visual Composer.
    What is the difference between developing application in VC using the above method and using BI kit.
    Please help me....
    Regards
    Sowmya....

    Hi,
    Without the BI kit you cannot do a lot of things in VC 7.1.
    This kit is not available with 7.1.
    The part that you did not understand meant that if you opening VC using a certain id in portal for eg "user" then the same id should be present in your backend system in this case BW system.
    Without this it wont be able to connect to the system.
    Hope this helps
    Regards
    Nikhil.
    Reward points if you find the answer helpful

  • What are the front end tools & components needed to use Visual composer.

    Hi all,
    please help for the following queries.
    1.What are the front end tools & components needed to use Visual composer.
    2. Is it possible to view in internet explorer web reports/ Dash boards created in Visual composer.
    3. How to create Webreports & Dash Boards in Visual composer.
    It's Urgent waiting for responses.
    Thanks & Regards,
    Basava Raju

    Hi James,
       For  Visual Composer no need any Front end tools.. you need  portal connection.. to configure your visual compoer.. the visla composer it self contain all the items.. just like a Webtemplate..
       all the reports.. that web based reports  or dash boards we can view through Browser only..
    for creating reports in visal composer.. just go thru this links..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c6b2d590-0201-0010-42ba-a53a5d422310
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7d48d999-0701-0010-5790-8b2c5ae7107d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1752b737-0401-0010-0ba3-87c3eda8c6ce
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cab252d4-0a01-0010-3984-ee345859dde6
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01c5d690-0201-0010-668a-b8d97d51a566
    for How to Guides - Visual Composer.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/16244247-0a01-0010-3294-d81c21e7e86e
    /people/marcel.salein/blog/2007/02/01/visual-composer-and-abap-rfcbapi-a-powerful-combination-part-i
    /people/marcel.salein/blog/2007/02/02/visual-composer-and-abap-rfcbapi-a-powerful-combination-part-ii
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01c5d690-0201-0010-668a-b8d97d51a566 https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/16244247-0a01-0010-3294-d81c21e7e86ehttps://www.sdn.sap.com/irj/sdn/visualcomposer
    regards
    @jay

  • I need to add a new report to the application that is done using visual studio and SSRS and SQL Server 2008

    I have an application that is done using SSRS on visual studio and it connects to the report server on SQL server 2008 environment.
    I've been changing the existing reports using visual studio 2008 and modifying the reports on the report server. How do I add a new report to the application ? I created a new report and deployed it on the report server but it didn't show up in the application.
    I can access the application source code on visual studio 2010 and TFS (Team Foundation). Thanks. 

    Hi,
    I have a question. This application retrieves SSRS reports from the report sever. When I download the reports
    from the SQL Server I can open them in visual studio 2008 but they don't open in visual studio 2010. I can access the application files on visual studio 2010 and team foundation server 2010. I was unable to open team foundation server 2008 on visual studio
    2008. The issue is that I am unable to add a report with a new name to the application. I use visual studio 2008 to deploy the reports on the report server but it has to be the same name to be able to run the report from the application. I can deploy any report
    on the report server but I can't access it from the application unless it has to be the same name as the present reports. If I keep the report the same name then it will replace the old report and the new report will run from the application. But only if it's
     the same name. I guess when I add a new report to the application with a new name I am supposed to add a definition in the application C sharp files  on visual studio 2010 so that the new report will show in the application. What's your opinion
    ? I have attached 2 images of the application and team foundation server 2010 and the report server.
    Thanks. 

  • Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?

    Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?  If so, how?

    You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
    Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process.

  • How to manage a connection with powershell using visual studio with C#

    Hi
     I want to manage a connection with powershell for a web app using visual studio with c#. and also run command with pipeline 
    Plz give a some suggestions..

    Hi Raj_Kumar_Saini,
    To make things clear, could you please clarify these thing?
    1. Do you mean you want to execute some PowerShell scripts from C# language? These blogposts may give you  some ideas:
    Executing PowerShell scripts from C#
    Powershell Automation and Remoting (a c# love story)
    Execute PowerShell from a ASP.NET Web Application
    2. Is your question related to Visual Studio Integration? Do you want to build a Visual Studio Extension?
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • How to attach PDF file to product catalog in Internet Sales R/3

    Hi Experts, We are implementing SAP E-Commerce (Internet Sales) for mySAP ERP or SAP R/3, release 5.0. I need to attach a PDF file to the product in the product catalog of the Web Shop. Some where in the documentation I have read that itu2019s possib

  • Is there a limit to the no of rows in an xy chart?

    The table has X-values (date format) in column A and Y-values (number format) in column B. The (linear) chart displays not more than 135 XY values. The first date is 04/28/2008, the last date is 03/06.2014. I am unable to get additional data on the c

  • Web service serialization question

    Hi, Sorry if this is the wrong place to post this... if so, can you pls. point me to the right place. I'm a newbie to this ng (and weblogic in general). I am developing a web services client using Weblogic 8.1 sp2. I have run clientgen on the WSDL an

  • Project Server 2013: Remove Task Option Causing Orphaned Timesheet Lines

    We are experiencing a major issue with the "Remove Task" option in PS2013 that is leading to orphaned timesheet lines with no related assignment.  This can result in actuals in a project with no corresponding timesheet entry.  We are using SEM. The s

  • Is there a list of drivers in the kernel?

    hey everyone... i'm searching for a list of drivers included in the linux kernel. i knew modprobe -l but this method is not really handy. as example a website with categories or filters would be good. i hope anyone can help.