How to detect usb6009 using c++

how do i detect the name of the attached device in c++?
also how do i detect available channels in c++?

char buffer[100];
char *p = buffer;
wxString active;
DAQmxGetSysDevNames(p,32);
active << p;
i already found how to get device name. 
i just need to know how to find the list of channels.

Similar Messages

  • How To Detect Color using my application

    Hi Friends,
    Iam sachin, working as a iphone mobile application developer.K coming to my question is it possible to
    detect colors using our application if yes Kindly guide me how to proceed .
    Thanks in advance ,

    you need to ask this in the developers forum - this is a formum mostly for end users not developers

  • How to detect Browser using JSP ?

    Hi friends,
    I wanna to put some code to detect browser and
    Other than IE6+ i have to block other browser to display login.
    How do i check that ? Using JSP.
    e.g.
    If i open IE6+ login page should be displayed. Else on other browsers
    it will check brower and deny to display login page.
    How Do i check it ? please Help me.

    this code works for me in IE,Safari and firefox but i could not check in netscape as i dont have.
    String userAgent = request.getHeader("User-Agent");
          System.out.println("UserAgent:"+userAgent);
          userAgent=userAgent.toLowerCase(); //convert to lowercase and then check
          if(userAgent.indexOf("netscape6") != -1)
         System.out.println("Netscape");
          else if(userAgent.indexOf("msie") != -1)
              System.out.println("IE");
         else if(userAgent.indexOf("firefox") != -1)
         System.out.println("Firefox");
         else if(userAgent.indexOf("safari") != -1)
         System.out.println("Safari");
         else
              System.out.println("Else");
        

  • Daily backup: how to detect non used libraries.

    Hi,
    We use a CL program with a list of SAVLIB commands to save all production librarires every day. The problem is that this CL has been mantained for several years and probably most of the saved libraries are not used anymore. I'm only responsible of the SAP backup lines.
    How can I detect what libraries are not used now ? I've tried to look at the file attributes in this libraries but the backup itself mantains this fields.
    Of course, I know that our functional people must know what is in use and what is obsolete, but in some cases the people that mantains applications has changed...
    Any idea will be appreciated !!
    Regards,
    Joan B. Altadill
    CELSA SAP Admin

    I use this method in iSeries Navigator, Run an SQL script:
    <begin copy>
    /*---   Display the objects in the library to an outfile.  Change the value of {sourcelib} to the desired library.   ---*/
    CL:     DSPOBJD OBJ(sourcelib/*ALL) OBJTYPE(*FILE) DETAIL(*SERVICE) OUTPUT(*OUTFILE) OUTFILE(QTEMP/DSPOBJDTMP)  ;
    /*---   List the objects in ascending order by LastUsedDate   ---*/
    SELECT      ( Char(Date(Now())) CONCAT '  '  CONCAT  Char( Time(Now())) ) DataPulled,
         (CASE      WHEN ODCDAT = ' '
              THEN     ' '
              ELSE     (CASE      WHEN ODCCEN in ( '0' , ' ' )
                        THEN       '19'
                             CONCAT SUBSTR(ODCDAT, 5, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODCDAT, 1, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODCDAT, 3, 2 )
                        ELSE     '20'
                             CONCAT SUBSTR(ODCDAT, 5,2 ) 
                             CONCAT '-'
                             CONCAT SUBSTR( ODCDAT, 1, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODCDAT, 3, 2 )
                   END )
         END) CreationDate,
         (CASE      WHEN ODUDAT = ' '
              THEN     ' '
              ELSE     (CASE      WHEN ODUCEN in ( '0' , ' ' )
                        THEN       '19'
                             CONCAT SUBSTR(ODUDAT, 5, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODUDAT, 1, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODUDAT, 3, 2 )
                        ELSE     '20'
                             CONCAT SUBSTR(ODUDAT, 5,2 ) 
                             CONCAT '-'
                             CONCAT SUBSTR( ODUDAT, 1, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODUDAT, 3, 2 )
                   END )
         END) LastUsedDate,
         (CASE      WHEN ODSDAT = ' '
              THEN     ' '
              ELSE     (CASE      WHEN ODSCEN in ( '0' , ' ' )
                        THEN       '19'
                             CONCAT SUBSTR(ODSDAT, 5, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODSDAT, 1, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODSDAT, 3, 2 )
                        ELSE     '20'
                             CONCAT SUBSTR(ODSDAT, 5,2 ) 
                             CONCAT '-'
                             CONCAT SUBSTR( ODSDAT, 1, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODSDAT, 3, 2 )
                   END )
         END) SavedDate,
    (CASE      WHEN ODRDAT = ' '
              THEN     ' '
              ELSE     (CASE      WHEN ODRCEN in ( '0' , ' ' )
                        THEN       '19'
                             CONCAT SUBSTR(ODRDAT, 5, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODRDAT, 1, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODRDAT, 3, 2 )
                        ELSE     '20'
                             CONCAT SUBSTR(ODRDAT, 5,2 ) 
                             CONCAT '-'
                             CONCAT SUBSTR( ODRDAT, 1, 2 )
                             CONCAT '-'
                             CONCAT SUBSTR( ODRDAT, 3, 2 )
                   END )
         END) RestoreDate,
         ODCRTU CreatedBy,
         ODLBNM LibraryName,
         ODOBNM ObjectName,
         ODOBTP ObjectType,
         ODOBAT ObjectAttribute,
         ODSRCL SourceLibrary,
         ODSRCF SourceFile,
         ODSRCM SourceMember,
         (Case      When ODOBSZ = 9999999999 Then (ODSIZU * ODBPUN)
               Else ODOBSZ
         End) ObjectSize,
         ODOBTX ObjectText
    FROM QTEMP.DSPOBJDTMP
    Order BY LastUsedDate  ;
    <end copy>
    Copy/paste the code into the session, change the value of , and then Ctl+R to run all of the statements.
    You can then view the results and determine if the objects haven't been used recently.
    Hope this helps!
    Robert
    P.S.  This forum doesn't show neatly formatted code as I have it in my script, but it does work.
    Message was edited by: Robert Clay
    added code tags

  • How to detect sound using JMF

    Hi,
    I want to detect a beep sound that is played on the machine by another application. Basically, connect to the sound card and see if beep was played. This sound would effectively play on the machine speakers. if speakers are present.
    I want to eventually grab a couple of sounds but first start with beep. So, over a duration of 2 minutes, I would alternate between 'beep' and 'bang'. And whenever these sounds are played, I want to be able to detect them.
    I would appreciate if there is sample code that I can start with.
    I am new to java audio/media and most data that I found was recording sound from microphone.
    Thanks.

    I tried getting the device list on my system but the following code is not returning any devices (deviicelist is empty) ? When I look at my Device Manager on Windows7 machine, I see there is 'High Definition audio device' . Does anyone have a clue why/when would this happen ?
    I have jmf installed and it is in the classpath. I also have jmf.jar, sound.jar added to my project.
    CaptureDCaptureDeviceInfo di = null;
    Vector deviceList = CaptureDeviceManager.getDeviceList(
                        null);
              if (deviceList.isEmpty())
                   System.out.println("No Devices found");
              if ( deviceList.size() > 0 )
              di = (CaptureDeviceInfo)deviceList.firstElement();
              System.out.println("di::" + di.getName());

  • How to install/Configure/Use VT Hash Check to detect Malware/Unwanted programs in Windows?

    This just to share the below post with windows users.. 
    How to install/Configure/Use VT to detect Malware/Unwanted programs in Windows?
    http://www.windowstechinfo.com/2014/03/how-to-installconfigureuse-vt-to-detect_29.html
    Hetti Arachchige V Aravinda | Network & System Administrator (B.Sc, Microsoft Small Business Specialist, MCP, MCTS, MCSA, MCSE,MCITP, CCNA, CEH, MBCS)

    That is interesting. Normally a bootmgr error message means that the boot loader is corrupt and hard disk not "dead".. Replacing the hard drive is a quickie shotgun method of resolving the issue.
    Did you give up on the SSD?
    The  desktop ( w/ASUS Crossfire V Formula-Z  mobo) I am using to type this, has the same SSD that you asked about. I used the method I described in the earlier post to clone the OS to the SSD. The SSD is the boot drive.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • How to detect the key enter with a numerical control without using loop event?

    I want to accept a numerical value only when the key enter is pressed, but without using the event. How to detect the char "enter" with a numerical control?
    Thanks!

    When the user edits a numeric control with a keyboard, its property "key focus" is true. When the user hits enter, key focus becomes false. Poll the property to latch the control valuse at the true-false transition. That won't work if the user modify the control using up and down arrows.
    LabVIEW, C'est LabVIEW

  • How to detect missing xml node before using countNodes?

    Below is my xml sample. Right now I use countNodes to count # of <Book> returned.
    <ListOfBook>
    <Book>A</Book>
    <Book>B</Book>
    <Book>C</Book>
    </ListOfBook>
    When there's no data, I got
    </ListOfBook>
    My countNodes() failed and generated errors. How do I avoid this? Can I detect if <Book> exists first before doing countNodes() and if so how?
    I'm using SOA 11.1.1.2
    Thanks

    Actualy the simplest way to be certain your <ListOfBook> is empty is to check the first element:
    If $ListOfBook/Book[1] != ''
    If there aqre no Books - nothing happens.
    About count nodes - it works. Pb=robably you have a mistake in countNodes definition (you can paste it here for commenting)

  • Custom Component : How to detect what charset the request used?

    I want to write a file upload component, this component must use the same charset as the request used to decode file name from data post from web browser, How to detect what charset the request used?

    Hi Eddie,
    As Arjit suggested, there are a bunch of functions available in WEBI like GetDominantPreferredViewingLocale(), GetLocale() and GetPreferredViewingLocale(), etc. that you could use.
    There are no such specific functions provided within Dashboards tool.
    So, you can create a WEBI report, and have one of these formulas specified in a variable in the webi report. Then, have the block published as a BIWS and use this BIWS in your dashboard.

  • I would like to detect all the keyboard key is okay, but not every key can be detected by using LabVIEW example, keyboard keycode

    I would like to detect all the keyboard key is okay, but not every key can be detected by LabVIEW example ( we can use 『basic input demo.vi』to detect normal key』.
    I want to detect some 『hot key』 for example some keys exist in the upper part like 『search key』、『e-mail key』、『volumn control key』...etc. They are very often to be watched in some new keyboards, but we still don't know how to detect if their functions are okay.
    Can we detect signals of these 『hot key』 in LabVIEW? We can apply these hot key's functions in XP, so we should detect their signal, I think, but I can't do it.
    I serach some information about this question, and somebody said we can detect hot key's signal by grabing 『keybode』 these hot key feedback. But I don't know how to do these. I can't use VC. So anyone can give me a LabVIEW VI to grab keycode? Or any other solution we can detect all the key on the keyboard, including hot keys?
    Thanks!
    Regards,

    Maybe that is the limitation of Acquire Input Data.vi.The vi can't identify the Unformal key.
    You can try to use Event structure and set to listen "key down" event.
    There are two terminals VKey, ScanCode will sent out the information when you press key.
    There are two pictures in attached file, 2.jpg will show you the detail.
    Good luck.
    Attachments:
    SpecialKey.zip ‏17 KB

  • How to detect a selected row in ALV GRID

    Hi,
    Can anyone tell me how to detect and catch an event when a row is selected in an ALV GRID?
    I would like to catch such event when the end user presses Ctrl + Shif + Space bar.
    Thank you and best regards.
    Hassane.

    Hi,
    Use this wiki link, to have a checkbox with all the records in ALV Grid and to process those selected records at a user command, as per the requirement.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • How to detect the path of Temp directory

    I am writing a class library which allows users to manipulate a database in the web server java applications/applets. In my logic the Application/Applet communicate with a CGI script/Servlet in the server and that do all the database handling. My objective is to make the Client independant from the Database Drivers, and to some restrictions and possible security threats that can arrice when accessing the database directly.
    99% of the work is done and now I am doing the fine tuning.
    My Problem:
    When the user downloading a blob object from the server database. each time the program read the blob it will get a new copy from the server. This is not good if the blob is large (few 100 megs) . So I am going to implement a cache system. but the problem is If I am caching in the memory it will not support large objects (Memory is a limited factor). So the preferance is use the Temperary files but I do not know how to detect the path to temperary folder.
    And my 2nd questions is are the applets allowed to write and read in temperary folder.

    The Java default temporary file path can be determined with
    System.getProperty("java.io.tmpdir")This is typically the same value as the os environment variable

  • How to detect color pages in a PDF?

    I am using a C++ Acrobat plug-in do read/edit a PDF file.
    I need to get the total number of pages in the PDF as well as the page numbers of color pages.
    So far I have been able to get the total number of pages using PDDocGetNumPages() without any trouble.
    However, I cant seem to find an API that lets me know whether a particular page is color or not. Is there a way to do this?
    Thanks in advance!

    But what if there is RGB data that means black or gray (R == G == B), does that mean black or RGB?
    There is some sample code in the SDK for iterating over the content in the PDF, and then you can get the colorspace and the color of each object.
    But you really need to do some background research on colors & colorspaces to properly achieve this goal.
    From: Sachintha81 <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 8 Feb 2012 16:57:10 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How to detect color pages in a PDF?
    Re: How to detect color pages in a PDF?
    created by Sachintha81<http://forums.adobe.com/people/Sachintha81> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4194889#4194889

  • How to detect the HTML extension window close in In-design? Does the In-design throws any event on opening/closing of extensions?

    How to detect the HTML extension window close in In-design? Does the In-design throws any event on opening/closing of extensions?
    I have a HTML extension running in In-design CC 2014 version.
    I want to perform some required set of actions before my extension window is closed(by clicking on the cross button on top right corner).
    Does In-design throws any event for it? Or can we capture it using C++ plugin in some way?

    Naah.......haven't got any event for that yet.
    Although, since HTML extensions are using chromium browser,  as a workaround, u can attach listener to HTML onClose event, but it won't solve any purpose if you
    are looking to logout session or do some business login in your code.

  • How to detect the final loop iteration of a step in a PostStep Engine Callback?

    I see the need to use a PostStep Engine Callback and look at the Step.Result container of the caller.
    My issue: If the caller is configured to loop, the PostStep Engine CB executes with each iteration and I do not see how to detect the final iteration (which is the only iteration I am interested in).
    Ideas are welcome. Thanks in advance,
    Guenter

    Guenter,
    well, the way i discripted IS the generic way. The reason for this is the following:
    You can compare TestStand very well with procedural programming languages. So you have variables with different lifetimes and scope. RunState is one variable, which is available in every scope, but it may have different content.
    So you leaving the execution of your clientsequence in order to call the callback, you leave the scope of the RunState from your clientsequence. But only there the information is stored on how many iterations are left. It does not make sense to pass this anywhere, since the execution of your clientsequence has to decide if to loop further or not.
    But, please note that there are different scopes for the "disable result recording" as well. You have found the most global one, the station option. But you can as well set this in the sequence settings (Edit >> Sequence Properties >> Disable Result Recording for All Steps) and at step-level (Run Options >> Record Result {uncheck it}).
    Looping on a single step using the step settings, you can additionally choose not to record results for each iteration. This will lead to only a single entry in the ResultList, the overall result of the looped step (if resultcollection is enabled of course!).
    hope this helps,
    Norbert 
    Message Edited by Norbert B on 08-22-2008 02:10 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

Maybe you are looking for

  • When my MX882 prints at standard or fast settings, I get 1/4 inch striping (left to right).

    The stripes appear to be caused by extra blue ink in the darker bands.  The head-test looked great with one possible clue that is not described in the manuals or forums (so far).  The top color block (C) is two tone blue, 50/50.  No known changes wer

  • Condition record number issue

    Hi, I have a situation where in a SA with LP agreement type, one item has 3 conditions PB00 for different periods. Valid from      Valid     Valid from valid to Price 01.01.2013 01.02.2013 10 02.02.2013 01.03.2013 11 02.03.2013 31.12.9999 10 Now in A

  • 6.1 NPD - Project Name and Status not showing in the Project Header

    I have this issue in 6.1 NPD - The NPD Project Name and Status is not showing in the Project header when opening a project. Any ideas? Thank you.

  • Ipod 4th generation from mac to pc

    I apologize if this question has been posted before but I want to make sure I am doing the right thing. I understood that if you had an ipod formatted to work on a mac, you could not use it on a PC. What I need is to sell my 4th Generation mono-displ

  • Brightness and Volume control indicator not appear

    dear all, I have recently reinstalled my Win 7 Pro, also installed all drivers but when i am adjusting my volume or brightness with hotkeys (for volume push bottons and for brightness Fn delete home), i am not able to see grreen indicator bars, Pleas