How to set a pre-trigger when triggering off a physical channel

I am trying to set a pretrigger when triggering off a physical channel when the voltage is above a threashold. Basically I would like to capture the pretrigger and posttrigger from a channel. I am using Visual C++.NET with Measurement Studio 7.1 with DAQmx 7.4 driver. I used to program this application with Visual C++ 6.0 with traditional NI DAQ with software analog (stop condition). How do I program in the DAQmx ?
Thanks,
Yajai

In NI-DAQmx, the triggering technique you are referring to is called 'Reference Triggering'. In the attached zip folder is an ANSI C example in NI-DAQmx that demonstrates analog input with a digital reference trigger, acquiring pre and post trigger data. You will have to change the reference trigger function to use an analog edge as opposed to a digital edge (use DAQmxCfgAnlgEdgeRefTrig function). Also in the attached zip file is the NI-DAQmx C Reference Help. You can find all the DAQmx functions and properties there. Hope this helps.
-Alan A.
Attachments:
DAQmx_ref_trig_and_HelpFile.zip ‏53 KB

Similar Messages

  • Can someone tell me how to set my name so when I send a text it shows up instead of my phone number

    Can someone tell me how to set my name so when I send a text it shows up instead of my phone number

    You can't do that. Only the sending number is transmitted by the carrier with an SMS message. If the recipient has you in their address book, with most smart phones and some others, the name will display, but that's a function of the phone on the receiving end.

  • I want to be able to monitor my teen daughter's computer from home using screen sharing.  Anyone know how to set up screen sharing when my daughter's school has her computer set up for Apple Remote Desktop?

    I want to be able to monitor my teen daughter's computer from home using screen sharing.  Anyone know how to set up screen sharing when my daughter's school has her computer set up for Apple Remote Desktop? 

    ARD won't be as smooth as you think  over the Internet and be a security risk for your daughter.
    Your best bet would be to install nannyware, then when she's asleep you can review the logs.
    This is the best and Mac friendly
    http://www.internetsafety.com/

  • I signed up yesterday with synch. I dont know my password and I need it to reset a new password. Please advise how to set a new password when I dont know old 1

    I signed up yesterday with synch. I don't know my password and I need it to reset a new password. Please advise how to set a new password when I dont know old 1
    I set it up on my "upstairs computer" and then came to my "downstairs computer" to synch and I can not get into the account because of the above password problem. I write down my passwords. I must have mistyped it or mis written.
    I want to change my password

    The new Sync version uses the Firefox account and stores the login data (username/email and password) under the https://accounts.firefox.com site heading in the Password Manager and use the signedInUser.json file in the profile folder to store the credentials once connected to the account to avoid having to enter the master password on each start.

  • How to set alarm and trigger it even if the application is not running ?

    I am developing an alarm clock application in air... how to set alarm using setAlarm method in qnx api and run it in back ground so that even if application is closed the alarm triggers at set time

    The OP asked again in this Tablet OS SDK for Adobe AIR forum thread.
    Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
    Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!

  • How to set Music to start where left off?

    It seems when you start up Music, it always reverts to Radio.  Is there a way to set it to "resume where left off" or set it to another section such as Playlist, Album, etc?
    Thanks!

    When first started the Music App starts with the left-most tab active. If you select a different tab Music will stay in that mode until it is terminated. Note that you can reorder the tabs. To do this select More and then select Edit and rearrange the Tabs.

  • How to set an application item when report column link is clicked?

    I am trying to set the short name of a bread crumb entry when I drill into a detail from an interactive report page.
    The master report has a column link with target = detail - "page in this application"
    I can pass page items through the URL and they are set on the target page.
    How can I set an application item before the target page is called?
    Is there a way to set a process before the link is followed?

    Kenneth,
    I'm not totally sure that I understood the question but, it soounds like you want to set the value of some page items on the page that is opened when you click a link on a column in the master window. Is this right?
    If so, you can achieve what you want by creating hidden page item(s) on the target page. In the master page, on which every column provides the link, go into Report Attributes, click on the link column and scroll down to the section labeled "Column Link" Within this section, set the link text to the current column value, e.g. #MASTER_REPORT_COLUMN_NAME_HERE#. Set the target to "Page in this Application" and pick the page number for the target window.
    Underneath this you will see a section to set set the value for page items. If you click the flashlight, you can search for the hidden page item that you created above. Use the same value to set it as you did the link text, i.e. #MASTER_REPORT_COLUMN_NAME_HERE#. Do this and let APEX take care of passing the values on the URL.
    On the child page, just set whatever control you want to dynamically pick up the value from the hidden field. For example, if you hidden field where named P4_CLEARER_NAME. You could set the title attribute to "Contact Information for &P4_CLEARER_NAME."
    You need the preceeding "&" and terminating "." around the name of you hidden page item to do this.
    -Joe

  • How to set email "from" address when sending photo

    when I send photos from my iPhone people respond to the wrong address. This just started. How do I switch the FROM address to the correct email address.

    The From address you want has to be your default account - you can set this in the Mail settings.

  • How to set the paper size when printing to postscript...

    I need help in setting the paper size in the PrintPreference when using either the Postcript File or Adobe PDF printer to generate ps files.
    Here's what I am doing (in c++) and I seem to be getting only 8.5x11 no matter the document page size:
    LPDISPATCH p_Dispatch = Document.DocumentPreferences();
    p_Dispatch = Document.DocumentPreferences();
    if(p_Dispatch)
    DocPreference docPreference(p_Dispatch);
    pgOrientation = (idPrintPageOrientation)docPreference.get_PageOrientation();
    pageW = docPreference.get_PageWidth();
    pageH = docPreference.get_PageHeight();
    paperSize = docPreference.get_PageSize();
    docPreference.ReleaseDispatch();
    p_Dispatch = Document.PrintPreferences();
    if (p_Dispatch)
    { PrintPreference printPreference(p_Dispatch)printPreference.SetPrinter(idPostscriptFile);
    printPreference.PrintFile(outfile);
    printPreference.SetPaperSize(paperSize ); /*I have also tried idCustom but it crashes with invalid parameter for the object type.*/
    printPreference.SetPaperWidth(pageW);
    printPreference.SetPaperHeight(pageH);
    VARIANT vprinterPresetType;
    vprinterPresetType.vt = VT_I4;
    vprinterPresetType.lVal = CInDesignApplication::idCustom;
    Document.PrintOut(FALSE, vprinterPresetType);....
    So how do i pas the document paper size to the print preset or preference?
    I appreciate your input.

    Moving this discussion to the Scanning & OCR forum.

  • How to set & use digital trigger for AIN on a DAQmx?

    1) How I configure a task to allow a digital input line to trigger a AIN reading in VB6.0 with a USB-6210?
    2) To help me answer the above I created a task in Measurement & Automation Explorer that used a digital trigger (TRIGGER TYPE= DIGITAL EDGE, TRIGGER SOURCE = PFI0, EDGE=RISING).  Then from VB I tried to figure out the parameters that were set.  I had no luck.  So, once I understand to achieve (1) above I want to be able to verify the resulting settings.  What command(s) would I use?

    Hi Hjehan,
    I recommend checking the following knowledge Base that can point you to the different DAQmx examples.
    Regards,
    Faris A
    Bueller

  • How to set a customer type when submitting a form

    Hello! How do I set a customer's 'Customer Type' when they submit a form? In other words, I have a form on my website and if a user completes and submits that form, I would like that user to be given a specific Customer Type.
    TIA

    You cant yet.
    Soon though.
    The output for these via liquid will be available in the release later today and hopefully the form aspects will be in the new future.

  • How to set "Files of type" when using a "File Browse" item.

    Apex 4.0.2
    Internet Explorer 7 +
    I have a "File Browse" item on a page and need to limit the types of files display to just "text (.txt)" files. How can this be done? Currently, the "Files of type" list shows "All File (*.*)", "Pictures (*.gif,*.png)", and HTML (*.htm,*.html)". In the best case, I would like to not have the "Files of type" list and have the user just limited to text files. However, adding Text files (*.txt)" to the "Files of type" list is ok.
    thanks,
    William

    Thought i'd do a bit of research after seeing Scotts wonderful ideas.
    So it turns out, IE made the file item read only from version 8, for security reasons. Read more: http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
    File Upload Control
    Historically, the HTML File Upload Control (<input type=file>) has been the source of a significant number of information disclosure vulnerabilities. To resolve these issues, two changes were made to the behavior of the control.
    To block attacks that rely on “stealing” keystrokes to surreptitiously trick the user into typing a local file path into the control, the File Path edit box is now read-only. The user must explicitly select a file for upload using the File Browse dialog.
    Additionally, the “Include local directory path when uploading files” URLAction has been set to "Disable" for the Internet Zone. This change prevents leakage of potentially sensitive local file-system information to the Internet. For instance, rather than submitting the full path C:\users\ericlaw\documents\secret\image.png, Internet Explorer 8 will now submit only the filename image.png.To resetting the actual items, suggestions I found were to replace the actual item. So instead of using $s, I just replace the element, with the existing element, causing it to re-initialise.
    var htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function fileCheck(el){
        if(el.value){
            var validFile = false;
            var validExtensions = ["csv"];
            var filename = el.value;
            var fileExtIndex = filename.lastIndexOf(".");
            var fileExt = filename.substring(fileExtIndex+1, filename.length);
            for(i = 0; i < validExtensions.length; i++){
                if(validExtensions[i] == fileExt){
                    validFile = true;
                    break;
            if ( !validFile || fileExtIndex == -1) {
                alert("Invalid Extension. Permitted files must end with: " + validExtensions.toString());
                var htmlContents = el.outerHTML || new XMLSerializer().serializeToString(el);
                $('#P16_BINARY').replaceWith(htmlContents);
    }(obviously, replacing what you need to, to suit your page - i prefer scotts idea of passing in supported file types in the function, so would just pass in an array instead; but this is just for demonstration)
    with an onchange="checkFile(this)" on the element attributes.
    On a slightly un-related note, I found out IE doesn't support the wonderful indexOf function on arrays, that checks for the existence of the value in an array. Sucks.
    Edited by: trent
    Ah well, jQuery is there, maybe i should use that for searching arrays in the future.
    http://api.jquery.com/jQuery.inArray/
    Edited by: trent
    Forgot a demo link, for csv files: http://apex.oracle.com/pls/apex/f?p=45448:16
    Edited by: trent
    Modify function. Didn't work in Firefox

  • How to set country field automatically when creating new customer??

    Hi Gurus,
    when customer number is entered in account identification, if there is no matching account, a new one is created. While creating , in the screen there is an country field and I want to set this field to a fixed value of our country. How can I do this??

    Hi everybody,
    I got a simple question. Can I use BADI: BADI_CRM_BP_UIU_DEFAULTS of Enhancement Spot CRM_UIU_BP_ENHANCEMENT
    to make the country 'US' as a default value for component: ICCMP_BP_DETAIL  (NOT: BP_HEAD)?
    Component ICCMP_BP_DETAIL is Interaction Center.
    If not which Badi or way I can use to make country 'US' as default value?
    Best Regards
    Oliver
    Edited by: Oliver Schultze on Dec 9, 2010 4:33 PM

  • How to set configurations to mail when virus detected ?

    I want to change the configurations of mail server to redirect or do not deliver  the message when a virus is detected. I'm using OS X Server 10.8.1 with Server.app 2.0.23. On previous version of Server these configurations are avaiable on Server Admin Tools. Now it has a little few options. How to change it now ?
    Best regards,
    Leo

    In terminal enter:
    sudo serveradmin mail:postfix:spam_action = "reject"
    I haven't tried this, but the default is "deliver" so logically changing it to "reject" would do the trick...
    Just make sure that you set the spam score needed to be marked as spam to the desired level by entering:
    sudo serveradmin settings mail:postfix:required_hits = 6
    As I've read that there is a bug using the Graphical User Interface...

  • How to set a busy cursor when the excel report pops-up(in Excel)?

    I'm using LabVIEW 7.1 and Report Generation Toolkit for MS Office to build a VI. at the end of each session when the data in a certain peroid of time was collected, the data will be transmmited to Excel report. the problem is during the poping-up of Excel report, if the cursor clicks inside Excel accidently, all the collected data will disappear and the blanks in Excel will no longer be filled automatically. I have tried to use Set Busy.vi, but it only works in VI panel, not in Excel. Will someone please help me?
    thanks very much

    Hi jingli,
    For changing cursor appearance, you can visit another post on the forum:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000272E0000&ECategory=LabVIEW.LabVIEW+General
    (search for mouse pointer appearance in this forum if the URL doesn't work)
    Another suggestion would be setting the windows appearance to "minimum" when you open your Excel report (wire it at the New Report VI).
    Dan

Maybe you are looking for

  • Lines between every other record in show report

    I've noticed that when I display the results of an Application-Report in Portal with Internet Explorer there is always a faint gray line between the second and third record, the forth and fith record, etc... When viewed with Netscape 6.1 this same re

  • Setting column width in OBIEE Answers report

    Hi All, Not sure if this has been asked before in the forums, but I did not succeeded in finding any clues. We have an OBIEE 10g Answers table view report that we need to display on our dashboard. The problem is that we need to set some width for all

  • Some tagged faces in iPhoto 11 missing under person's name

    A few days ago I sent my mom a couple of photos of my dad.  I went to his name in Faces and found some and e-mailed them to her. She asked me if I could make some prints of them so this evening I went back into iPhoto and clicked on his name again un

  • Delivery Dates in External Procurement

    Hello, I am adding an external opertaion in a Plant Maintenance Order. I am giving Pland Delivery time as 10 DAYS in the Purchasing details. But after saving the maintenance order, system creates PR with Delivery date as of todays date. From where th

  • Wierd flickering with latest chromium

    I've been having some wierd flickering with the latest chromium. I get black portions of the screen (including outside the chromium window). I ocasionally get a black i3-statusbar when scrolling with chromium, and the I see a lot of wierd artifacts o