NI 6008 - Questions on the C APIs and how to use them

Hi
I am trying to use the NI 6008 to drive a Digital Programmable Attenuator and had a few questions. I am newbie with this device, so most of my questions are relating to figuring out the basics with this device.
1) I am hoping to be able to write a simple C program to have the NI USB 6008 drive this Digital Programmable Attenuator. Is this possible? I could find the NI-DAQmx C Reference Help file, but I cant seem to find how to build and load a program onto the NI USB 6008?
2) I would like to be able to turn ON a particular attenuation setting on the Digital Prog. Atten. at a specific instant and after a few milliseconds turn it OFF. And repeat this endlessly. I was looking for a Timer API to let me control the Digital Prog. Atten. at set timer interrupts but I am not sure if there is a way to do this. I see the APIs: DAQmxCfgImplicitTiming and DAQmxCfgSampClkTiming. But I am not 100% sure if these are the right APIs to use for this purpose. Also which APIs can I use to set the Digital lines in the DAQ to highs and lows?
Like I said earlier, I am a newbie with this device and I am not really sure if I am going in the right direction. Any help would be greatly appreciated.
Thanks
Anand

You do not load a program onto the device. Your program runs on your pc and you build your program that calls the DAQmx functions.
There is no clock for for the digital I/O. As the spec says, it is strictly software timed which means you explicitly write a true or false, one state at a time. This is subject to jitter from Windows and I would not expect rates above 100 Hz.

