Callback Visual C++ 6.0 and DAQmx

I'm using Visual C++ 6.0 and trying to use a callback function in DAQmx. I am using the example "VC_ContGen_IntClk". This program compiles and runs fine in .NET but in Visual C++ 6.0 I get an undeclared indentifier error.
In my .h file for class CniDAQ I declare the function: int32 CVICALLBACK DoneCallback(TaskHandle taskHandle, int32 status, void *callbackData) ;
and the .cpp file defines int32 CVICALLBACK CniDAQ:oneCallback(TaskHandle taskHandle, int32 status, void *callbackData)
However in the call: DAQmxErrChk (DAQmxRegisterDoneEvent(*taskHandle,0,DoneCallback​,NULL));    ---- DoneCallback is flagged as an error as an undeclared identifier.
Can someone please help with this?
  Thanks,

Hello,
A good starting point demonstrating the use of DoneCallback would be to run the following example. It shows how to use a Done event to output a finite number of voltage samples to an Analog Output Channel using an internal sample clock. This example can be found by navigating to Start»Programs»National Instruments»NI-DAQ»Examples»DAQmx ANSI C»Events»Done»Mult Volt Updates-Int Clk-Done Event. Does this error still occur?
Regards,
Ali M
Applications Engineer
National Instruments
Message Edited by Ali M on 03-23-2010 06:24 PM

