How do I program the cwCounter control to generate an AcquiredData Event?

I'm trying to use a general purpose timer on a 6024E DAQ card to generate an AcquiredData event every n MS.
I can get the timer to run, but I can't seem to get the AcquiredData event to fire. Here is the code I'm using:
ctrLoop.Reset
ctrLoop.device = 1
ctrLoop.Counter = 0
ctrLoop.ExceptionOnError = True
ctrLoop.InitialCount = 0
ctrLoop.MeasurementType = cwctrEvents
ctrLoop.NMeasurements = 10
ctrLoop.BufferMode = cwctrContinuous
ctrLoop.bufferSize = 10
ctrLoop.UseBuffering = True
ctrLoop.TimebaseSource = cwctrFrequencyTB
ctrLoop.TimebaseSignal = 100000
ctrLoop.Configure
ctrLoop.Start
I'm using the following:
Component works 6.0
VB 6 with Sp5

Hello;
The event you are trying to program is not supported by your hardware. The best way to go about that is to generate a pulse train, on the frequence you want the counter to fire, with one of the counters you have on that board of your; and to have the output of that counter routed to the gate input of one of the counters of a TIO device. The TIO devices support triggered pulse train generations.
Regards
Filipe A.
Applications Engineer
National Instruments

Similar Messages

  • How can I program the text fields in my email forum to have rounded corners

    How can I program the text fields in my email forum to have rounded off edges or corners. 
    this is the code im using.
    // insert code here// insert code here// prepare email field
    var email = sym.$("email")
    email.html("Enter your Email: ");
    inputEmail = $('<input />').attr({'type':'text', 'value':'', 'id':'email'});
    inputEmail .css ('font-size', 14);
    inputEmail .css ('width', 350);
    inputEmail .css ('background-color', '#4e4e4e');
    inputEmail .appendTo(email);
    // prepare topic field
    var topic = sym.$("topic");
    topic.html("Topic: ");
    inputTopic = $('<input />').attr({'type':'text', 'value':'', 'id':'topic'});
    inputTopic .css ('font-size', 14);
    inputTopic .css ('width', 350);
    inputTopic .css ('background-color', '#4e4e4e');
    inputTopic .appendTo(topic);
    // prepare message field
    var message = sym.$("message");
    message.html("Message: ");
    inputMessage = $('<textarea />').attr({'type':'textarea','rows':'10', 'cols': '25','value':'', 'id':'message'});
    inputMessage .css ('font-family',"Arial,Helvtica,sans-serif");
    inputMessage .css ('color',"#ffffff");
    inputMessage .css ('font-size', 14);
    inputMessage .css ('background-color', '#4e4e4e');
    inputMessage .css ('box-shadow', '#4e4e4e');
    inputMessage .css ('width', 350);
    inputMessage .css ('height', 150);
    inputMessage .appendTo(message);
    var submitBtn = sym.$("btn");
    submitBtn.html("Submit");
    submitBtn.css("text-align", "center");
    submitBtn.css("font-size",14);
    submitBtn.css("font-weight","bold");
    submitBtn.css("color","#ffffff");

    Try this: inputEmail.css ('border-radius', '25px');
    attachment
    more details

  • How can we put the report which is generated by the program into spool??

    How can we put the report which is generated by the program into spool??
    I had generated a file in Unix which had the report but now the requirement has changed.
    Regards,
    Shashank.

    Hi Shashank,
    If the program is executed in the background and it has the write statement then the spool will automatically generated.
    Reward points if useful.
    Regards,
    Atish

  • How do I program the preloader in a fluid swf from another fluid swf?

    I have built a fluid swf(preloader.swf) which is like an intro-cum-preloader screen to a flash site which is stored in main.swf. How do I program the preloader.swf to show the preload percentage of main.swf ?
    All the swf files used here are fluid,so there is an actionscript file which loads the movieclips onto stage dynamically,please give me a solution to this keeping this in mind. Please do ask for clarifications if needed.

    You want to use the Loader class in Actionscript 3. If you look at the example in the online help, you'll see that there are, among others, a progress event and a complete event. You can use this progress event, to track the progress of the loading of the file. The complete event occurs when the file has completely loaded.
    Have a look at this: http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65b32-7fa4.html it explains how to use a Progress Bar component to show the loading of a file.

  • HT4759 How do I find the icloud control panel in a Windows 8 PC environment

    How do I find the icloud control panel in a Windows 8 PC environment

    Go to the Start screen, then click the iCloud tile.
    http://support.apple.com/kb/PH12803

  • How do I download the iCloud Control Panel to windows 8?

    How do I download the iCloud Control Panel to windows 8

    Here: http://www.apple.com/icloud/setup/pc.html

  • How can i extend the table control while transfering the data

    hi
    how can i extend the table control while transfering the data.

    Hi,
    For table control we have to handle the page down (P+, or what ever function codes are assigned to that activity) activity with our coding.
    Just check out this code:
    This is the bdc to update the XK01 transaction code (Vendor Creation).
    Here we will use table controls for bankings. Here Iam sending the coding and text files.
    Coding
    REPORT zprataptable2
    NO STANDARD PAGE HEADING LINE-SIZE 255.
    DATA : BEGIN OF itab OCCURS 0,
    i1 TYPE i,
    lifnr LIKE rf02k-lifnr,
    bukrs LIKE rf02k-bukrs,
    ekorg LIKE rf02k-ekorg,
    ktokk LIKE rf02k-ktokk,
    anred LIKE lfa1-anred,
    name1 LIKE lfa1-name1,
    sortl LIKE lfa1-sortl,
    land1 LIKE lfa1-land1,
    akont LIKE lfb1-akont,
    fdgrv LIKE lfb1-fdgrv,
    waers LIKE lfm1-waers,
    END OF itab.
    DATA : BEGIN OF jtab OCCURS 0,
    j1 TYPE i,
    banks LIKE lfbk-banks,
    bankl LIKE lfbk-bankl,
    bankn LIKE lfbk-bankn,
    END OF jtab.
    DATA : cnt(4) TYPE n.
    DATA : fdt(20) TYPE c.
    DATA : c TYPE i.
    INCLUDE bdcrecx1.
    START-OF-SELECTION.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = 'C:\first1.txt'
    filetype = 'DAT'
    TABLES
    data_tab = itab.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = 'C:\second.txt'
    filetype = 'DAT'
    TABLES
    data_tab = jtab.
    LOOP AT itab.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RF02K-KTOKK'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'RF02K-LIFNR'
    itab-lifnr.
    PERFORM bdc_field USING 'RF02K-BUKRS'
    itab-bukrs.
    PERFORM bdc_field USING 'RF02K-EKORG'
    itab-ekorg.
    PERFORM bdc_field USING 'RF02K-KTOKK'
    itab-ktokk.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFA1-LAND1'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'LFA1-ANRED'
    itab-anred.
    PERFORM bdc_field USING 'LFA1-NAME1'
    itab-name1.
    PERFORM bdc_field USING 'LFA1-SORTL'
    itab-sortl.
    PERFORM bdc_field USING 'LFA1-LAND1'
    itab-land1.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0120'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFA1-KUNNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKN(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    cnt = 0.
    LOOP AT jtab WHERE j1 = itab-i1.
    cnt = cnt + 1.
    CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
    PERFORM bdc_field USING fdt jtab-banks.
    CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
    PERFORM bdc_field USING fdt jtab-bankl.
    CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
    PERFORM bdc_field USING fdt jtab-bankn.
    IF cnt = 5.
    cnt = 0.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKS(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=P+'.  " Page down activity
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKN(02)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    ENDIF.
    ENDLOOP.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKS(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0210'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFB1-FDGRV'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'LFB1-AKONT'
    itab-akont.
    PERFORM bdc_field USING 'LFB1-FDGRV'
    itab-fdgrv.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0215'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFB1-ZTERM'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0220'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFB5-MAHNA'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0310'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFM1-WAERS'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'LFM1-WAERS'
    itab-waers.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RF02K-LIFNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=YES'.
    PERFORM bdc_transaction USING 'XK01'.
    ENDLOOP.
    PERFORM close_group.
    **Flat files for the above code***
    Intial screen data file.
    1 63190 0001 0001 0001 mr bal188 b in 31000 a1 inr
    2 63191 0001 0001 0001 mr bal189 b in 31000 a1 inr
    Table control Data:
    1 in sb 11000
    1 in sb 12000
    1 in sb 13000
    1 in sb 14000
    1 in sb 15000
    1 in sb 16000
    1 in sb 17000
    1 in sb 18000
    1 in sb 19000
    1 in sb 20000
    1 in sb 21000
    1 in sb 22000
    2 in sb 21000
    2 in sb 22000
    Regards,
    Kumar.

  • How do I use the Scintilla control?

    Hi All
    I'm assuming at least some people on here must have experience of the Scintilla control for creating a Notepad++ type application. I'd like to use this control, unfortunately there is very little in the way of documentation or working examples around
    and as such I am totally stuck!
    I'm not even going to post any code as I am nowhere near anything worthy of critique. Rather I will just explain what I want to achieve and hopefully somebody will be able to post a snippet of code which will do the job and I can take it from there.
    First, I want to control this with code rather than an xml file so that it is easier to adjust dynamically. So, my wishlist is:
    1) Create five keyword lists and five styles (just different colours for now). Assign one style to each keyword list so that any word in that list is styled accordingly. The comment prefix is // and comments should be in green.
    2) If one of my keywords is, for instance, ScintillaNET and I just type scintillanet, it should capitalize automatically as per the keyword in the list.
    3) Where I have multiple keywords beginning with the same letters, I should get a list of possible words come up, much like an enumeration in vb.net.
    4) Finally, it would be nice to be able to set the line number of my first line - for instance if I am using pages and I am viewing page 2 I might want to display just lines 101-200 and of course I would then want the line numbers to be 101-200 not 1-100, so
    I will want to set the first line to 101.
    I dare say that once you know how to use Scintilla the above can all be achieved in little more than a few seconds with just a few lines of code and it will all look really obvious. So it would be fantastic if somebody could help me out here!
    Many thanks
    Rich

    I'm assuming at least some people on here must have experience of the Scintilla control for creating a Notepad++ type application. I'd like to use this control, unfortunately there is very little in the way of documentation or working examples
    around
    >unfortunately there is very little in the way of documentation
    Have you read all of this?
    Scintilla Documentation
    http://www.scintilla.org/ScintillaDoc.html
    >or working examples around
    Have you examined this project in detail?
    SciTE is a SCIntilla based Text Editor.
    http://www.scintilla.org/SciTE.html
    SciTE Documentation
    http://www.scintilla.org/SciTEDoc.html
    - Wayne

  • How can I Use the iCloud Control Panel to pick a new folder

    I apparently moved or deleted my iCloud folder and keep getting this message Use the iCloud Control Panel to pick a new folder.  How do I do this?

    I have/had the same problem, just started this morning. I tried a system restore to a known good date. I still had the problem so I rolled restored the system to the latest.
    Thinking that it might have something to do with priviliges, I reviewed my user account and noticed it was set to "Administrator". On a whim, I switched my user account from administrator to "standard user" and I'll be... the issue dissapeared. I have no idea why. But I thought I'd pass it along.

  • How can labview update the string control (text-edit box) after we have pressed the carriage return key on the keyboard during text-editing within that box?

    Dear readers,
    I have been trying to work out how to get labview to detect the event when a 'string' control has been modified, where the user has finished editing the string either by 1) pressing the enter key on the keyboard, or by 2) taking the focus away from the string control again. For example.. if I use the mouse to click on the string control and then I type 1234 into the box, I would like to have a routine that does something once the user hits the Enter key of the keyboard, or when the user takes the focus away from the string control again by clicking on something else. I would like the routine to respond even when the user didn't change anything in the text box (such as when we mouse-click on the edit box to go into edit mode, and then mouse-click on something else to remove the focus with no changes to the contents in edit-box).
    The purpose of my routine is to have a edit-box for a user to change for example the centre-frequency of a vector network analyser, so that the centre-frequency of the network analyser can change once the user finishes entering a new value in the text-edit box by hitting Enter key after the number is keyed in. Even if the user has clicked on the edit box, but changes their mind by mouse-clicking on something else to remove focus from the edit box, I would still like labview to detect the event when the control loses focus, so that the centre frequency can be updated anyway (to the same value that was already in the edit box).
    So far, I've tried set the string control option to 'limit to single line', so that I can try to scan for a carriage return .. '\n' ... pattern in the string. Unfortunately this doesn't work because labview doesn't seem to attach the '\n' to the end of that single line.
    Could someone please suggest ways to set a flag when a user hits Enter during text-edit mode of a string control, or when focus has been removed from the string control?
    While I've only described my problem for controlling a single control parameter on the gpib device, I'd like to make this feature work so that I can do the same kind of thing with other control parameters as well.
    Thanks so much in advance.
    Kenny

    Hi Kenny,
    instead of using the event structure, you can directly achieve to what you want by the KeyFocus property of the string control.
    - Enable Limit to single line option
    - Create the property KeyFocus in read mode and connect an indicator
    Each time you click on the string to modify it KeyFocus is True; when you click away or hit Enter KeyFocus is False.
    You can toggle your settings when KeyFocus changes from True to False.
    Alberto

  • How do I locate the quicktime control panel (to upgrade to quicktime pro) in Windows 7 home premium?

    I just paid to upgrade QuickTime and received a registration code. Tho problem is there is no way to find the QuickTime control panel via the Windows 7 Home Premium control panel. How to I ovrcome this?
    p.s. I'm a newbe to QuickTime :-)

    Thanks Gary,
    This does not help me... the instructions state:
    1. Locate the QuickTime 7 Control Panel
    From the Windows Desktop, click on the Start menu, choose Settings, then choose Control Panel, then locate the QuickTime 7 Control Panel.
    However, I cannot locate the QuickTime 7 Control Panel on the Windows 7 control panel -- it's not listed anywhere in the available options.

  • How do you fix the ActiveX controls?

    When trying to play games in IWin the message comes up and says and beeps that the ActiveX controls isn't working on some level. Do I need to worry about this message? If I do, how do I go about fixing this problem. Do I need to upgrade this control?

    Hi idpress2002, the only browser that runs ActiveX controls is Internet Explorer.
    Can you run the demos on the Ajatix page here in your Firefox: [http://www.ajatix.com/lightbox/expression-web-add-in.html]? (Scroll down to "Lightbox examples")
    ''If so,'' you may need vendor support on how to get it to work through Expression Web in your page.
    ''If not,'' your Firefox may not be configured correctly. Please start a new question providing your system details and add-on information. You can do that here:
    https://support.mozilla.org/en-US/questions/new/desktop/websites

  • How can I program the code opacity in objects such as my email forum

    I need to program the code to affect only the backgroun colour of my email forum and not the text that mustt remain solid.
    // insert code here// insert code here// prepare email field
    var email = sym.$("email")
    email.html("Enter your Email: ");
    inputEmail = $('<input />').attr({'type':'text', 'value':'', 'id':'email'});
    inputEmail .css ('font-size', 14);
    inputEmail .css ('width', 350);
    inputEmail .css ('background-color', '#4e4e4e');
    inputEmail .appendTo(email);
    // prepare topic field
    var topic = sym.$("topic");
    topic.html("Topic: ");
    inputTopic = $('<input />').attr({'type':'text', 'value':'', 'id':'topic'});
    inputTopic .css ('font-size', 14);
    inputTopic .css ('width', 350);
    inputTopic .css ('background-color', '#4e4e4e');
    inputTopic .appendTo(topic);
    // prepare message field
    var message = sym.$("message");
    message.html("Message: ");
    inputMessage = $('<textarea />').attr({'type':'textarea','rows':'10', 'cols': '25','value':'', 'id':'message'});
    inputMessage .css ('font-family',"Arial,Helvtica,sans-serif");
    inputMessage .css ('color',"#ffffff");
    inputMessage .css ('font-size', 14);
    inputMessage .css ('background-color', '#4e4e4e');
    inputMessage .css ('box-shadow', '#4e4e4e');
    inputMessage .css ('width', 350);
    inputMessage .css ('height', 150);
    inputMessage .appendTo(message);
    var submitBtn = sym.$("btn");
    submitBtn.html("Submit");
    submitBtn.css("text-align", "center");
    submitBtn.css("font-size",14);
    submitBtn.css("font-weight","bold");
    submitBtn.css("color","#ffffff");
    // get the value of the differnt fields
    function emailInfo(){
                var emailInfo = inputEmail.attr("value");
             var topicInfo = inputTopic.attr("value");
             var messageInfo = inputMessage.attr("value");         
                // this is testing the values
                //alert(emailInfo + " " + topicInfo + " " + messageInfo);
                // youwill need to insert the email address where to send the result below.
                // CHANGE THIS BELOW [email protected] TO THE EMAIL ADDRESS YOU WANT TO SEND THE MAIL TO.
            location = ?subject="+topicInfo + "&body=" + emailInfo + messageInfo;
        return true;
    // send the info to server
    submitBtn.click(function(){   
             emailInfo();

    Also if you actually do it in the control panel then you have the settings you need. But Joel is right - the css is exactly the same as what you see in the control panel.

  • How can I deactivate the button control?

    By mistake I´have activate the button control in my iphone and now I can´t even unlock it . I don't know how to deactivate it .

    You are going to have to explain what is happening when you try to unlock your phone. I do not understand what you mean by "button control".

  • How should I set the print control in a SmartForm for barcoding?

    I already have defined the prefix(SBP27) and suffix(SBS01) print controls, now I would like to know how set them in the field in the Smart Form.

    Jorge,
    The forum you have posted your question in is for questions related to the SAP Business One SDK.  Is your question related to the Business One SDK?
    Eddy

Maybe you are looking for

  • Jabber status issue

    hello , i have jabber installed at pcs , but i noticed that when users sleep their computer then wake it up again the jabber stay logged in but the status go offline ,relogging at the jabber solve the problem , but is that a bug that the jaber dosent

  • Custom screen using BBP_CUF_BADI

    Hi, I am trying to call a custom screen using implementation of BADI, BBP_CUF_BADI. I have written the following code in the implementation of the PUT_DATA method. EV_REPID = 'Z_SCREEN'. EV_DYNNR = '8888'. The screen is not displayed. Also if you cou

  • T_Code: S_PL0_09000158-(pgm:RFUSVS14) Report issue[Spain Specific Report]

    Dear Customer, We have used S_PL0_09000158 for annual Operation Report in order to submit Tax information to agency. However we have found some balance discrepancy issue between FD10N-Customer Balance display and S_PL0_09000158. I have identified thi

  • Heading style customizations not reflected in HTML Help file

    I wanted to share a solution I found for a problem with heading styles. I am using RoboHelp 9 for Word with Office 2010 and generating an HTMLHelp .chm file. When I migrated from Office 2003 to 2010 and RoboHelp 8 to 9, I customized the RoboHelp.docm

  • ADF:LOV declarative component not working inside table component.

    Hi, I have created a custome LOV control,I am using this custom LOV control inside the table component,I am passing the below values as the parameter KeyValue="#{row.bindings.Value.inputValue}" LovModel="#{row.bindings.Value.listOfValuesModel}" Value