Similar Messages

  • What are variables or parameters in Apex and how to use them?

    Hi
    What are variables or parameters in apex and how to use them to connect and run BI Publisher Report
    From Apex URL

    Hello Kanaiya,
    You should go here: http://www.oracle.com/technology/products/database/application_express/index.html
    Look at "What is Oracle APEX?" then download the documentation and review the various PDF files that are available.
    If you have a version of APEX installed and available, go through the 2-Day Application Express Developer's Guide followed by the Advanced Developer's Guide.
    Good luck,
    Don.

  • What's the WS adapter and how to use it?

    Hi,
    When I create Comunication channel, i need to select adapter type.
    one of the adapter types is WS adapter?
    I searched in help portal and sdn, but can't find any information.
    Who know WS adapter and how to use it?
    Could youplease provide such information.
    Thanks in advance,
    Best Regards, Johnney.

    >>In SAP XI / PI, WS adapter is not thier frm standard SAP.
    Are you sure about this?
    WS is a standard adapter shipped along with PI 7.1 installation.
    Quote from help.sap.com
    Using the WS adapter you can configure the communication of systems, which communicate with each other using the Web service runtime either directly (point-to-point) or using the Integration Server
    Refer:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/45/37d73b80554c2ce10000000a1553f6/frameset.htm
    If you are not sure about what you are saying, it is better not to say it.

  • 2 questions on what's wrong and how to fix them

    I have been using sueface rt for quite some time now and recently, I've started facing issues with some areas and have been unable to find answers anywhere. hoping that someone will be able to help me with my problems as it is getting pretty irritating.
    1.) unable to change account picture and lockscreen background.
    2.) unable to find updates for both xbox music and video player in the store
    as what 1 and 2 have suggested, some things are going wrong. tried finding answers online and tried what they suggested but to no avail. i'm not sure whether is it because I have downloaded music from websites and hence they are unable to function properly
    but have tried deleting them and still got the same results. anyone has been in the same situation and found solutions to them?? please suggest some as I really have no idea what to do anymore. thanks :)

    Hi Chuckfrombc,
    Based on your description, it sounds like there may be a hardware issue with your display. You may want to consider taking it in for evaluation and service; you may find the following page helpful (if you are not located in the United States, make sure to select your correct country from the dropdown):
    Service Answer Center - iPad
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipad
    Regards,
    - Brenden

  • I just have questions about the AirPort Express and how it works.

    My household Wi-Fi is not the strongest in  my room and I found out about the AirPort Express and I read the overvie, but I still have some questions on how it works, how its setup and other questions as well.

    The AirPort Express will not wirelessly extend the signal from another router unless that router is also an Apple product.
    Not sure what other questions you might have, but we'll try to answer if you want to ask.

  • What's the meaning of thes user exit, and how to use it?

    Hi gurus,
    I found two exits, USEREXIT_PRICING_CHECK  and USEREXIT_XKOMV_ERGAENZEN_MANU , can somebody tell me how to use these.
    prmoise to reward helpful answers.
    thanks in advance.
    elly

    hi
    <b>
    USEREXIT_PRICING_CHECK</b> (module pool SAPMV61, program MV61AFZA)
    You can install additional checks to the standard checks of condition lines (e.g. maximum/minimum value).
    <b>USEREXIT_XKOMV_ERGAENZEN_MANU</b> (module pool SAPLV61A, program RV61AFZB)
    You can use this user exit to change the ready-for-input fields of the manually entered condition record in add mode in the condition screen.
    Just have look below link
    http://help.sap.com/saphelp_40b/helpdata/es/14/f62c7dd435d1118b3f0060b03ca329/content.htm
    http://help.sap.com/saphelp_46c/helpdata/en/14/f62c7dd435d1118b3f0060b03ca329/frameset.htm
    regards
    vinod

  • How to use PS to judge the existence of a folder in the specified directory and how to use PS in the specified directory to create to create the folder?(javascript)

    1,How to use PS to judge the existence of a folder in the specified directory?(use javascript)
    2, how to use PS in the specified directory to create to create the folder?(use javascript)
    Thanks you!

    Thanks you!

  • Tweaks to the language system and how to fix them

    First off, I love the fact that now you can actually scroll through the list by continuing to hit the spacebar as you hold down the command key. That's great, and it saves me a whole lot of going up to the menu bar to change around.
    That said, this update seems to have broken a whole lot of things that used to work before:
    • As opposed to being instant, switching seems to lag now, and sometimes doesn't even switch where expected, but skips down the list a couple
    • Some of the extra conversion features in Kotoeri don't work anymore (e.g. Convert to Related Character, which I relied on quite a bit before when trying to input characters I didn't know readings to offhand). It appears in the menu, but remains greyed out.
    • The Chinese Text Conversion services now only show up contextually, and only if the text is all one or the other. Rather appreciated it when you could blanket convert all of the traditional characters in a text down or all of the simplified characters up, but now I've got to select in targeted and sometimes intermingled sections to get that same functionality. I realize that Chinese text conversion isn't necessarily as simple as 后 always equals 後 and so on, however the system under Leopard did it pretty much exactly as I needed every time.
    Is there any way to fix any of the above?

    For Chinese issues, you might want to also post in the Chinese Mac list:
    http://groups.google.com/group/chinesemac/

  • What is access sequence tables and how to use them in program?

    hi all, I know a little about SD and access sequence tables, but I get a requriment like this:
    condition type is a paramater
    The condition types allowed in this report are: Note: A list of pre-defined condition types with their corresponding access sequence tables will be defined.
    How can I make it? How can I use it in program to get the price?

    Hi,
    An access sequence is a search strategy with the aid of which the SAP
    System searches for valid condition records of a certain condition type.
    For example, you can stipulate for a price that the SAP System first
    searches for a price for a specific plant, and then for a generally
    applicable price.
    For condition types for which you wish to maintain conditions with their
    own validity period, you must assign an access sequence. With this, you
    define which fields the SAP System checks in searching for a valid
    condition record.
    e.g. When you create condition record (e.g. Purchasing condition record) you enter condition type, system asks you the key combination to enter the entries. These key combinations are nothing but the access sequence. On the basis of combination of condition table it will search record. e.g. when u maintain condition record with acc seq Material/plant combination, it will transfer the same record in PO when u enter same material and plant in the PO.
    Example:
    An access sequence has been assigned to condition type PB00 so that
    prices can be maintained in purchasing info records and contracts.
    No access sequence has been assigned to condition type RC00 because it
    does not have a validity period of its own. In the standard system, it is
    always maintained simultaneously with the price and is valid for the
    period of the price.
    For more help
    http://www.sap-img.com/materials/steps-for-mm-pricing-procedures.htm
    Regards,
    Raj.

  • Subject: Where are SAP Exit Variables and how to use them in Bex Query

    I have seen references to variables:  0cyear (Current Year), 0CALYEAR (current year), oCALMONTH (Current month/year).
    Under 0CALMONTH characteristic or 0CALYEAR I do not see any of the variables, so how does
    one use these variable in the query. For example I want to create a restricted key figure:  Duration restricted by Current calendar year (e.g.  2009 if I am in 2009, 2010 if I am in 2010..).

    Thanks a lot. Actally, I was looking in my production system and under varaiables I did not find any SAP Exit variables,
    but in development envrionment I do see some.
    Why will it not show me these variables in production? Is it because:
    1. Some special premssion is required to view this type of variable
    or
    2. THese varaiables were not installed from Business Content
    It is hard for me to beleive, it is permission issue.

  • Zip or Jar files and how to use them

    Hi ,
    I have this problem. I have some .class that must be
    packaged some way to deploy in the application user's directory. At some point of the execution the application will ask to create some object define in one of that classes I mentioned. So how can I package those classes, in a jar file or in a zip file? And most important will it work out ?!.
    Many thanks in advance.

    Using JAR Files: The Basics

  • Combo_boxes and how to use them

    I'd like to be able to type a search term into a combo box and, with each typed character, i'd like to perform a SQLite query and get back results that influence what items appear in the popup menu part of the combo-box.  I've been able to do this with a popup_menu and a separate edit_field, but it takes up too much room in the user interface. ideally i'd like to be able to do it from a combo_box.  but there don't seem to be enough hooks into a combo_box to do this. take for example the value parameter.  while a variable bound to it will contain the text typed into the combo_box, it also contains the value of whatever item is pulled down in the popup menu.  this leads to confusion and none of my experiments have been able to get values typed into the combo_box to actually produce new SQLite queries on a character-by-character basis (yes, i tried adding immediate=true to the combo_box instance when i created it).
    that said, i'm going to guess that (like everything else in the SDK), there are parameters i can set in a combo_box to deal with the text typed into it and the item selected by the popup separately. i just don't know what they are because they are not mentioned in the documentation for a combo_box.  or i'm wrong and what i am requesting is impossible.  but i thought i'd ask here first.

    HI Victor,
    I meant the validate function - it would be clarified if you download the test plugin (see link a few posts up).
    Here is guts of the code:
    vf:push_button {
        title = "Push me... (perform test)",
        action = function( button )
            LrFunctionContext.postAsyncTaskWithContext( "Test", function( context )
                local efValidated = false
                local cbValidated = false
                context:addCleanupHandler( function( status, message )
                    if status then
                        local m = {}
                        local c = 0
                        if efValidated then
                            m[#m + 1] = "edit-field validator was called"
                            c = c + 1
                        else
                            m[#m + 1] = "*** edit-field validator was NOT called"
                        end
                        if cbValidated then
                            m[#m + 1] = "combo-box validator was called"
                            c = c + 1
                        else
                            m[#m + 1] = "*** combo-box validator was NOT called"
                        end
                        if c > 0 then
                            LrDialogs.message( section.title.." completed without an error being thrown - "..table.concat( m, ", " ).."." )
                        else
                            LrDialogs.message( section.title.." failed! - no validators were called." )
                        end
                    else
                        LrDialogs.message( "*** "..section.title.." ended - an error was thrown: " .. ( message or "?" ) .. " - push '"..button.title.."' button to perform test again, if desired." )
                    end
                end )
                props.efValue = "Edit this - validator should get called when you do"
                props.cbValue = "Edit this - validator should get called when you do"
                props.items = {
                    "No worthwhile items...",
                --[[ validate function spec -
                    Parameters:
                        view (LrView) This control.
                        value (any) The value to validate.
                    Returns three values:
                        result (Boolean) True if value was valid.
                        value (any) The new value.
                        message (string) If result is false, an error message.
                local function validate( viewObject, value )
                    props.items = {
                        "One", "Two", "Three", "...",
                    return true, value
                end
                local vi = {
                    vf:row {
                        vf:static_text {
                            title = "Edit field:",
                            width = share 'label_width',
                        vf:edit_field {
                            bind_to_object = props,
                            value = bind 'efValue',
                            --items = { 'no worthwhile items' },
                            immediate = true,
                            validate = function( vo, value )
                                efValidated = true
                                return true, value -- false, "edit-field validator was called", "edit-field validator is ok"
                            end,
                            width_in_chars = 30,
                    vf:row {
                        vf:static_text {
                            title = "Combo box:",
                            width = share 'label_width',
                        vf:combo_box {
                            bind_to_object = props,
                            value = bind 'cbValue',
                            items = { 'no worthwhile items' },
                            immediate = true,
                            validate = function( vo, value)
                                cbValidated = true
                                return true, value -- false, "combo-box validator was called", "combo-box validator is ok"
                            end,
                            width_in_chars = 30,
                local args = {}
                args.title = "Test"
                args.contents = vf:view( vi )
                LrDialogs.presentModalDialog( args )
            end )
        end, -- action func
    Problem: validate function (of combo box) not getting called - what am I doing wrong?
    PS - validate function of edit-field is getting called.
    Rob

  • TABS and HOW to USE them

    does anyone know how to make basic tabs?

    have i used tabs? no way. you put them on your tongue and they make you crazy.
    real berkeley. you know what i mean.

  • [svn:bz-trunk] 20695: Tomcat 7 Valve/ LoginCommand changes due to the ValveBase API and Realm API change.

    Revision: 20695
    Revision: 20695
    Author:   [email protected]
    Date:     2011-03-08 13:32:45 -0800 (Tue, 08 Mar 2011)
    Log Message:
    Tomcat 7 Valve/LoginCommand changes due to the ValveBase API and Realm API change.
    rename valve name as Tomcat7Valve
    will need to merge the build.xml after the build machine can fork a JDK 1.6 build
    Checkintests pass
    Modified Paths:
        blazeds/trunk/modules/opt/build.xml
    Added Paths:
        blazeds/trunk/modules/opt/src/tomcat/flex/messaging/security/Tomcat7Valve.java
    Removed Paths:
        blazeds/trunk/modules/opt/src/tomcat/flex/messaging/security/TomcatValve708.java

  • How to reset your secret question, when you have forgot the answer. And how to change the email where the reset confirmation will be send towards?

    can anybody help with the question below?
    how to reset your secret question, when you have forgot the answer. And how to change the email where the reset confirmation will be send towards?

    You won't be able to change your rescue email address until you can answer your questions, if you don't have access to your current rescue account then you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use steps 1 to 7 half-way down this page to update your rescue email address for potential future use : http://support.apple.com/kb/HT5312

Maybe you are looking for