Implement a timer on an SMU-6361

I need to implement a timer by using one of the counters/Timers on a SMU-6361 Multifunction DAQ module. I don't find any help on the web view OR to implement the timers.  I guess to study the manual of the X series that I would use the single pulse generation with trigger function.  I need assign a clock shipped as SOURCE, assign an entry PFI as the DOOR (Start Trigger), set the value of the impulse for my timing delay, define the pulse width and assign a PFI as the OUTPUT Terminal.  However, I can't find any information about what nidaqmx functions I would use to perform this action.

Can anyone address this operation?

wkesling3 wrote:

All examples of OR are for the meter entry tasks. Everyone says to use the example of counting digital event that needs to be changed to make it work.

It of weird, is it some sort of filtering option in CVI?  I have examples of ANSI C meter output to:

C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Generate Pulse

I took out the DAQmx calls from the code you have written so that they are easier to see on the forum:

DAQmxCreateCOPulseChanTicks (EchoTaskHandle, chan, "", "/ PXI1Slot3/20MHzRefClock", idleState, initialDelay, lowTicks, highTicks);                                                                                                       
DAQmxExportSignal (EchoTaskHandle, DAQmx_Val_CounterOutputEvent, "/ PXI1Slot3/PFI3");
DAQmxCfgDigEdgeStartTrig (EchoTaskHandle, "/ PXI1Slot3/PFI4", DAQmx_Val_Rising ");
DAQmxStartTask (EchoTaskHandle);

I see only a few small changes to make:

20MHzRefClock is not a valid terminal, you probably want to use 20 MHztime base.

Instead of DAQmxExportSignal, I use DAQmxSetCOPulseTerm.  The output is already on one of the default PFI lines (depending on the meter) and setting the output of an explicit PFI line will change the output terminal.  Export the output event counter I think sends the output of a second terminal (I'm not positive if flippant... calls might actually be equivalent, but DAQmxSetCOPulseTerm is most commonly used).

You define the task to be redeclenchables if you intend to trigger the exit several times (DAQmxSetStartTrigRetriggerable).  You could alternatively, you can restart the task after each trigger in software, but this is inefficient and you will have several ms downtime compared to the redeclenchables task which will be immediately re-army after the release completed (within 10 seconds of ns anyway).

wkesling3 wrote:

Hi John,.

When (or why) would be the next function call used when the output is already
defined in the DAQmxCreateCOPulseChanTicks() function call.
//
DAQmxErrChk (DAQmxSetExportedSignalAttribute (taskHandleDist,
DAQmx_Exported_CtrOutEvent_OutputBehavior, DAQmx_Val_Pulse));

The meter has in fact two different modes.

"Toggle" is the default value for the tasks of the meter output, in which the output of the meter will switch to the opposite value when it reached number of terminals (how a new value is loaded into the account register and the meter begins to count down).  So in your case, 'Initial period' will be loaded first, then when the meter lorsque le compteur atteint reached TC output will rise to high and "High Ticks" is then loaded into the registry.  When the counter reaches TC again the output will switch down (and in your example pulse, the output will stop - in the generation of pulses multiple 'Low Ticks"would be then responsible).

"Pulse" mode the meter emits only a short pulse (I think 2 ticks long timebase) when it reached TC.  It is used by default on meter entry tasks (for example the meter output can serve as an event to detect overview for the tasks of entry conditions).  Exit tasks can be configured to "Pulse" too, but in this case the names 'high ticks' and the ' weak ' are unsuitable because the output signal is high only for a very short time (they would be more appropriately called "interval 1" and "interval 2" or something like that).

Most people just use the default behavior and explicitly set the output behavior unless they have a reason to change the default (which is rare).

Best regards

Tags: NI Hardware

Similar Questions

  • What are the channels of meter on SMU-6361 pinout diagram

    Hello

    I've defined three channels of counters to help assistant DAQ for the SMU-6361 (ctr0, ctr1, ctr2) jury. I don't see any explicit labels on the pinout for the SMU-6361 card diagram indicating where are these counters. Can someone tell me what are the pins / labels on the diagram pinout for these counters?

    Thank you very much

    Hi Larrage,

    The best way to find the default pins use the DAQmx help file. You can reach to the MAX by clicking Help > Help topics > NOR-DAQmx > NOR-DAQmx help. In the help file, you can search for 'Connect signals to Counter' and click the link for the series of cards you have (series X in this case).

    In your case, the default meter terminals for ctr0, ctr1, output and ctr2 would be 12 PFI, 13 and 14 of the PFI PFI, respectively. Counter (for edge counting) entries would be 8 PFI PFI 3, PFI 0 to counters of same. You can change the terminals of input/output for counters in your VI or MAX, but these are the default values for the card.

  • External sample clock change takes a lot of time on the SMU-5186

    Hello

    I use the external Lv - niScope EX Clocking.vi example to define SMU-5186 using an external sample clock.  However, it takes a long time, 5-6 minutes, before I can get the first block of data acquisition.

    Then I run the example 'niScope EX Acquisition.vi Configured' to switch to dashboard clock. There are also 5 to 6 minutes on the first acquisition.

    I think maybe the SMU-5186 made some calibration when I change the source of the clock.

    Anyway is to ignore the calibration? Or make it faster?

    Thank you very much

    Yiming

    Yiming,

    Delays in acquisition are caused by calibration routines that must be performed on the engine to sample (ADC) every time that changes sampling rate.  This ensures our justified precision specifications.

    I don't know if you've noticed also calibration of Power-Up, which will take 5-10 minutes to complete when the unit is turned on.  This is mentioned in our specifications at page 18:

    http://www.NI.com/PDF/manuals/373257b.PDF#page=18

    I hope this helps.

    Nathan

  • How to implement a time UI?

    I would like to implement a user interface as time blackberry widget - Options-> Date/time, and we select Formate of time 24 hours / 12 hours. In the hour or minute field we can only enter a legal data.

    How can I implement the function in my own application? Or I need to write the text filter myself? Any suggestion will be appreciated. Thanks in advance.

    Do you mean a DateField?

    This is the API: http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/ui/component/DateField.html

  • Time machine backs up only 5 GB?

    Hello

    I have an external hard drive that I've implemented a Time Machine drive and I make monthly backups to it.

    This is my second time back up my MacBook Pro, but the backup has been only 5GBs and it took 15 minutes while my first backup was 250GBs and it took hours, is that? He is only backing up changed data? My Macbook is always supported up to 100% (the files, settings...)?

    It adds only the changed data. So nothing wrong with that: it's still all there.

  • How to set the Date and time on my HP Officejet Pro 8600 Plus?

    I have a HP OfficeJet Pro 8600 Plus, and I would like to know, how can I implement the time stamp that is under my printer display screen continually Jan 00 00 00:00 a.

    Thank you

    @misslady,

    HP has gone green, here's the guide you're looking for.

  • Weird Time Machine question after restoration

    Hi all

    First post here so go easy on me

    I'll try and make this as brief as possible.

    I've been running an iMac 27 "2010 end (still running Lion 10.7.5, but it is stable so I have not found the need to modernize) and NAS from Synology DS212j with TB 2 * 3 disks for the last 3 years. I've set up time service Machine through DSM on the Synology with a quota of 1 200 GB for my iMac which worked perfectly while all the time, during which I restored the weird file without problem.

    Recently, for a number of reasons, I felt the need to update the OS of El Capitan to provide specific features that only there, so I made sure that my last backup was not serious and went through the upgrade process. It took a while but seems fine, but in the end, I became artifacts of the screen during the exchange between the office computers and for the worse, completely locked Mail machine as soon as you have clicked on an email. A lot of research on Google and all the patches applied but no joy, I decided to restore Lion and watch a clean install of El Crappo thereafter.

    At through the process of full restoration without problem and he has restored from the DS212j without a single question (took about 14 hours but again, it worked) and my Mac was back as if nothing ever happened. Happy days!

    Shortly after that, although the problem started with Time Machine backups do not tell me that there is not enough space on the destination to save my machine...

    1. I look into my quota on the NAS (the bit you set to ensure that backups are not the entire disk) and it tells me that there are 820 used GB which I guess is my backups Time Machine original that nothing should have changed on the NAS.

    2. I don't seem to be able to see the Time Capsule shared queue Station disk even after display in shared folders, it should he appear?

    3. I unhid it and he could ride through cmd & k and using smb / / nom_lecteur/Time Capsule so I can now see the volume in the Finder.

    4. I can see there are 2 * sparsebundle files, one for my iMac and the other for Macbook Air my wife. The file for mine displays a last updated date/time of a few minutes ago, but no size of file. The woman shows well, last time/date and file size (he stayed very well throughout this btw).

    5. when I enter Time Machine on the iMac all my historical incremental backups have disappeared and the only backup who shows also available is the date to which I restored from, nothing before and obviously nothing after because there is no space.

    I have not a clue what going on here, but it seems to me like it after restoring my sparsebundle file (which is always on the NAS and must be intact) is there, but for some reason the iMac cannot see/index / register or see one of the backups that are contained in.

    Apple support tried to help but actually said that they don't support anything other than an official time Capsule and Synology must implement the Time Machine in a different way because he could not find the sparesebundle file, only the tf volume content when it is mounted by trying to start the backup.  From what I read and checked the forums of Synology and the sheets, they don't do anything outside the norm with regard to the Time Machine application, it's literally just a network volume that stores the sparesebundle in the same Apple so designed, then why on Earth after restoring my iMac do not see the content of this sparsebundle file , and why it consumes disk space?

    So, what I'm looking for help, is this (or questions):

    A. How do I look inside the time Capsule (this is what I call the Time Machine shared disk) to see how many files is there and if there is a GB 820 that contains all the data from my legacy?

    B. someone at - it an idea how the iMac see and recognize the original file should be here?

    C. If I were to remove the rare bundle that I peut see, will that potentially be old and will be that free space that is held open and allow me to perform a full backup from scratch?

    D. If C is not the original file remains hidden, no idea how I can find...?

    E. do I have other options that you can think of...?

    Sorry, that was supposed to be brief, but I wanted to make sure I had all the info there to allow people to understand what has happened and what I did to try to resolve so far.

    Thanks in advance

    See you soon

    Mark

    Mark, in my opinion, your questions can be answered by the great Pondini http://pondini.org/TM/FAQ.html

  • I ONLY see comments on the network of the time machine?

    I've implemented a Time Machine Network, adding a TP link Extender to get signal from my office where the router from BT's home. I also checked the comments option and also the hidden network too in the House, however I don't see the option comments - what Sky does not recognize.

    What Hat I did wrong?  I have a spare homehub5 BT - can I use it as a spare router in the House to boost signal more?

    any help much appreciated!

    AJ

    Basically, the 'Comments Networking' function only works with Apple mobile networks. You cannot extend this network with a non-Apple as your TPLink device.

    In your case, you would need another time Capsule or AirPort Extreme to extend the network of comments.

  • Timer GUI entry

    I wa wondering if there is a way to create a timer entry so that in the GUI, I can enter a duration (in seconds) to have a certain open or close valve (i.e. to switch a switch). Is it possible to do without having to implement a timer in the program and manually change?

    Thank you

    Hmm, I do not know if I understand correctly your problem - however, I did a spreadsheet example. Perhaps my solution fits your needs. ;-)

    There is also a picture attached to this post.

  • 2% USB 6361 C sampling for 8 channels

    What is the maximum rate for playback at the same time 8-channel USB 6361 map?

    I read the specification, and there is a line that says:

    Example Maximum rate... 2.00 MS/s single channel,
    1.00 MS/s multichannel (aggregate)

    When I tried to read 3 channels with sample rate 1 MECH. / s I have error: "Conversion ADC tried before the prior conversion was complete.
    I did some tests and it seems 500KS/s is maximum for 4 channels and 250 kech. / s max for 8.

    Am I missing something or is this how it works?

    aggregate refers to the total number of samples.

    This card uses a multiplexer to switch AD converter between the channels. SO not really simultaneous reading!

    One channel, no switching, fast 2 ms/s

    several channels: 500ns time to pass & set between channels, up to 1 ms/s left altogether, but you can read CH0, CH0, CH1 and CH2 that would give you 500kS/s CH0 and 250 kech. / s for CH1 & 2

  • An SMU - 8133 RT or SMU - 8106 RT (only with Intel) is possible dual Bootable?

    I'm looking for the development of a system flexible but high end standard PXI Express.

    Flexibility includes (1) Dual Boot option and (2) options for the PXI Express modules and standards.

    It will be much appreciated and will be a great help if an expert can answer my questions.

    (1) an SMU - 8133 RT or an SMU - 8106 RT is possible dual Bootable? I am interested in Intel processors only.

    (2) at - it another possible option with equivalent performance as the two above specification?   Please also indicate an Express chassis with more or less 8 slots.

    Thank you.

    A1: Yes, the SMU-8133 is possible dual bootable.  The SMU-8106 does not support RT (only the PXI-8106 (not express) package has been published as a RT controller).

    A2. I'm not aware of any other option with equivalent at this time, as the SMU-8133 is our highest performance PXI Express controller, by a little bit.  Learn the technical details a few comparisons of the 8133 for the 8108: http://sine.ni.com/ds/app/doc/p/id/ds-222/lang/en.  You should look in the SMU-1082 NI for your chassis.

  • parental control works do not (time curfew does not)

    I have windows 8 on my laptop Acer Aspire, I setup as an administrator and my son is set up as a user.  I tried to implement curfews in time for my son using the family safety settings.   I went to the Microsoft website for Windows 8 and follow-up all the instructions on how to implement the time curfews.  For some reason, the controls do not work.  Does anyone have a solution to this problem.  I don't know why the curfew time do not work.  I have another laptop that runs Windows 7 and no problems of establishment of curfews of time with her.  Is this a problem with Windows 8? Any help would be greatly appreciated.

    Hello sdillen,

    After that our verified support specialist information you have provided, we suggest that you remove all the files under the path below that it is possible that the product problem i:

    C:\ProgramData\Microsoft\Windows\Parental controls

    After you delete the files, restart your computer and see if the problem will persist.

    Let us know the results later.

    Thank you.

  • Java timer

    I'm trying to do implement a timer in an application. I want a button to trigger a timer that stops when I click again on the button and then will save the time between clicks we thinner eit.

    But I can't find how to make a timer. Someone at - it an idea?

    Assuming you just want to display the seconds, and then something simple like:

    Assumes that you have previously defined and added to the display this field

    BasicEditFielld timeElpasedField = new BasicEditField ("seconds:", null, 25, BasicEditField.READONLY);

    long elapsedTime = System.currentMillis () - previousTime;

    timeElpasedField.setText (Long.toString (elapsedTime 1000));

  • Using two buttons market timer / stop, need help please.

    Hey everybody.

    I am stil working on my project, and now I'm trying to implement a timer using two buttons market / stop. Everything I do now is when you press start the stopwatch starts and when you press stop I want the timer to stop and display the time.

    Whats happening is when I press start, the timer starts, but when stop is pressed the timer displays a value of say 12 seconds, a second more later I press stop again a value of 14secs arise and it stops at 14.  Now, whenever I press on start it will start at 14 and repeat this process.

    So I think that somewhere, I did not put my right timer.

    Could someone say somethings that I should change in my code.

    They are declared at the top:

    static public boolean status=false;
    static public int count=0;
    static public Timer timer;
    

    Here is my code:

    ButtonField start = new ButtonField("Start",ButtonField.USE_ALL_WIDTH|                          ButtonField.FIELD_HCENTER|ButtonField.USE_ALL_HEIGHT);                          start.setChangeListener(new Listener1());add(start);
    
    ButtonField stop = new ButtonField("Stop",ButtonField.USE_ALL_WIDTH|                            ButtonField.FIELD_HCENTER|ButtonField.USE_ALL_HEIGHT);                            stop.setChangeListener(new Listener2());                          add(stop);          
    
                public class Listener2 implements FieldChangeListener            {            public void fieldChanged(Field field, int context)             {            ButtonField btn = (ButtonField) field;            Status.show("Timer is at" + Integer.toString(count));            status = false;            timer.cancel();            }            }
    
                public class Listener1 implements FieldChangeListener            {            public void fieldChanged(Field field, int context)             {            ButtonField btn = (ButtonField) field;            Status.show("Timer started");            status = true;                try                {                                                timer = new Timer();                                        timer.scheduleAtFixedRate(new StartEvent(),1,1000);                }                catch(Exception e)                {                //do nothing                }            }
    
        private class StartEvent extends TimerTask    {    public void run()       {        if(status = true)              {              count++;                        }        else            timer.cancel();//        count=0;    }    }    }
    

    any help is appreciated

    Thank you guys

    Probably best to follow just a matter of a Thread.  So next time, you can start a new Thread with a new question.  However, you should also search the forum before asking questions, that your two supplementary questions have been answered in other posts on this forum.

    Concerning your problem to press the stop and get another moment, I think that you must have application logic that disables the stop button once pressed, until you press the Start button.  For example, you could do by assigning to the time of departure - 1 in the Stop button, and then, when you press the Stop button, he can check the start time and displays a message saying "Timer not started" If the start time is - 1.  There are a number of other ways to do this, I described this method because it is easy to explain.  It is not really how I'd do.

    The best way to set the buttons next, is to add then to a HorizontalFieldManager, then add the HorizontalFieldManager to your screen.

    To stop the button displays the menu, you must set it with the style CONSUME_CLICK, for example:

    ButtonField stopButton = new ButtonField ("Stop", ButtonField.CONSUME_CLICK);

  • Time series by using Oracle Data Mining? Is there any equivalent of ARIMA in the MDGS?

    Hello

    I followed the extraction of data from Oracle Press book. I applied regression models to predict continuous variables.

    My use case is to predict the market price of stocks based on historical data.

    I see there R packages to do. Some popular methods that are widely used are ARIMA (Autoregressive integrated mobile average).

    Is there such an offer out-of-the-box in the MDGS?

    Pointers / whitepapers, or do we use component regression?

    Thank you

    Chrystelle

    Hey Lulu,

    MDG does not have an implementation of time series which is precisely part of the SQL in the algorithms of db.

    But AAO (Oracle Advanced Analtyics, ODM is a part of) has an implementation of time-series Oracle which may be useful for you:

    See ore.esm model, documented with examples here: https://docs.oracle.com/cd/E57012_01/doc.141/e56973/procs.htm#BEIEGCDG

    We also have the preparation of data for time series capabilities, listed here: https://docs.oracle.com/cd/E57012_01/doc.141/e56973/procs.htm#BEIJHHCG

    May also be interested to Marcos Campos blog on time series using the current characteristics of ODM/DB: Oracle Data Mining and Analytics: time series Revisited

    Hope it will be useful.

    THX, mark

Maybe you are looking for

  • El Capitan iCloud drive failure complete the transfer of files on disc from Macbook to iCloud drive

    Product MacBook Air. 120 GB with 15 GB of free disk space. Connected to the internet via WIFI from Apple Timecapsule, here through to VDSL 40 MB/s in download, 10 MB/s in upload. Operating system El Capitan 10.11.06 Describe the problem and include d

  • HP m9040n want to upgrade to win 7 and ssd. no problem to get bios maybe

    looking to upgrade. something I need to worry

  • Dialer phone Windows is not working proporly?

    I have windows xp and an internet connection high speed cable, I have a modem 56 k voice fax that I want to connect my phone fixed in the modem and make and receive calls with windows Dialer, know that I can make calls and receive calls but the calle

  • Player of the app

    Base: can do us our own 'player of the app? Background: RIM announced the PlayBook, they said he'd go HTML5/WebWorks, Adobe Air, Native and have a reader App Android and a BlackBerry App Player. Once completed a webcast on Vitosha boulevard, I asked

  • Lifetimes of IPSec

    I have a client who needs to configure a vpn site-to site with Microsoft Azure. They currently have several configured site-to-site VPN, and according to MS, they have their own lives IPSec, which differs from all our other VPNs. I really don't want