On E series Card with 2 counters I want to generate a fixed length pulse train and want to continuously monitor it.

On E series Card with 2 counters I want to generate a fixed length pulse train and want to continuously monitor it.

Depending on the software you are using, there are many shipping examples and example programs on the web that illustrate generating a finite pulse train. The E series boards have the DAQ-STC counter/timer chip, and so make sure you search for DAQ-STC examples. I have included links to a LabVIEW example and Measurment Studio Example in Visual Basic.
Generate finite pulse train in LabVIEW.
http://eagle.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3DA2156A4E034080020E74861&p_node=DZ52328&p_submitted=N&p_rank=&p_answer=&p_source=Internal
Generate finite pulse train in Visual Basic with Measurement Studio
http://eagle.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3D96156A4E034080020E74861&p_node=DZ52328&p_submitted=N&p_rank=&p_answe
r=&p_source=Internal

Similar Messages

  • Use M-Series cards with DAQmx in Matlab!

    Hi DAQers!
    Who is this message for?
    For all people wanting to use their M-Series cards (and/or NI_CAQmx drivers) with Matlab.
    Content:
    Basic introduction into importing DAQmx into Matlab. Simple AI (analog input), advanced AI (synchronous)
    and simple AO solutions are displayed with Matlab source code.
    Motivation:
    There's probably little disagreement that the new M-Series cards are superior to the old E-Series cards.
    However, Matlab does (as of February 2005) not support either directly.
    By buying the Data Acquisition Toolbox you can access most of the E-Series' functions from within Matlab.
    But this will not help you with your new M-Series card! But it is possible to use M-Series cards with Matlab.
    First step
    Start by loading the NI dll:
    funclist = loadlibrary('nicaiu.dll','nidaqmx.h','alias','myni')
    (You can choose any alias as long as it is a legal variable name.)
    If your version of Matlab is too old to provide the "loadlibrary" function directly, download it here:
    http://www.codeproject.com/dll/MatlabGenericDll.asp?df=100&forumid=26247&exp=0&select=972623
    After importing, you see the list of available functions.
    You can also display them by
    libfunctionsview('myni')
    That's basically it. By using the National Instruments NI-DAQmx C Reference manual and libfunctionsview('myni')
    you have access to those functions. One special thing you need to keep in mind is the fact that pointers
    work differently in Matlab than in C. This problem can be solved by using the Matlab function "libpointer".
    Sometimes Matlab does not require a pointer when C would. But I found that it does not hurt to
    specify a pointer in this case. Whether Matlab expects a pointer can be seen in the output
    created by libfunctionsview('myni')
    The general syntax for calling DAQmx functions is:
    [outputarguments]=calllib(alias,NIDAQmx_functionname,inputarguments)
    My next message will show a function I wrote that enables basic and advanced analoginput.
    Jens

    Hi!
    As promised, my Matlab function to use the M-Series card with Matlab.
    I have the bad habit of programming in German and English at the same time.
    I tried to correct that for this posting. I hope I succeeded!
    I wrote this function to suit my needs -which it does.
    Feel free to modify it to suit yours.
    Jens
    Edit: I just saw that my m-File is longer than 5000 characters! #duh#
    Sorry!
    I'll see if I can get a download up!
    Here's the abbreviated m-file without synchronous AI:
    function messmatrix=NImess(synchron,trigger,numofchans,samprate,samptime)
    funclist = loadlibrary('nicaiu.dll','nidaqmx.h','alias','myni');
    disp('NI: Create Tasks')
    taskh1=uint32(1);
    [a,b,taskh1] = calllib('myni','DAQmxCreateTask','master',taskh1)
    taskchans1=['Dev1/ai0:' num2str(numofchans-1)];
    [a,b,c,d] = calllib('myni','DAQmxCreateAIVoltageChan',uint32(taskh1),taskchans1,'',-1,-10,10,DAQmx_Val_Volts,'')
    nsample=samprate*samptime; %
    disp('NI: Config Sample Clock')
    [a,b]=calllib('myni','DAQmxCfgSampClkTiming',taskh1,'',samprate,DAQmx_Val_Rising,...
    DAQmx_Val_FiniteSamps,nsample)
    disp('NI: Config Digital edge start trigger')
    if trigger==1
    [a,b]=calllib('myni','DAQmxCfgDigEdgeStartTrig',taskh1,'/Dev1/PFI0',DAQmx_Val_Rising );
    else
    [a]=calllib('myni','DAQmxDisableStartTrig',taskh1)
    end
    disp('NI: Start task(s)')
    [a]=calllib('myni','DAQmxStartTask',taskh1)
    DAQmx_Val_GroupByScanNumber = 1;
    readarray1=ones(numofchans,nsample);
    readarray1_ptr=libpointer('doublePtr',readarray1);
    sampread=0;
    sampread_ptr=libpointer('int32Ptr',sampread);
    empty=[];
    empty_ptr=libpointer('uint32Ptr',empty);
    arraylength=nsample*numofchans; % more like "buffersize",
    disp('NI: Reading Data!')
    [a,readarray1,sampread,empty]=calllib('myni','DAQmxReadAnalogF64',taskh1,-1,-1,...
    DAQmx_Val_GroupByScanNumber,readarray1_ptr,arraylength,sampread_ptr,empty_ptr);
    disp('NI: Stop task')
    [a] = calllib('myni','DAQmxStopTask',taskh1);
    disp('NI: Clear task(s)')
    [a] = calllib('myni','DAQmxClearTask',taskh1);
    messmatrix=[readarray1'];
    disp('NImess finished')

  • Hi there Hope someone can help me here. I am currently on holidays and my Kids have disabled my iPad so I now have to sync with my computer. I don't have my computer handy and want to use my device over the next few weeks if possible so can anyone help me

    Hi there
    Hope someone can help me here. I am currently on holidays and my
    Kids have disabled my iPad so I now have to sync with my computer.
    I don't have my computer handy and want to use my device over the next few weeks
    if possible so can anyone help me please
    Thanks
    Darren
    iPad 2 Wi-Fi + 3G, iOS 6.0.2

    You need a computer.
    Suggest you goto the nearest Apple Reseller and ask them to help you.

  • I purchased the TV FRIENDS in HD on iTunes (the iTunes store stated with every HD purchase you get the SD version as well) and want to download on my I Pod Classic and get error message the I POD can play this video.  How do I download?

    I purchased the TV FRIENDS in HD on iTunes (the iTunes store stated with every HD purchase you get the SD version as well) and want to download on my I Pod Classic and get error message the I POD can not play this video.  How do I download?

    I see there's no answer.
    This issue has ****** me off for a long time, and I am fed the **** up with it.
    I DO NOT WANT TO DOWNLOAD the Movies and TV shows to every *^&%^$%# Apple device, ONLY the MUSIC!!!
    COme on Apple!!!  FIx this!!!

  • The demand of my application is that i can not replace for loop with a while loop.because i need fixed number of iterations and as far as i know fixed iterations could be only with possible with the for loop.

    the demand of my application is that i can not replace for loop with a while loop.because i need fixed number of iterations and as far as i know fixed iterations could be only with possible with the for loop.
    your recommended second option that i could add true/false case.
    this true/false case must be inside the for loop or outside the for loop?if this case is inside the for
    loop, how can i send stop command from outer while
    loop?
    more over do you have any example for this please?
    thanks"

    You can execute a fixed number of iterations using a while loop by comparing the iteration count to the number of iterations you want and wiring the output of that comparison (e.g. Less Than or Equal To) to the continue (or stop) terminal of your while loop. Which comparison you use depends on personal preference, where you wire the desired count and the interation count, and whether you're using the while loop as Continue if True or Stop if True.
    Ben gave you step-by-step instructions in response to your previous question. Look here for Ben's response.
    Ben's response looks pretty good and detailed to me. It certa
    inly deserved better than a 1-star rating.

  • I want to add hyperlink in the illustrator file and want the output in the PDF

    I want to add hyperlinks in the illustrator file and want the output in the PDF.
    I tried to add the multiple hyperlinks on the text and images in the illustrator by using the attribute panel but the links are not working in the published PDF.
    Is there is any other method to create a hyperlink in the illustrator?
    Can anybody help me out in this
    Thanks

    Interesting, Carlos.
    There's another method by JET: Re: hyperlinks in Ai

  • I have been sync'ing my iPad  2 with Windows XP. Now I have a new mac mini and want to switch to this new computer.  How do I save the info on my pad?

    I have been syncing my I Pad 2 with a pc running windows xp.  Now I have a new mac mini and want to switch the syncing to the mac.  What do I do to protect the information and purchased apps on my I pad? 

    Backup and Restore
    http://support.apple.com/kb/ht1766

  • Ip nat pool no-overload prefix 22 (just starting out with the cisco training and wanted to know )

    Above is the command ip nat pool no  overload prefix 22
    Does anyone know what the prefix 22 does and why it is added.  I also and new at learning and currently studying and wanted to know any recommendations for taking the CCNA or CCNP and what online routers (emulators) can i play on to learn commands and prepare for exams

    Hi,
    It is just describing the prefix length for the network or Subnet Mask in general terms.
    Check this:-
    http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr/command/ipaddr-cr-book/ipaddr-i3.html#wp6064781280
    Thanks and Regards,
    Vibhor Amrodia

  • Issue with Mapping Spaces for Receiver Flat File Fixed Length

    Hi Mapping experts,
    my scenario is receiver FILE (fixed length)
    so if a validation applied on a target field returns false then I need to pass the spaces having the number of characters defined for that field
    example
    targetField length = 8
    using "IF" function to perform validation,   if validation is true  THEN = FIELD
    if validation is false ELSE = "________"    (underscore to represent 8 spaces)
    the problem is the validation is of multiple occurences in one queue and if the "true" statement is on the 6th row, I get _________ which is the value of the 1st row (which is correct because rows 1 to 5 are all false therefore having the value of ELSE which is _______ mapped to it)
    How can I get the value of the TRUE row regardless of what row it is located?
    e.g. IF = input is 5 rows of validation,     TRUE is in the 3rd row,   i will get the 3rd row value
           IF = input is 5 rows of validation,     NO TRUE Value,   return 8 spaces
    right now when i Display Queue values are
    iF:in0          iF:in1          iF:in2          iF:out
    1111          false          [_________]     [_________]
    2222          false                    [_________]
    3333          true                    3333
    4444          false                    [_________]
    5555          false                    [_________]
    In above Queue i only get the value of the 1st row which is ________   --> because my target field occurrences definition in Data Type is 0....1
    if I change Data Type occurrences to 1...unbounded I get 5 target fields generated --> WRONG because target file is fixed field, so only one occurence of that target field is required

    Can you give me the idea of what validation are you using so that anyone can help you with the UDF straightaway
    because you need to have a UDf in place which will iterate the number of times the field occurs and then it will check the entire queue first ,where validation is true and only at the instant it will return the value
    if the entire queue is value it will return the  8 underscores
    I hope this is what you wanted
    regards
    ninad

  • Okay my phone was working just fine and I locked it and went to unlock it and now it just sits on the black screen it wont even show the lock screen I dont know what to do but I am very careful with my phone anyone know how to fix it? Plz and thank you!

    Okay my phone was working just fine and I went to unlock it and it wont show the lock screen it just remains black please if anyone can help me fix it it will be much appreciated, I am very careful with my phone so I dont know why its acting like this.

    I'm glad to hear that they replaced your phone. Any experience I have had with Apple customer service and/or Genius bar has been extremely positive. While I have had positive outcomes from trouble with other phones in the past, they are not as quick and  friendly. I had a Motorola phone and a Samsung phone go bad several years ago and warranty work through AT&T required that I wait for a replacement unit and then mail back the original unit to keep from being charged for the device. This usually meant almost a week without a phone. Nice to walk into Apple and walk out with a replacement device. Enjoy your phone.

  • HT1349 I ordered iCloud with iTunes on my PC; now I have an iPad mini and want to sync the music

    First I added iCloud with iTunes on my PC because I wanted to save the music I had purchases; I had Vista; that PC died and am now on Windows 7; Then I purchased an iPad mini and today I tried to set up both so I could sync the music purchased on iPad mini and PC previously.
    However on the PC when I enter iCloud it does not have iTunes available; so I'm stuck and don't know where or how to get the music to sync between the two. It keeps asking for a serial number on the Apple product for the PC but that doesn't apply.
    As a newbee I'm grateful for any answers or clues where to go. Thanks, Janet

    Unless you backed up your iTunes library from the old computer and then copied it to the new computer, your iTunes library is gone now and you have to start all over again.
    I'm not sure what you mean about when you entered iCloud, iTunes isn't available. You will need to explain that a little better. iCloud allows you to download the music again to your computer or to your iPad as long as you use the same Apple ID that you used to purchase the music or any other iTunes content.
    Since you have a new computer and no longer have the iTunes library - or so it seems from what you are saying - you need to make the new computer your syncing computer. You might want to take a look at both of these user tips to see how you can do that.
    https://discussions.apple.com/docs/DOC-3141
    https://discussions.apple.com/docs/DOC-3991

  • I HAVE music on ipad and want to put it on iphone with ios5 how do ido this, I HAVE music on ipad and want to put it on iphone with ios5 how do ido this

    i have an ipad with music i want to put on to iphone with ios5 how do i do this

    yes

  • Anyone around here with an apple developer program membership who lives in the us and wants to participate in entering the atari  indie developer challenge for pong? I have the great idea required, ample coding skills and a completed game design document.

    If you have a membership with the apple developer community or know anyone who has and also resides within the united states, please contact.
    The purpose is to partake in http://www.atari.com/pongdeveloperchallenge
    The initial game design document is fully completed and the ideas expressed in it are more than strong enough to compete for the top prizes.
    I'm well versed in different programming languages (c, scheme, js, assembly, python,...) as well as being a proficient sound designer and musician and a skilled graphics and animation manipulator myself. Assistance with the actual development would appreciated but is not really necessary.
    Winnings and proceedings arising from participation would distributed most fairly. If you know anyone besides yourself that is able to help out, you would also be rewarded financially from an ensuing victory.
    Reply to this post, pm or send  a gmail to aelgoa
    Have a good one
    Marnix

    If you have a membership with the apple developer community or know anyone who has and also resides within the united states, please contact.
    The purpose is to partake in http://www.atari.com/pongdeveloperchallenge
    The initial game design document is fully completed and the ideas expressed in it are more than strong enough to compete for the top prizes.
    I'm well versed in different programming languages (c, scheme, js, assembly, python,...) as well as being a proficient sound designer and musician and a skilled graphics and animation manipulator myself. Assistance with the actual development would appreciated but is not really necessary.
    Winnings and proceedings arising from participation would distributed most fairly. If you know anyone besides yourself that is able to help out, you would also be rewarded financially from an ensuing victory.
    Reply to this post, pm or send  a gmail to aelgoa
    Have a good one
    Marnix

  • Anyone else get screwed by a sales rep when dealing with changing to the edge plan?  I just got screwed and want to know if anyone else has had issues.

    I am looking to change service after dealing with an idiot at my local store that totally misrepresented the plan and is costing me more than ever to have phone service. 

    Me and my fiance were both conned into the edge plan after the idiot rep
    lied to us about not saving money by merging our accounts.   Then we find
    out that we can't merge because of the edge plan we have.  I am writing
    letters and posting messages to find or if this has happened you anyone
    else.   No one has been able to help us so my main focus us to inform as
    many people as possible about what happened
    On Aug 15, 2014 9:20 PM, "Verizon Wireless Customer Support" <

  • How to use multiple counters in the 6602 to measure cycle length, calculate delay and generate triggered pulse.

    Hi,
    I need to measure the cycle length of a pulse, calculate a delay based on this value, and then generate a triggered pulse with that delay value. The input and output pulses will be continuous. The best case would be to use the cycle length from one pulse in the calculated delay for the next pulse. One of my biggest problems has been getting the calculated delay value into the pulse specs.vi for the triggered output.
    This output pulse will be used to trigger an IMAQ video acquisition; therefore, the solution to this problem will be part of a larger video acquisition application. This has posed a problem, in that accessing the counters has interfe
    red with the triggered video acquisition.
    Any suggestion will be welcome.
    Thanks
    Dave

    Filipe,
    The overhead is the problem I'm trying to get around.
    Specifically, what I need to do is to generate an output pulse after a trigger pulse, which is a given percentage of the cycle length. The input pulse is from heart rate, so it will have some variance, and the output pulse will be at a stationary point in the cardiac cycle. For example, for an input pulse of 2 Hz (500 ms) the user would likely request the output pulse be delayed by 75%. Therefore, the generated pulse will have a 375ms delay after the trigger.
    In the past I have had hardware built to do this, but I am hoping I can accomplish the same thing with multiple counters on the 6602. I have been able to accomplish this with 3 counters (2 to measure period and 1 for output
    ) but the overhead prevents adequate triggering of the IMAQ video acquisition. I am hoping another method would solve this problem.
    Thanks
    Dave

Maybe you are looking for

  • Qualified list item based on two columns

    - fact table inludes following columns key1 key2 measure1 In segment designer, update counts: the query must counts two columns "key1 and key2" that key1 and key2 together must be distinct.

  • Put Flash Video on an iPod?

    Has anyone tried to sabve Flash Video files (flv) so that they can be imported to an iPod? Thx,

  • Lightroom trial issues

    I downloaded a Trial for Lightroom CC.  1. I loaded up two cards of images.  If they are saved in LR Catalog?,  where are the Masters?  I right click to "Show Package Contents" and no Masters show up.  Not good. 2.  I process a photo in LR/save to Qu

  • XML messages Filter in RBW

    Hello In XI 30, look like very small question about RWB container variables filter... Simple how to Filter XML error messages in RWB (Alert configure), I couldn't find that answer anywhere... is anyone has idea We are receiving XML messages in E mail

  • Automated Locate and Move .JPG Files HELP!

    I am trying to locate and move all .JPG files on my MacBook running OS X 10.6. I need a Script that will locate all .JPG files no matter where they are on the hard drive and move them [not copy] to a specified folder titled "JPG PHOTOS" that is on my