Trigger delay in NI-Scope 1.6

I am using NI-Scope 1.6 with PXI 5102. I can't seem to set the trigger delay
parameter of niScope_ConfigureTriggerSource() to any value other than 0.0.
My code looks something like this:
niScope_ConfigureVertical( vi, "1", m_VertRange, m_VertOffset,
NIVerticalCoupling, m_ProbeAttenuation, VI_TRUE );
niScope_ConfigureHorizontal( vi, m_RecordTime, RecordLength, 0.0 );
niScope_ConfigureTriggerSource( vi, "1",
NISCOPE_VAL_EDGE,
0.0,
0.0 );
The call to ConfigureTriggerSource will fail if the trigger delay parameter
is anything other than 0.0. (At least it fails with the handful of values I
have for a 10ms delay: 0.01, 10, 1, -0.01, -10 )
The failure reason given is: "BFFA0010 Invalid Value...Elaboration: Tri
gger
Delay is invalid."
How do I use the trigger delay with NI-Scope 1.6 and a 5102?
Thanks,
Chris Lincoln
ULTRAX, Inc.

Mr. Lincoln,
Thanks for using NI Developer Exchange! Unfortunately, the NI 5102 is not able to perform delayed triggering. Delayed triggering is supported by the NI 5112 for PXI, so this functionality appears in the NI-SCOPE instrument driver. The NI 5102 and NI 5911 also use this driver, but cannot support this feature in hardware. The NI-SCOPE driver call "ConfigureTriggerSource" is only meant to have a non-zero delay for the NI 5112 for PXI. One alternative (without changing hardware) is to start sampling immediately, then calculate how many points to delete in software to reach the desired starting point. Hopefully this answers your question.
Thanks,
Jace Curtis
NI Applications Engineering

