Samples and cylcles per buffer

Hi. I am trying to use Daqmx to generate a sine wave and the use displacement sensors to measure the oscillations of a piezo. The problem that I am having is that the output sine wave stops changing after somewhere around 2kHz. Below 2kHz everything looks good. I am using an oscilloscope to measure the output frequency. At higher frequencies the frequency remains the same for a long period and then changes instead of changing when the code tells it to change. When I measure the Q curve of the piezo I am getting a step ladder instead of a smooth curve. I believe this has something to do with my cycles per buffer and samples per buffer but I am not sure. I have included the vi and the waveform generation vi that I am using. Please let me know what I am doing wrong.
Attachments:
Waveform Generation21.vi ‏38 KB
Dual RLP Phase & Deflection (sweep)1.vi ‏807 KB

I can't look at this because your version is too new. However I have
tried to code something very similar. The problem I encountered was
this: You can only set the sampling frequency to certain values (an
integer divided into the clock frequency) and the number of samples per
cycle is obviously an integer. So you cannot sweep the frequency with
arbitrarily fine increments. indeed figuring out how to sweep it is not
trivial as it may involve changing both the number of points per cycle
AND the clock divisor.
As a start you should probably decrease the number of points per cycle.
(Note that if you set the sampling rate DAQmx will round to a legal
value if necessary. If you need to know the actual sampling rate use a
property node to read it.)