Similar Messages

  • Controlling NI2568 Switches using VB6 and DAQmx

    Can the NI-2568 (and similar) switches be controlled using VB6 and DAQmx?
    I got the impression from the "NI-DAQmx C API VIsual Basic 6.0" Help, that by using the "Digital Output API ",  it could be done very similarly to opening/closing a discrete , but no samples were included.
    I just need to close a few relays and don't know if I have to install the "NI-Switch" software or not.
    If it can be done, what would be the channel string to pass to the DAQmxCreateDOChan dll function
    (in place of "Dev<x>/Port<y>/Line<z>").  MAX shows my (simulated-don't have the hardware yet) switch device to be "PXI1Slot3" .
    Thanks,
    Jon 

    Hi Jon,
    You can also use NI-DAQmx Switch functions to control PXI-2568 rather using NI-SWITCH (NI-SWITCH installs ready-made VB examples)
    You can use functions such as
    DAQmxSwitchSetTopologyAndReset, DAQmxSwitchCloseRelays, DAQmxSwitchOpenRelays to control individual relays in PXI-2568. ANSI C Examples for DAQmx switches can be found at C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Switches. This can be used to write VB 6 code. Refer to  using "C Examples to create VB 6.0 Applications" in C:\Program Files\National Instruments\NI-DAQ\Docs\cvb60daqmx.chm for help on converting C examples to VB 6.0.
    Kalyanramu Vemishetty
    Automated Test Systems Engineer
    National Instruments

  • Error on Visual Basic 6.0 and Crystal Reports 9.2 on XP SO

    We need support to resolve an error on a system made with Visual Basic 6.x and Crystal Reports 9.2.
    Error '-2147417848 (80010108)'
    Automation Error
    Not always give these errors.
    Often occurs after request two reports followed and SO is XP
    When SO is Windows 2000 professional this error not occurs.
    These are versions of the products used:
    Versión Visual Basic:  6.0.9782
    Versión Cristal Reports:  9.2.0.448

    Hello,
    This forum is for community use and is not considered a support site. For assistance you need to purchase a case from our support site. But 9 is no longer a supported version so this is your only place to get assistance.
    Try downloading the only patches available from:
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90actxwin_en.zip
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90dbexwin_en.zip
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90devwin_en.zip
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90mainwin_en.zip
    Thank you
    Don

  • I am trying to integrate simulink model (.mdl) file with SIT of Labview for RCP and HIL purpose. I am using Labview 8.6, Simulink 6.6 with RTW 6.6 and RTW embedded coder 4.6 ,Visual C Express 2008 and Visual C++ Express 2008.

    I am trying to integrate simulink model (.mdl) file with SIT of Labview for RCP and HIL purpose. I am using Labview 8.6, Simulink 6.6 with RTW 6.6 and RTW embedded coder 4.6 ,Visual C Express 2008 and Visual C++ Express 2008. I have selected system target file as nidll.tlc,make command as make_rtw and template nidll_vs.tmf. When I try to generate .dll file I get the following error.
    Attachments:
    SITProblem.JPG ‏101 KB

    Hi,
    No . I could not solve the issue. Presently we are using microautobox (from Dspace)for doing the RCP.
    Himadri 

  • Visual C++ 6.0 and Oracle

    Hii..
    I m using Visual c++ 6.0 and Oracle 10 g. I m very new to vc++. And i would lik to build some database applications.
    I couldnt find any resource in the net.
    can anyone help me ?? Send some sample codes and documents !!
    sankar.s

    BTW this is not the right forum for C++ stuff, this one's meant for anything related to ODBC
    I guess you meant building database applications using C++
    For that you can use OCCI, following link can provide some info on OCCI with few samples
    http://www.oracle.com/technology/tech/oci/occi/index.html
    For detailed documentation on OCCI you can browse
    http://download.oracle.com/docs/cd/B12037_01/appdev.101/b10778/toc.htm

  • Visual Age 3.5 and Weblogic Intergration Kit (License Expired, please Contact BEA Systems Inc)

    Hi,
    I started to run the Weblogic Server on my machine yesterday and I suddenly got
    this error:
    "License Expired, Please Contact BEA Systems Inc"
    This is the message I got on the Visual Age Console:
    "Invalid BEA WLS Integration Kit License. Please cantact BEA"
    I was able to run Weblogic Server until the past 2 weeks. I tried to re-install
    the whole Visual Age 3.5
    and as well as the Integration Kit I download from the Weblogic website and I
    still get the same
    problem. Can somebody help me with this. I haven't upgraded to 3.5.3 yet.
    Thanks
    Sameera

    Sameera,
    The Kit available from the BEA website is an evaluation version. You need to
    contact BEA Sales for a permanent license.
    Thanks,
    Nirav.
    Sameera Balay wrote:
    Hi,
    I started to run the Weblogic Server on my machine yesterday and I suddenly got
    this error:
    "License Expired, Please Contact BEA Systems Inc"
    This is the message I got on the Visual Age Console:
    "Invalid BEA WLS Integration Kit License. Please cantact BEA"
    I was able to run Weblogic Server until the past 2 weeks. I tried to re-install
    the whole Visual Age 3.5
    and as well as the Integration Kit I download from the Weblogic website and I
    still get the same
    problem. Can somebody help me with this. I haven't upgraded to 3.5.3 yet.
    Thanks
    Sameera--
    Nirav Chanchani
    BEA Systems, Inc.

  • Visual Studio 2013 Setup and Installation gets stuck at system restore point. what are the issues?, help me out!!!

    Visual Studio 2013 Setup and Installation gets stuck at system restore point. what are the issues?, help me out ASAP

    Hello nitinrathod29,
    There are some possible fixes for this issue.
    Please check the following thread:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/47bc6990-00f2-4d85-b3f8-9de03c637f43/visual-studio-2013-update-2rc-stucks-on-creating-system-restore?forum=vssetup
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/81478f51-37bb-4dbb-bd0c-beade1fd50ab/visual-studio-2012-professional-installation-getting-stuck-creating-a-system-restore-point?forum=vssetup
    So here are them:
    1. Check if you have any software which may prevent the installer from running. For example, Windows Defender or any other software which may restrict your permissions.
    2. Just start the computer.
    3. Run the setup as admin.
    4. Check your UAC permissions.
    Best regards,
    Barry
    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.

  • LabView 8.2.1 and DAQmx Base with Linux

    Hey,
    we use LabView 8.2.1 here with Linux. Recently the new version of NI-VISA (5.0.0) and DAQmx Base (3.4) were released and work with OpenSuSE 11.2. But there is no integration of DAQmx Base into LabView 8.2.1 in the iso file.
    Is there a possibility to implement that?
    Thanks in advance,
    Alex

    Hello Alex,
    thank you for posting at the National Instruments Forum. It is not possible, to use the latest NI-DAQmx Base Driver 3.4 with LabVIEW 8.2:
    NI-DAQmx Base 3.4 supports
    - LabVIEW 2010
    - LabVIEW 2009
    - LabVIEW 8.6.x and
    - LabVIEW 8.5.x
    If you need LabVIEW 8.2.x support, you have to use NI-DAQmx Base 3.3, this one supports
    - LabVIEW 2009
    - LabVIEW 8.6.x
    - LabVIEW 8.5.x and
    - LabVIEW 8.2.x
    It is not possible to add LabVIEW 8.2.x compatibility to NI-DAQmx Base 3.4. I hope, this clarifies the version compatibility.
    Best Regards
    MarianO

  • Visual Studio 2012 Express and 2013 Professional won't open

    I have downloaded both Visual Studio 2012 Express and 2013 Profession and both stop working when I open them. I have been using the developers command prompt from 2013 to run some c++ code. I need the program for my c++ class so please
    help as soon as possible. 

    Hi,
    Is there any specific error message occur when you open VS?
    Because of there is not enough information for troubleshoot, I will give you some advice:
    First, reboot the machine into safe mode. This can isolate some third part application.
    Second, you can use Devenv.exe Command Line to start the VS and collect logs for troubleshooting:
    You could type ‘Devenv.exe /SafeMode’, which starts Visual Studio in safe mode, loading only the default environment and services.
    You could create a log file (‘Devenv.exe  /log’ ) on your drive. If this issue exists still, you could invest your log file to narrow down the issue.
    More information about Devenv.exe Command Line, you could refer the following link:
    http://msdn.microsoft.com/en-US/library/ms241273(v=VS.80)
    Third, you should make sure you can successfully install the VS. Please use collect.exe utility to collect VS install logs to see whether the VS installation is success:
    http://aka.ms/vscollect
    And make sure you already followed up these steps to install your VS:
    1. Re-download the Visual studio from Microsoft official site here:
    http://www.visualstudio.com/downloads/download-visual-studio-vs
    After download you should use File Checksum Integrity Verifier tool to verify the integrity of your download. If the values don't match, your download may be corrupted and you should download the file again:
    Refer to the below page to know checksum detailed number:
    http://www.visualstudio.com/en-us/downloads/visual-studio-2013-iso-sha1-vs.aspx
    Refer to Download the Microsoft File Checksum Integrity Verifier to know how to check the checksum hash value.
    2. Disable your Anti-Virus or Anti-Spyware software and be sure that your OS has been "patched" up - Update your computer (Windows) before install the VS.
    3. Clean your %temp% folder and run the installer with Administrator permission.
    Look the links to get more information:
    http://blogs.msdn.com/b/msdnforum/archive/2010/03/06/visual-studio-and-net-framework-installation-tips.aspx
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/60f71a54-506e-4c70-be98-e993ce6d1ddf/visual-studio-installation-tips?forum=vssetup
    Best Wishes!
    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. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Old VI, new LabView and DAQmx Driver

    I was given a VI that was made with LabView 2012 and DAQmx drivers 7.0. I am in LabView 2013. Would this VI still work if I installed new drivers (drivers that are compatible with LabView 2013)? Do I have to install LabView 2012 or can I just install new drivers?
    Solved!
    Go to Solution.

    DAQmx 7.0 was not compatible with LabVIEW 2012.  In fact, it was barely compatible with 8.1.  Perhaps you meant 9.7?
    Just use the new drivers and save the VI(s) in LabVIEW 2013.  You shouldn't have any issues.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Measure ai (current) and ci (puls width) with NI6023 and DAQMX

    Hi I need to measure ai (current) and ci (puls width) with NI6023 and DAQMX.
    My problem is that I can measure the two by them selves.
    But I need to measure both at the same time!
    Is it possible?
    How does the code look?
    J;-)

    Hello
    DAQmx support multitasking operations and you are therefore able to execute multiple tasks at the same time.
    I do not know what software you are writing your code in, but if you are using LabVIEW you should just place the two tasks in parrallel loops and execute them or have both VI's runninng at the same time that are performing the tasks!
    Regards
    Mohadjer

  • USB 6009 and DAQmx Base Concerns

    Hello,
    I just received a USB-6009 multifunction DAQ device along with DAQmx Base for use on Windows XP with LabWindows/CVI ver 7.1.  Both the 6009 and DAQmxBase are successfully installed however I have several questions, I hope I am missing something obvious:
    1. The Task Configuration Utility is not needed for use with LabWindows/CVI?  I believe I read this in the Getting Started Guide.
    2. There is no function panel for the DAQmxBase functions?  I even searched the installation CD and found no .fp files.  So the only way to know what functions are available with DAQmxBase is to open the NIDAQmxBase.h file and search through the function prototypes?  Then, to know what a function does it is necessary to open the C Function Reference Manual via the Windows Start button and search for the function name of interest?
    3. When creating a digital input or output channel with DAQmxBaseCreateDIChan or DOChan is it only possible to setup a "channel" as an entire port?  Is it not possible to setup a channel as a single input or output line?  Similarly, once the channel is configured is it only possible to read or write an entire port with DAQmxBaseReadDigitalU8 or WriteDigitalU8?  I was expecting something similar to the DIG_out_line function used in Traditional NI-DAQ where a board number, port number, line number and state are passed so that a signal output line can be set on or off.
    Thanks in advance for the assistance,
    - Aaron

    Aaron T. wrote:
    Hello,   I just received a USB-6009 multifunction DAQ device along with DAQmx Base for use on Windows XP with LabWindows/CVI ver 7.1.  Both the 6009 and DAQmxBase are successfully installed however I have several questions, I hope I am missing something obvious:   1. The Task Configuration Utility is not needed for use with LabWindows/CVI?  I believe I read this in the Getting Started Guide.  
    **The Task Configuration Utility is not necessary, except that there is significant functionality missing from DAQmx Base but present in the utility. That includes a lot of what DAQmx calls "proerties", and includes things like the convert rate for AI scanning.
    2. There is no function panel for the DAQmxBase functions?  I even searched the installation CD and found no .fp files.  So the only way to know what functions are available with DAQmxBase is to open the NIDAQmxBase.h file and search through the function prototypes?  Then, to know what a function does it is necessary to open the C Function Reference Manual via the Windows Start button and search for the function name of interest?  
    **I don't use CVI so I don't know anything about this. It strikes me that even if you have such a panel reading the documentation is a good idea
    3. When creating a digital input or output channel with DAQmxBaseCreateDIChan or DOChan is it only possible to setup a "channel" as an entire port?  Is it not possible to setup a channel as a single input or output line?  Similarly, once the channel is configured is it only possible to read or write an entire port with DAQmxBaseReadDigitalU8 or WriteDigitalU8?  I was expecting something similar to the DIG_out_line function used in Traditional NI-DAQ where a board number, port number, line number and state are passed so that a signal output line can be set on or off.  
    **Well, the ReadMe file says that USB-6008/9 is supported with both Line I/O and Port I/O. On the other hand, the documentation for DAQmxBaseCreateDOChan and DAQmxBaseCreateDIChan say for the lineGrouping parameter, "Always pass DAQmx_Val_ChanForAllLines." So your question is a good one! Perhaps one of the NI engineers can comment on this.
    - Aaron
    Thanks in advance for the assistance,
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • Visual Studio 2005/2008 and Crystal Reports versions/upgrade questions.

    I've tried posting this question on the MSDN forums and gotten no response. 
    I've downloaded and installed VS 2008 Beta 2.   The versions on the Crystal Reports files included are 10.5.0.1806  
    I'm currently using VS 2005, with the included Crystal Reports.  The versions on those files are 10.2.0.xxxx.  I've created an desktop app (in VB) which stores it's data in a database and uses the CR 10 runtime merge modules to generate a report.
    I was considering upgrading the Crystal Reports version to XI.  I would like to allow customers to modify my delivered report with their own licensed copy of CR XI.  I am not providing any functionality within my app to create or modify the delivered .rpt or use it outside my application.
    Questions:
    Do I need to update the runtime files to CR XI to support rpt files modified with CR XI?  Current runtime files are being delivered with the CR 10 merge module.
    I see a Crystal Reports for Visual Studio upgrade to CR XI. 
    Can I update the merge modules to CR XI and still use the CR for VS2005 for development?
    Does it make any sense to update CR for VS 2005?  Or to get the full CR XI Developer edition?  My usage of CR functionality is very limited.
    Would there be any benefit to waiting for the release of VS 2008?   How does that change the scenario?
    How does Crystal Reports for Visual Studio fit in with the Crystal Reports Lifecycle?  It's not mentioned on Business Objects End of Life Dates page . Crystal 10 has a Patch EOL of 31-Dec-07.   Does this apply to CR for VS 2005?  Where does 10.5 fit in?
    My main concern is allowing customers with CR XI to change the format of my delivered .rpt to run with my app.  Adding their company name, logo, etc.   My testing show a CR XI report still works with my current app.  But, going forward, what should I deliver and what do I need to use to continue development?

    To use Reports designed in XI, you need to use XI or higher runtime, running them in older versions may work, but you may encounter unforeseen issues doing so.
    If you are to use VS2005 for development you need to use XI Release 2 (11.5) runtime.
    If you are going to use VS2008 for development you need to use Crystal Reports 2008 with Service Pack 0.
    The support end of life for versions of Crystal Reports bundled with Visual Studio are linked to what Microsoft's lifecycle for the product is.  Generally if there is a workaround for the issue that is simple enough, there will not be a patch created.
    The changes you are expecting the customer to do can be accomplished with our RAS SDK which is available without using enterprise starting with Crystal Reports XIR2 SP2.

  • How To: Use Visual Studio, IIS Express, and Adobe Edge Inspect to view local projects

    You CAN view a Visual Studio project with Adobe Inspect. The work around takes a little bit of time.
    This involves using IIS Express to run your Visual Studio project, which is mainly a setting in Visual Studio, a Firewall change, a few command line and IIS Express config change.  It isn't actually all that bad, but will make your life A LOT easier.
    Here are the steps. (Note these are steps I used for Visual Studio 2012 and your project is part of a solution project.  Windows 7 or Windows 8)
    1. If IIS in not turned on, turn it on.How to: Enable Internet Information Services (IIS) - this should install IIS Express as well.
    2. In Visual Studio, find the port that Visual Studio will be using for your project by Running your web project (Debug), and note/write down/save the port number that shows up in the browser when the project launches. (ex.  http://localhost:12345)
    3. Add a NetShare Reservation (process for this will be different for Windows XP)
    Go to your Command Line (CMD) in Windows and in c:\Windows\system32> type in
    netsh http add urlacl url=http://yourIPaddress:yourPortNumber user=everyone
    (ex. netsh add urlacl url=http://12.34.56.78:12345 user=everyone)
    Hit Enter key. You should be a successful add reservation message
    3. Go to your Windows Explorer (File system) and go to c:/Users/YourName/MyDocuments (or Documents)/IISExpress/config/ and open 'applicationhost.config'
    In the 'applicationhost.config' file find your site in the <sites> section.
    Example:
    <sites>
    <site name="WebSite1" id="1" serverAutoStart="true">
                    <application path="/">
                        <virtualDirectory path="/" physicalPath="C:\MyProjects\TestSite" />
                    </application>
                    <bindings>
                        <binding protocol="http" bindingInformation=":12345:localhost" />
                    </bindings>
                </site>
    </sites>
    In this section ADD 2 new lines to the <bindings> section. Note add your own IP address and your own Computer Name
    <binding protocol="http" bindingInformation="*:12345:12.34.56.78" />
    <binding protocol="http" bindingInformation=":12345:MyComputerName" />
    Save the config file.
    4. Open up your Windows Firewall and go to 'Advanced Settings'. Here you want to create an Inbound Rule.
    Right click on Inbound Rule and select New Rule
    - Rule Type select 'Custom'
    - Program leave this
    - Protocol and Ports > Protocol Type select 'TCP' then Local Port select 'Specific Port' and fill in the port number you got from VS.  Leave Remote Port alone.
    - Scope
    There are a few ways of doing this. Typically you would go the the Remote IP address and select 'These IP addresses: and select ADD > select 'Predefined set of computers' and choose Local Subnet.  IF this does not work leave Remote IP addresses > Any IP address option selected instead.
    - Action leave this
    - Profile select Domain and Private
    - Name put IISExpressWeb for the name
    Select 'Finish'
    5. Go to Visual Studio. (Note if you have multiple projects in your solution, choose your start up project. Right click on your project in Solution Explorer in VS and select 'Set as Start Up Project' )
    Right click on your start up project again and you should see an option to 'Use IISExpress'
    In the DEBUG dropdown (from the main menu bar at the top) select 'YourProjectName Properties'. Mine was the last one in the list with a wrench icon next to it.
    This should open an new tab in your project, You should see a left hand list of option and a right hand column of options.
    In the left column select 'Web' and in this tab select Use Local IIS Web server and select 'Use IIS Express' and type in your IP Address and port number (same as before) in the Project Url text box.
    Save.
    NOW, you should be able to run your project in Visual Studio and use Adobe Edge Inspect on your device and view new results in Chrome. You can develop from there.
    If you still can not see it working, please be sure your device is on the same SubNet or Wireless network as your computer.  If you are in a large network but the domains can still see each other, the Firewall Setting detailed above to allow Any IP Address in your Scope section.

    Hi CMosqueda,
    Thank you for taking time to share this information with other users.
    Thanks,
    Preran

  • Visual Composer 7.0 and LoadRunner VueGen

    Has anyone been able to make Visual Composer 7.0 work with Vuegen (v8.1 FP3)? Running on NW04s SPS10 J2EE and Portal. The model is rather simple it executes an ABAP BAPI and returns Exchange rate data. Works great in the browser with no issue.
    VueGen receives the data (seen in the playback), but then has a fatal issue, with message = Fatal Communications error, cannot retrieve the data. The https is definitely working Ethereal proves that. VueGen always works a little differently than the IE6 browser based on Ethereal (that's a mystery).
    Anyway, I am guessing that the Web-HTML and Web-SAP Protocols simply cannot handle the Flash bytecode that is streamed back to the Vuegen process. It must be trying to do something with it, and failing.
    Any ideas or success stories with Visual Composer 7 / Flash (not WebDynPro), and Vuegen would be greatly appreciated? And if you are about to try it , good luck.

    Hi Frank,
    From what I understand you are talking about recording Flex applications and not VC design time, right?
    If so, I do remember having some problem with VUGen. I think that what helped me was using the option of using the old recording engine. This can be set in VUGen-> Recording Options->Advances->Recording Engine.
    Also, I don't think you need the SAP-WEB, just use the Regular Web-HTTP.
    After you record should see web_custom_request going to "com.sap.visualcomposer.vcbroker". I would put some web_reg_find before these requests and supply some expected returned data to search for.
    Best Regards,
    Noam

Maybe you are looking for