Similar Messages

  • Unexplaine​d Trigger Delay in NI-SCOPE Software

    Hello,
    I am using NI-SCOPE to configure my 5122 digitizer card for multi-record acquisition.  My trigger signal is connected to the TRIG input of the card, and my data will be acquired on Channel 0.
    I have an X stage that I move in to position.  Then I configure my SCOPE software to begin acquiring data on an External Trigger, and initiate the acquisition.  Then I begin moving my X stage and after it moves 20 microns the first trigger is generated.  After the initial trigger, subsequent triggers are generated every N microns, where N can vary between different scans but is a constant within a scan.  After the acquisition is complete I display the resulting waveforms.
    Please refer to the attached vi (LabVIEW 8.0) and jpg of the block diagram to see how I have the code set up.  I've combined a few different sections of my code into this single vi.
    You'll see that I have a trigger delay - in this vi it is a constant, but in my application it is a Control.  I've run various tests and for some reason my data is always offset by 1.04E-5 seconds, which is why I've had to put in that trigger delay.  What I mean is that if I set the trigger delay to 0, then the first 1.04E-5 seconds of my data is noise.  After I use this trigger delay, my data is accurate beginning with the first data point.
    Can anyone figure out where this trigger delay comes from?  Thanks.
    Steve
    Attachments:
    5122 Scope Test.zip ‏88 KB

    Hi Steve_G,
    There doesn't seem to be anything fundamentally wrong with your VI and so there should not be any delay between your trigger and your data acquisition. I suspect that you may be generating your trigger signal a bit prematurely and that your step motor may not have settled to its final value. This will cause your digitizer to acquire unsettled data and this may be why you are seeing noise. Also, I noticed that you have set some wait timers in your VI and although these will delay your data fetch, it will not delay your data acquisition. So although you are delaying your data fetch call, as soon as the "niscope initiate acquisition" is called, your hardware is configured and is programmed to start acquiring data onto your on-board memory buffer as soon as it receives a trigger signal.
    One way to troubleshoot this system would be to simply acquire both the trigger channel and your input channel to see if the trigger lines up with your data. This will give us a good indication if we are in fact seeing any delays. I would also like to point out that there are tons of great NI-Scope shipping examples in LabVIEW that you could refer to. You can view these in your Example Finder by accessing it under Help  Find Examples.... The examples we are particularly interested in should be under Hardware Input and Output » Modular Instruments » NI-Scope » Continuous Acquisition.
    I hope this helps,
    S_Hong
    National Instruments
    Applications Engineer

  • Trigger delay in Multi acquisition mode

    I'm trying to use the 5112 to acquire a burst waveform.  I want to average 20 acquisitions or records and take measurements on the average waveform.  The burst arrives a certain time after my trigger so I need to use a trigger delay.  When I try to change the trigger delay while my program is running I get "Trigger Delay is Invalid" error.  The only way I can get it to work is if I reset the device before I reconfigure the trigger.  Is this the only way to adjust the trigger delay in multi-record acquisition? 
    Thanks,

    Hello Rudy27,
    There are two things you need to consider for the trigger
    delay:
    1)      
    In a multi-record acquisition using the
    NI 5112, the time per record should be > 42 µs and trigger delay should be
    > 42 µs. Otherwise, you may observe trigger timeouts. This is found on the
    help file Start » All Programs » National Instruments » NI-SCOPE »
    Documentation » NI High Speed Digitizers.
    2)      
    You cannot change the trigger delay
    during runtime. You need to stop the acquisition, then reconfigure the device
    and then start it again.
     I would like to know if your trigger arrives multiple times in
    the burst or just a single one each?
    If is multiple times, then you can make your record size to be
    the entire burst.
    If is single time, then I would assume is always the same
    delay.
    Hope this helps.
    Gerardo O.
    RF Systems Engineering
    National Instruments

  • What it the valid trigger delay value for "niScope Configure Trigger Digital.vi" ?

    Hello:
    I am using "niScope Configure Trigger Digital.vi" in LabView 5.1.1 for NI5911 scope card.
    The trigger source is RFI1.
    I am trying to specify the trigger delay, but it looks like the only accpted value is 0.0s.
    For example: setting delay time to 1ms (1.0m) results in the error message stating that invalid value had been passed for trigger delay.
    Thank you.
    --daevper

    The NI 5911 high speed digitizer does not support trigger delay; therefore its only valid input parameter for trigger delay is zero. The two high speed digitizers which do support trigger delay are the NI 5112 and the NI 5122.
    There is a helpful listing in the NI High-Speed Digitizers Help which displays the features supported by each device (Start >> All Programs >> National Instruments >> NI-Scope >> Documentation >> NI High-Speed Digitizers Help >> Content tab >> Devices >> Features Supported by Device). If you did not install the documentation along with the driver, you can also download this support file here.
    I hop
    e this helps!
    Regards,
    Sonya Wornson
    Applications Engineer
    National Instruments

  • Why is Start Trigger Delay not applicable?

    Hardware: PCI 6602
    Driver: DAQmx 7.4
    Programming Environment: ANSI C
    Hello All,
    I'm setting up a counter output pulse generation task which is to have a start trigger.  To be specific, it is a digital edge start trigger (not an arm start trigger) which I plan to use in retriggerable mode so as to get a single output pulse of specified width for every trigger edge.  Currently I'm baffled as to why the Start Trigger Delay and Start Trigger Delay Units properties do not seem to apply - whenever I try to access them I get an error message saying they're not applicable to the task.  The other properties of interest - Source Terminal, Active Edge, and Retriggerable - can be accessed and modified without any problems.  I don't actually need the delay but am curious to know why it doesn't apply in this case.  Thanks in advance.
    Jeff

    Hey Jeff-
    You will need to make sure that you don't stop the task at any point after the first generation.  Most of the examples use DAQmxWaitUntilTaskDone() to wait for a single iteration, but in your case you want to run through several iterations of the task.  So, you will want to enter a loop after starting to ensure that the task continues to run in the background on the hardware.  I modified the single pulse DAQmx shipping example to include digital retriggerable start triggering.  The empty loop spinning is obviously not ideal, so I'll leave you the choice to implement that as necessary.
    Since you're working with retriggerable single pulses, you may also want to be aware of the information in this KB.
    Hopefully this helps-
    Tom W
    National Instruments
    Attachments:
    DigPulse.c ‏4 KB

  • Trigger delay about 2 days

    Hey guys,
    my idea to start virtual machines in SCVMM which are offline and to perform a client action (via SCCM) to roll out the new updates our company released, only needs a lil piece in that puzzle. If the newest updates are deployed and installed, I want to shut
    down the virtual machines. The trigger delay, that you can set up in the "links" between the actions, can only set up to 999 seconds. 
    Do you have an idea to trigger a delay, that can shut down the virtual machines after 2 days, for example? I don´t know that much about scripting, maybe there is a easier way.
    Thanks for your help and best regards,
    Simon

    You can use a "run .net activity" and use PowerShell:
    Start-Sleep -seconds 172800 #pause execution for 2 days
    There should be a better way than to have a runbook sit idle for two days. You might look into triggering the runbook from an external scheduling application like Control-M or something similar.

  • Trigger delay too long

    I'm trying to make a 10ms trigger delay using a PCI-MIO-16E-4.  However everytime I use it there seems to be a variable delay of about 50ms before my signal is outputted.   Is there anyway to remove this extra delay?
    Thanks

    Although you are getting a longer delay than you are
    wanting, this can be caused by a few things. One large factor in delay times
    being slightly off are that, unless you are using a real-time system, your PC
    is non-deterministic and will not guarantee your delay being exact and
    occurring at the exact same time each iteration.
    Another factor, partially building on the one above, is the
    code you are running and how long it takes to execute. If you have a 10 ms ‘wiat ms.vi’, but your code takes
    20ms, then the delay will be ignored because your code ran longer than the wait
    timer. This
    KB explains more about the wait functions.
    David L.
    Systems Engineering
    National Instruments

  • E-mail trigger delay - Time Zone (CET) ahead of System Time (UTC)

    Hi,
    We have developed a Z program which triggers e-mail whenever the critical System / Interface user id gets locked in the SAP Netweaver System. However, the e-mail is generated by the program in the Time Zone which is in CET and sits in t-code SOST and is sent to our mailbox in System Time which is in UTC (GMT) which is currently 2 hours behind. Hence, there is a delay of 2 hours for generated e-mail alert to be sent to our mail box. Is there any process to avoid this delay?
    In the test system manually we can reduce the wait time by 2 hours in t-code SOST and then the mail gets triggered immediately. But can this be achieved programmatically so that the time in which e-mail gets generated always displays the system time in t-code SOST. Or, is there is a configuration where the e-mail is sent to our mail box from t-code SOST in Time Zone (CET) itself and not wait till the displayed time reaches System Time (UTC).
    Thank you very much for your earliest response.
    Regards,
    SANJEEV KUMAR

    In t-code STZAC both System Time and Useru2019s Default Time Zone is same (CET).
    However, when I see in the menu System->Status I find the System Time is displayed in UTC, while Time Zone is in CET.
    In other clients where system time is displayed in CET, there is no problem. The e-mail spool from SOST which displays CET time is actually triggered in the System Time. In case the System Time is CET, mail is triggered immediately. In case System Time is UTC, it waits UTC time to reach the displayed CET time, which is currently of 2 hours gap.
    Is it possible to change the system time of the problematic client to CET to solve this problem. Please let me know what configuration can be done for this.
    Regards,
    SANJEEV KUMAR

  • Scope does not trigger

    Hello,
    I am trying to trigger a scope at a certain point. I have a test signal coming after a regular sinusoid. I want to measure the output when the test signal arrives. What happens is that when my test signal comes after 1 second the trigger works perfectly fine but when my test signal comes after 3 seconds the scope does not trigger at the point I want and keeps on triggering at unwanted points. This is a conceptual question. Could anyone please help me in that.
    Thanks,
    Krunal

    Hello Krunal,
    I am not exactly sure what your external signal looks like, however I can suggest a couple things for you to look at.  First, if the absolute value of your sine wave amplitude is less than the test point you want to measure, the scope can simply level trigger at that point.  It should not matter if the signal comes in after 1 seconds or 3 seconds.  The only problem you might be seeing with this is a timeout error.  This is caused by the read function not being able to sample enough data within the default 5 seconds limit.  Adjusting the timeout would help if you are getting this error.
    If your test signal value you need to trigger off of is within the absolute value of your sine wave signal it becomes more difficult because if you specify to trigger off of a rising edge 0.5V signal this point will occur many times before the ideal trigger point.  Perhaps a combination of using the trigger hold off and trigger delay might help you time the start of your acquisition a little better.  If this does not help, can you please post more detail about the sine wave, your test point you want to trigger off and the behavior you are currently seeing.
    Regards,
    Jesse O.
    Applications Engineering
    National Instruments
    Jesse O. | National Instruments R&D

  • Using PXI 6251 counter to delay a trigger on PXI

    Hi at all,
    I need to synchronize some devices on an PXI chassis. Basic operation is a user waveform generation on a PXI5401 that routes the Trigger Signal for the generation to one of the PXI (RTSI) lines. I'd like to use this trigger signal to start a counter on a PXI 6251 counting the PXI 10MHz Clock. No problem so far ( at least none that I see What I need is a possibilty to set another sync signal as soon as a certain counter value is reached in order to use this signal as a delayed trigger signal. Is it possible? And how? I've taken a look at the LabVIEW Example finder, but haven't found an example yet...
    Thanks!
    Oli
    P.S. Using LabVIEW 7.1.1, NIDAQ7.4 and a PXI 1042 via MXI4
    Programming languages don't create bad code, programmers create bad code....

    Nathan,
    Thanks for your excellent solution. I'm ordering the Aux100 cable (9-Pin DIN to two BNC Female) to export the trigger signal from the PXI to the Device_2. I will test the program (Echo_Mode_PXI_5122.vi) to be sure it will be suitable for my application.
    Another problem, when my system is working on ultrasound Pulse-echo mode (Pulse_Echo_Mode_PXI_5122.vi), the input trigger must be set a delayed trigger acquisition (by setting the trigger delay to, for example 3µs) to remove the signal of power source. Could you please tell me how I can configure the digitizer in this case?
    Regards,
    John C.
    Attachments:
    Echo_Mode_PXI_5122.vi ‏49 KB
    Pulse_Echo_Mode_PXI_5122.vi ‏49 KB

  • Have LabView react to a scope trigger

    I have LavbView 6.1 connected to a TDS7104 scope via GPIB. What I'd like to do is have LV react directly to the scope's trigger. IE, the scope triggers, that causes a programatic change in my VI, which I then use elsewhere in my VI. I've got an indirect way to do this, but we're not fully satisfied with it. We'd strongly prefer a direct way to do this, if it's possible.
    If anyone knows the TDS7104 really well, is there a command I can send the scope to query its trigger status?
    I have what looks like a full set of drivers from Tektronix, but none look like they might do this.

    Hello;
    There isn't a formal way to use Occurrences to wait and interrupt the CPU upon a digital event. What you can do to workaround that is to use the attached VI; that is an Analog Trigger VI, and set the analog trigger level to be the TTL levels. So, when the digital trigger arrives, your analog circuitry will trigger of the Analog input readings.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments
    Attachments:
    occurrence.zip ‏70 KB

  • ACE GigE - external trigger - example needed

    Hello,
    I have a CVS-1457RT with a Basler ACE GigE cam - I am having issues when I try to use a hardware trigger for the camera (thru the I/O connection on the camera)
    I've been trying for a few days now, so I decided it was time to ask here
    - have anyone used a similar setup, meaning the camera with external trigger? (controller is not the issues) and would it be possible to share the acquisition VI's?
    best regards,
    Henrik

    Hi Ehlert,
    Sorry you are having problems getting this to work!
    There are a few things to keep in mind when configuring the triggers....
    You will need to enable the trigger on the Ace camera to trigger the specific event (Frame Start) that you want to occur on the specific trigger signal. You might want to consult the Ace user manual for the specifics of doing this, as they have quite a number of options for how the trigger can be configured. Are you using the 1457RT to send the signal to the camera? If so you will then need to configure the 1457RT to send an appropriate trigger. We have some Vision RIO examples that show how to do this. Keep in mind that you also may be experiencing a hardware setup issue. If you are using the isolated outputs on the CVS you will need to provide external power for the outputs to work. It is probably helpful to examine your physical trigger line with a scope and verify thaty the trigger signal is going when you expect, allowing you to isolate which end is not configured appropriately.
    In general, assuming your trigger signal to the camera is working, setting the camera up for triggering is pretty simple:
    -Set Trigger Selector to "Frame Start" (to set context for the other trigger features)
    -Set Trigger Source to "Line1" (only option on Ace GigE)
    -Set Trigger Mode to "On"
    -Set other related features (rising/falling edge, delay, ...)
    Eric

  • How to use Counter/timer PWM Pulse as a trigger to aquire data??

    (1) I'm using the NI DAQpad 6015 multi-function card with the new DAQmx Driver. I'm using the counter/timer (counter 0, and counter 1) to generate 2 different PWM pulses to supply my sensor circuit. each pulse is a 1 second in duration. The pulse with 5m.sec duty cycle is the supply for my sensor. In addition to that, I'd like to use the 5 m.sec as a trigger to aquire the sensor reading. The DETECTIN POINT should be the middle of the HIGH State of the 5m.sec pulse (i.e just at the 2.5 m.sec point of the high state).  
    (2) another point is: how to display the counter/timer pwm output pulses on the front pannel?? 
    Attached is the VI i'm using (Complete PWM.vi)
    regards,
    Attachments:
    Complete PWM.vi ‏49 KB

    Hello alaali,
    It sounds like what you need is a trigger delay property node.  This property node specifies an amount of time to wait after the Start Trigger is received before acquiring or generating the first sample. This value is in the units you specify with Start.DelayUnits.  This way you can still acquire using the trigger, and you can specify the delay to be 2.5 ms so that the point that you actually acquire will be 2.5 ms after the trigger.
    Hope this helps.
    Regards,Message Edited by Raajit L on 04-23-2007 04:34 PM
    Raajit L
    National Instruments
    Attachments:
    DAQmx Trigger Delay.jpg ‏6 KB

  • Why is Delay in email update?

    I have issues with my email send and receive, after i open lid of my mac book air my email is not updating right away most of time I have to go mail and get mails for each account

    Greetings,
    Unfortunately, E-Series DAQ devices do not support this feature (only the 2000 Series devices do). To implement a digital trigger delay, you will need to incorporate one of the counters from your board into your program. Below is a link to an example program, which demonstrates how to implement this functionality:
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/48b32f37a196a6e38625661e007ce874?OpenDocument
    Good luck with your application.
    Spencer S.

  • NiScope Configure Trigger Edge sending error to niScope Initiate Acquisitio​n

    I'm getting an error from my Trigger off of my scope that keeps failing the program. The error code is -1074135022,
    it says
    niScope Initiate Acquisition.vi:1<ERR>Attribute or property not supported.
    Device: NI_Scope
    Property: Trigger Holdoff
    Status Code: -200197
    I'm using an NI-5133, running Labview 2011 and scope 3.9.4
    Thank you for you help!
    Wolley
    Attachments:
    Test2.vi ‏69 KB

    Upon doing so, I now have an error that I think is due to it trying to trigger while collection is still taking place. I may very well be wrong in this, though. It comes out of the niScope MultiRead block, and says
    niScope Multi Read WDT.vi:1<ERR>A previous acquisition is still in progress. If you are attempting to change an attribute, note you can only change fetch attributes while an acquisition is still in progress.
    Status Code: -1074118647
    Attached is the current state of the VI. I don't think the minor changes I've added in should be causing the error.
    Thanks,
    Wolley
    Attachments:
    Test2.vi ‏73 KB

Maybe you are looking for

  • In search of a spesific style/expression! Maybe you know the name of it?

    Hello fellow after-effects users, I've been seaching for the name of a spesific style/visual expression/grade for a long time now and maybe some one here can help me out finding the common name for it. Here are the common elements: * I think its tryi

  • Download and run binary files

    When downloading an exe file firefox only gives choice of saving file and not a choice to 'run' file without saving it.

  • Meassage type

    hi How can i default a particular message type for a purchase order regards

  • Annoyed to bits!

    I'm soooo flippin annoyed! I changed my password on my iPhone as I knew someone had watched me type it in and now I cannot get access into my phone. I'm not stupid enough to forget it but alas.. I CANNOT get into the phone and it is disabled. ...anyh

  • Cant Update to iPhoto 9.2

    I bought a new macbook pro in June with iLife 11 installed on it (which now has been upgraded to Lion, which I got for free because I bought it close to release fate). Now I would like to update so I can use photostream. But I can not install the upd