Similar Messages

  • Are there any PC cards which have sample and hold capability

    Are there any PC A/D cards which have sample and hold capabilities up to a 10 Khz sampling rate which we are interested in for modal testing of engine structures. Also if this type of card is available what would be the maximum input channel count of this card. We would be interested in the highest count available up to 64 channels.
    A second question: We currently have a 64 channel PCI 6071 capable of 1.25 MS/s throughput. If we are using all 64 channels what would be the interchannel delay between the first and last recorded channel and at what frequency would we have to be sampling to even be able to see the affect of the interchannel delay of this specific card.
    This issue has been debated wi
    th in our group and your insight would be appreciated as you are the experts in this field.

    Dear Sir,
    Thank you for using NI Developer Zone.
    National Instruments has a product line designed specifically for acquisition of dynamic signals, it is called DSA - Dynamic Signal Analyzers. In according to the description of your application the card that best fits your needs is the NI-4472 that is available in PCI and PXI format. This card is able to acquire 8 channels simultaneously, as opposed to the regular DAQ cards that have a single A/D converter and a multiplexer. The NI-4472 has 8 Delta-Sigma A/D converters one per channel, what results in a better performance than having a single A/D converter in combination with a sample and hold and a multiplexer. To Acquire 64 channels you would have to have 8 boards and synchronize all 64 channels. The Synchronization process is very simple and with a couple of software calls we can synchronize as many as 112 channels for simultaneous acquisition at 102.4K samples per second per channel.
    Regarding your second question, the PCI-6071 will sample between channels in a single scan at the maximum sample rate of the board (1.25 MS/s) but the
    scan rate, i.e. the rate in which the same channel is sampled is defined by the user. Being that said, we can conclude that the interchannel delay will be the inverse of the 1.25 MS/s clock, or 0.8 micro seconds.
    For a 1 KHz sine waveform, this represent a phase delay of 0.288 degrees between consecutive channels. For a channel list of 64 channels each one having the same 1 kHz sine waveform, the phase delay between the first and the last waveform will be 18.432 degrees.
    I really recommend the NI-4472 as a very good solution for your application, besides that the combination of the NI-4472 with LabVIEW and the sound and vibration toolset will give you a tremendous tool to solve not only your immediate need but also provide you a system that will be easily modified and adapted for future needs.
    If you need more info, feel free to contact me and I can give you more details about this product.
    Call 1 800 IEEE488 and ask to speak with the Computer Based Instruments (CBI) support team.
    Best Regards.
    Omar De Andrade
    Applications Engineer - Computer Based Instruments
    http://www.ni.com/support/

  • Separate drives for samples and audio files..?

    Hello all
    I am moving to Macbook Pro (previous gen) with Logic Studio after years of PC (feel like I’m standing on the edge of a precipice staring anxiously down!). Will be looking to use it live in our 3-piece band to run existing MIDI Files and live triggered BFD drum samples
    Have decided on getting an Echo AudioFire 8 to handle the necessary Audio outs and MIDI connections and will be replacing our rather dated Korg 05R/W General MIDI module with virtual instruments / samples libraries
    I am thinking that once the Bass (probably Orange Tree CoreBass samples through Kontakt 3) and Orchestration (still wide open to suggestions on that!) are done, they’ll be exported as Audio files or perhaps ‘frozen’ in Logic to ease the load on real-time processing
    Here’s the query then:
    *Assuming that the internal drive will be for OS and programs only, will having the sample libraries and exported audio song files on separate physical drives from each other pay dividends – particularly when considering that the audio tracks (probably no more than two or three stereo files) will be streaming whilst BFD is triggering live samples via MIDI input..? I’m wondering if the samples and audio separate drives situation will be considerable beneficial, or given the intended application, would this approach be merely over-speccing things?*
    If that is thought to be the best approach, what do you believe to be the best way of hooking these up? I plan on using the FW400 port for the Echo AudioFire 8 and have ordered a Sonnet Express eSATA Card to hook up an external drive. Should any additional drive look to use the FW800 port or should I simply tag into the spare eSATA port on the Sonnet Express Card..? My concern with the latter is that a bottleneck would occur in the Express port and defeat the whole object
    I would really appreciate any thoughts on this
    Many thanks
    Clive

    My opinions:
    If you're really only talking about 2-3 audio tracks per song, having them on a separate drive is not going to make that much difference. I'd recommend just using one drive for both audio and samples for now, you can always add another hard drive later if you're getting disk errors, or if you start using more audio tracks.
    If you're looking for a good orchestral library, I recommend Vienna Symphonic Library Special Edition (about $500). VSL sounds great, and this particular set is much cheaper and still gives you a good amount of instruments/articulations.
    If you do go with a third drive, use both eSATA ports. Even with a little bottlenecking, you should see substantially faster performance than with FW800. The data transfer rate of eSATA is over 3 times that of FW800.
    Message was edited by: jdredge

  • Dunning - Interest and Fee per Letter

    I have set up interest and fee per letter in the Dunning Terms and when I run the Dunning Wizard I see these amounts for each of the Business Partners Invoices. Where I am having an issue is getting these values to be displayed in the PLD, are these variable fields - if so what is the variable number, if they are database fields - then which table and column are they?
    Thanks,
    Richard

    Found the template, it was at level 3 that there is interest calculated. Why wasn't it included for all dunning levels?

  • Hello.... I already loaded logic 9 on my laptop hard drive... I would to load all the samples and loops on an external drive... Do I need to reinstall from DVD's or can I drag and drop?

    Hello.... I already loaded logic 9 on my laptop hard drive... I would to load all the samples and loops on an external drive... Do I need to reinstall from DVD's or can I drag and drop?

    Thank you.... Would you know where they would be on my hard dive? Are they all together?

  • Is there any way to have a COMPLETE list of all samples and loops ( Logic 8

    I'm sure it's been posted previously, but anyway, I'm looking to buy new Apple Loops libraries and I have faced the fact , that many of the sounds and loops produced by third parties manufacturers have been already included in Logic installation discs.
    I have a list of Apple Loops DVD's that have been included with Logic somewhere, the problem is, Apple didn't post ( I believe) the credits of all 3rd party manufacturers that have produced these libraries that are included with Logic or Garage band. Is there any way to have a COMPLETE list of all samples and loops that are included with Apple DAW's so I wouldn't duplicate anything ? I'm pretty much positive that Apple had other companies to sound design and sample all libraries for them, so is there also a way to have a list of those manufacturers? Again, the objection is to start upgrading the sound library without any possible duplication?
    Thanks in advance!

    Chris, I certainly don't mind additional questions and postings.
    I believe there are many issues with Apple Loops and Logic that need to be resolved and people need to be aware of that. Unfortunately, in opposite to the old "german" version of Logic , there's no lifetime tech support, you can't even call and ask the question after 60 days , which isn't right for a professional software of this level, especially considering the fact that many things still remain vague in Logic even for developers and tech support people!( believe me, I've called and asked!)
    Issues like that need to be resolved over the phone with the company, period!
    One thing I also learned over the years as a Mac OSX user, if something doesn't work, don't mess with it. Delete your drive and re-install everything. This is very frustrating , I know, but unfortunately this is the only way to deal with OSX issues, if you got a problem with your system, don't try to fix it. It's never gonna be the same again. I know , it's off the topic a little bit, but if your content is missing from the system files, before installing your new Logic, back up your important files, wipe up your drive and clean install Mac OSX , run updates and then install the Logic. Most likely , everything will be in it's place, at least 90% or more. I gave up trying to make two system in my house to be compatible 100% , but it's OK if they're 90% or more identical. I spent enormous amount of time trying to find out what's missing and where, I visited most of the forums and there's no clean answer.
    Message was edited by: Moderator

  • How to output sample and convert clocks to PFI lines of E-Series DAQ (DAQPad-60​15)

    Hi,
    Can someone tell me how to output sample and convert clocks to PFI lines of E-Series DAQ (DAQPad-6015)?
    Thank you very much.
    Jack

    John --
    Windows is not an option for me. I like your idea of using a counter output -- it may be helpful as I am getting ramped up, but my application will eventually require both timer outputs.
    I have a legacy C application written for Macintosh, and I am in the process of moving it onto OS X. So my options are to use DAQmx Base, or write an in-kernel driver. I actually have already done the latter for 6024/6025 E-series boards (for another company); for this client I was hoping to use the DAQmx Base to allow an easy transition to M-series boards, without the cost of writing and supporting a low-level driver.
    The specific task I am doing is relatively straightforward. I record 2 channels of AI for a short period (usually about 250 ms.) and during this time I drive 2 external digital signals. Right now, I use the 2 timer outputs, which allows precise synchronization with the output and AI sampling.
    I appreciate your comments, and thanks in advance for any additional suggestions you can lob my way.
    --spg
    Scott Gillespie
    Applied Brain, Inc.
    scott gillespie
    applied brain, inc.

  • Help required for sample and Hold

    Hello,
    I am working on a project Cerebral Oxygenation Monitoring. The concept is similar to pulse oximetry. I help already developed the hardware that includes the timing circuit , led driver for driving Red and IR Led, Amplifier and Filter Stage. I am getting the pulse signal but it is multiplexed signal corresponding to effect of both Red/IR Led. Now to separate it I need to use sample and hold circuit, whihc I can achieve with and IC LF398 but I want to minimise this part and directly take this multiplexed signal through DAQ Card in to LabVIEW and further create sample and hold in LabVIEW.
    The sampling needs to be in synchronus with the Timing signal given to Red and IR. How I can achieve this in LabVIEW.
    For eg: the Red Led is triggered with a pulse of 1 ms with a repeatation rate after 10 ms. So this timing pulse should trigger the sampling part.
    Please Help.

    CoastalMaineBird wrote:
    Not sure what you need the HOLD part for.
    Correct me if I'm wrong:
    You have a 1 mSec pulse, every 10 mSec.
    Each pulse triggers two LEDs:  RED and IR
    You have a single signal which contains the processed (through the body, or whatever) responses to BOTH of those signals.
    So, how does a S&H, hardware or otherwise, separate the two responses?
    Is one delayed in time, relative to the other?
    YES you are right, 1 mSec pulse, every 10 mSec. 
    Above figure shows the trigger pulses generated using standard hardware. One triggers IR and other triggers RED. In above case  I had kept repetation rate 4msec
    This is the signal which I may get
    Now how do I separate both of these signals in LabVIEW

  • Hello, I have a 5min. part of a piece of meditation music (I think its from the 1970-80s) is there a website that can upload my sample and tell me who it is ? I want to get a new version....Thanks

    Hello, I have a 5min. part of a piece of meditation music (I think its from the 1970-80s) is there a website that can upload my sample and tell me who it is ? I want to get a new version....Thanks............Its in Mp3 format

    Well... it's not actually an iTunes or even an Apple question is it? But you can use either Shazam or Soundhound.
    If you do a search for both of them, you will find the various options available to you, which include apps for portable devices and in the case of Shazam, a work-round that allows you to use an online option using your computer's microphone on either a PC or Mac.
    There may be other services as well, but I know these two.
    I do not receive any reward (financial or otherwise) as a result of mentioning either Shazam or Soundhound.

  • How to avoid the hard limit of 100 column and items per page?

    I have created a Form on a Table with Report. I need to create/edit approximately 175 items. The items on the Form have a limit of 100 column and items per page. What is the best way to carry the remaining items to another Form and doing an insert or update? or is the 100 column limit on the insert/update per table as well?
    Thank You.

    Hi Rick,
    The 100 item limit is on a page, not a table, so you shouldn't have any trouble with your insert or update processes.
    Here's a thought:
    Report currently has a column that links to the first page of items (page 14) with the retrieved row. Presumably you also have a Add New button on the report page that links to page 14 for a new row.
    Define a Next button on page 14 that branches to the second page of items (page 16). Also define a Previous button on page 16 to return to page 14. But page 16 would be the only page with a Save button.
    Now, if user clicks Add New, user will get a blank page 14. Once user enters the info and passes validation they click Next and will be sent to page 16 to enter the remaining info and Save.
    If user clicks one of the column links, they will be brought to page 14 with the clicked row - they can change whatever info there and click Next, or just click Next, to get to page 16. After any changes are made, they click Save.
    I'm assuming you've been thru the tutorials and realize that you'd really have two Save buttons defined for page 16 - one conditional on your primary key item having a value (existing record) and one conditional on it being null (new record) - check out the tutorials for more info, but this is how the application would know whether to run an insert process or an update process.
    Hope this all makes sense and can help,
    John

  • Since upgrading to OSx 10.9, I cannot place my music for iPhoto slideshows.  The only music that works is the Sample and Theme music that comes with iPhoto.  Any idea of what to do about this problem?

    Since upgrading to OSx 10.9, I cannot place my music for iPhoto slideshows.  The only music that works is the Sample and Theme music that comes with iPhoto.  Any idea of what to do about this problem?

    In iTunes go File -> Library -> Organise Library -> Reorganise Library.
    Then quit and restart iPhoto.
    Credit to user keysandfood who figured that one out.

  • Can anybody explain me how to sample and play audio files with logic's EXS2

    can anybody explain me how to sample and play audio files with logic's EXS24 Sampler???
    i cant find a way to upload and manage my own audio content on this sampler...

    i uderstand , thanx...
    i managed to open an audio file and placed it in the sampler,i can play t sample in the little keyboard in the zones section, howver i dont know how to play it with my controller... the sample shows in C1 on logic's keyboard but if i play C1 on my controller nothing happens... how can i fix this?
    Also, i noticed the sample plays from beginning to end once i click on it, how do i do to just make it last until i release the key? like a logic sound??? (in case i want to play a small portion of the sample only)
    Thanx

  • SSD: for OS and apps, or for samples and audio?

    I'm thinking about adding a 256 gig solid state drive; I currently have two 1TB drives. I tend to use large sample-based instruments - Play, Ivory, Vienna, Kontakt, Omnisphere, etc. - but not particularly great track counts. If I used it as the startup disk, 256 gigs would be way more than enough (because audio and video files are on other disks.) As a sample disk it would hold my most demanding and most often used libraries.
    What would be the most efficient use of that SSD speed - OS and apps, or streaming samples and audio?

    Thanks for the recommendation on size. I found a great answer to my question about file locations at:
    http://discussions.apple.com/message.jspa?messageID=12293000#12293000
    Using the advanced Options (control click the active admin account) in the accounts pane in System Preferences, one can specify a new location for the home folder. Very practical and way easier than trying to go into all the app's libraries to tell them where their files are.
    Now I can just copy my home folder to the internal drive, and delete it on the SSD. After a restart, this new location will be recognized as the correct home folder.

  • Sample and hold

    Could you please help me in getting the sample and and hold (Or Peak and hold )functionality of any any given input using LABVIEW
    Regards,
    Sharanu

    If Dennis has already answered your question, than you can disregard
    this message. I got the sense that your question wasn't about the
    "sample-and-hold" circuitry built into DAQ cards capable of
    simultaneous sampling, but actually was a software question about
    tracking and holding peak (or maximum) values that are coming in
    through an analog input. If this is the case, please provide a little
    more information about your program, and I'm sure we can help you out.
    Chris

  • Sample and hold inputs on 6023e card

    I am using a 6023E card and need to input 2 similiar channels into Labview and see the amplitude and phase differences. I have the program working for simulated inputs but the problem (according to NI) seems to be that the time delay in switching between channels causes the phase numbers to be wrong.
    Has anyone used a sample and hold vi or something like it that will allow both signals to be read with respect to the same reference? I realize that there are better cards that will do this but this is a student lab and we need 16 of them so cost is a big problem.
    Any suggestions would be appreciated.
    Thanks
    Dave

    There are two ways of correcting for the multiplexing delay of your board.
    - You can either use the method I suggested in your previous posting http://exchange.ni.com/servlet/Redirect?id=10455451 or
    - You can re-align your signals so they are "in phase". To do so use the Align Waveforms VIs located in your Analyze>>Waveform Conditioning palette. The output of these VIs will be your time signals resampled so they are aligned. Check-out the example called "Correct for MIO inter-channel delay (continuous).vi". But, as mentioned, this method is "overkill" in your case. I'd recommend you to use the first method which is both faster and more accurate.

Maybe you are looking for

  • Problem with 9iAS and Day Communiquh 3

    Hi, i have a problem with the deployment of Day Communiquh 3 web application (a tool for content management) on Oracle 9iAS (not on the OC4J stand-alone..). As explained on Day guide, i've disabled the following services in the delivery.xml of publis

  • How do I allow firefox to let me access a network or web page that it is currently blocking.

    I am trying to access information from my employer that i am allowed to see but firefox is blocking this from happening.

  • Why do I get this message?

    EXAMPLE..... Safari can't open "http://www.sandiegoarchaeology.org/PDF/Archaeology101.pdf" because Mac OS X doesn't recognize Internet addresses starting with "http:". I'm new to Macs. ANY address using "http:" at the start of the address & it will n

  • Javascript dropdown menu

    Hi, I found a javascript dropdown menu that does what i need for this product. I have InterakT for PHP etc but this was to be used for a html page only. The first dropdown menu gives a few options and of course the seconf menu populates from the opti

  • Performed Destructive Recovery (I Think?) on my HP Pavilion m7480n and immediately get infected?

    Hello to everyone on the Forum, First off, I would like to mention that my computer skills are average at best..So, I apologize in advance for complicating matters ..My computer was recently infected by a Trojan.Agent/Gen-Cryptic Virus..With some hel