In the DAQmx Timing VI, if the Cont. Sampling is on...?

Hi!
Can someone please explain to me what happens if:
in the DAQmx Timing VI, when the continuous sampling is on.. but you are asing for samples per channel? This is found in the KnowledgeBase example:
http://digital.ni.com/public.nsf/3efedde4322fef198​62567740067f3cc/3296ba2aef586b7386256d6d00528e3d?O​penDocument

If I understand you question correctly what continous sampling means is that the program will continously make reads what samples per channel specifies the number of samples it will make per read and then put in the buffer. Quoted from the help file..
"samples per channel specifies the number of samples to acquire or generate for each channel in the task if sample mode is Finite Samples. If sample mode is Continuous Samples, NI-DAQmx uses this value to determine the buffer size."
Let me know if you need more explanation. Have a great day.
Allan S.
Applications Engineering
National Instruments

Similar Messages

  • I'm using Entourage 2008 v 12.3.5 and lost ability to SEND.  Tried many small email tests.  Server continues to leave time out message.  "An operation on the server timed out. The server may be down, overloaded, or there may be too much net traffic.

    I'm using Entourage 2008 v 12.3.5 and lost ability to SEND.  Tried many small email tests.  Server continues to leave time out message.  "An operation on the server timed out. The server may be down, overloaded, or there may be too much net traffic."  Comcast tells me server is not down all other network activity is fine.  WHat's up with this?

    Starting earlier today, this also became my problem - can receive but not send in Entourage. The account settings are correct in Entourage - I even created a new account.  My Mac running 10.7.5 won't read the original Office : MAC 2008 disk, so I can't do a fix or reinstall from the disk.
    This is not an issue if I log onto the Comcast site.
    And so, I started using Mail but, unlike Entourage, Mail won't import my Entourage info.
    Argh...  :-(

  • For those of you who have the "Perfect Timing" ringtone from the commercial

    I posted this in the plain 'ol phone forum but haven't got a response yet. I hope I get one here.
    For those of you who have the ringtone from the iPhone TV commercial -- do you remember what portion of the song (or can you check in iTunes) you used for the actual ringtone? If you could tell me the counter (in seconds and minutes) that you started and ended your tone at, that would be great. I'm trying to get it exactly like the commerical but I don't think I have it just right. Thanks! By the way the song is called "Perfect Timing."

    "I downloaded the free version of malwarebytes and ran it when my computer was in safe mode, which found 93 malware "issues" on my computer."
    ...and you're surprised that you had installation issues with iTunes?  This makes me wonder whether others who report problems installing iTunes have computers that are equally infected!  For reference, I just checked the logs from the last Malwarebytes scan (I run an automated scan twice a week) on my main iTunes system (on which, like the other iTunes instances I run, never seems to suffer from any installation issues) - zero issues

  • Doing something the DAQmx way that doesn't fit? (Triggered counter on PXI 6608)

    Hi,
    I want to create a counter with my PXI6608 that is triggered with an external input, then counts up. I then want to be able to read the count in LabVIEW and hence determine the time since the trigger. I have achieved this before with old-style code, but it is not clear how to do it the DAQmx way. In particular, I can't create a task because what I'm looking to do doesn't seem to fit in with any of the pre-envisaged DAQmx task templates.
    Can anyone help? I'm assuming there's some way to create an 'empty' DAQmx task so I can fill in the details with property nodes?
    Cheers
    Lee
    Solved!
    Go to Solution.

    You'll want to make an edge count task and set the source to be one of the internal timebases using a DAQmx property node (set it before starting the task):
    The trigging functionality you're looking for is called an "arm start trigger" in DAQmx.  It's configured through a property node (also before starting the task):
    I'm not sure what you're getting at with regards to the "empty" DAQmx Task.  Typically you'll use the standard API to set typical properties and the property nodes for more advanced functionality so you'll end up with a combination of the two.  In many cases you could replace the DAQmx API with property nodes (for a fun example of this, open up the DAQmx Timing VI), but odds are you might be forgetting something important so I would always suggest using the VIs and then tacking on property nodes for additional functionality when necessary.
    If you're using LV 2012, this example should get you started (or if not, the picture still shows you what the task would look like).
    Best Regards,
    John Passiak

  • What are the units of the DAQmx counter?

    Hello,
    I created this VI and several similar ones a few months ago, but, I have forgotten some of what I did back then.  I believe that this VI should measure period, using the counter on the DAQ chassis.  Can anyone tell me the units of the period measured?  I think it is seconds, but, I am trying to figure out how to figure that out!  The values of the period are generated by the DAQmx READ function in the WHILE loop.  What units is that function outputting to the array?  What are the units of the array elements, essentially?  See the attached VI.
    Also, how do you know?  I opened the DETAILED HELP for the DAQmx Read (Counter 1D DBL NSamp) shown in the VI but, I can't find anything on the units of the data coming out of the terminal labeled DATA with the orange wire, which is actually an array of periods, and we take the average of the most recent 15 or so period measurements.
    I had a suggestion months ago for an online NI manual containing a description of Buffered EdgeCounting measurements, but, when I went to find it, the link had been changed by NI, so, I can't find that manual, but, I think the answer is probably there, because I recall that manual being very useful when I did this before.
    Thanks for the guidance.
    Solved!
    Go to Solution.
    Attachments:
    continuously measure period buffered_singlechannel_forum Nov 13.vi ‏33 KB

    HI dav2010,
    When you create a Virtual Channel, you should specify the units the counter task will use.  There are several options which are listed in the help here:
    http://zone.ni.com/reference/en-XX/help/370469AA-0​1/lvdaqmx/mxcreatechannel/#DAQmxCreateChannel%28CI​...
    I am not on a computer with LabVIEW right now, but I believe the default should be ticks, which is the number of ticks of your device's timebase.  You can find that information in your hardware specifications.
    Regards,
    Chris E.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • How does the DAQmx read.vi work in producer/consumer mode

    Dear all,
    I have one question: how does the DAQmx read.vi work in producer/consumer mode ? 
    I mean if i set the acquisition samples quantity is 5000,(see the enclosed picture), how does the DAQmx read.vi acquire the samples ?
    5000 samples one time ?
    And how does the write. vi work ? Also 5000 samples one time ?
    Look forward to your reply.
    Thank you.
    Attachments:
    producer consumer mode.png ‏28 KB

    It will read 5000 samples per channel.
    The Write Measurement File just writes whatever you give it.  It you send it 5000 data points, it will write the 5000 data points.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • QT to MobileMe: "The request timed out"

    I am unable to upload a video from QuickTime to MobileMe. It says the request timed out.
    The video was shot using a iPhone 3GS, then saved with iPhoto and opened with QuickTime.
    I go to Share -> MobileMe Gallery.
    The video is a little bit over 10 mins, 268Mb.
    Thanks.

    Add me to the list. 76MB .mov file, I also asked it to same an iPod/iPhone version. (Mine was a slideshow exported from Aperture 3 as 720p HD, then opened in QuickTime X to "Share." Sharing starts with about 12 minutes.

  • The Opration timed out occurred on calling REST Service in Addin in windows 7 ultimate 64 bit

    Hi,
    I have created VSTO solution for Outlook Addin in Visual studio 2010.
    In that on button it will call Java REST webservice and validating the username and password.
    Evrything working fine in few systems.But it showing "The operation timed out" in WIndows 7 64 bit office 2013.
    In other windows 7 machine with office 2010 and 2007 its working perfectly.
    Below is the code :
    var responseMessage = (String)null;
                var request = WebRequest.Create(string.Concat(serviceUrl, resourceUrl)) as HttpWebRequest;
                if (request != null)
                    request.ContentType = "application/xml";
                    request.MediaType = "text/xml";
                    request.Method = method;
    request.keepalive=false;
                   request.ContentLength = xmlRequestBody.Length;                
                ServicePointManager.Expect100Continue = false;            
                //var objContent = HttpContentExtensions.CreateDataContract(requestBody);
                if (method == "POST" && xmlRequestBody != null)
                    byte[] requestBodyBytes = ASCIIEncoding.UTF8.GetBytes(xmlRequestBody.ToString());
                    request.ContentLength = requestBodyBytes.Length;
                    using (Stream postStream = request.GetRequestStream())
                        postStream.Write(requestBodyBytes, 0, requestBodyBytes.Length);
                if (request != null)
                    request.Credentials = new NetworkCredential("Username", "password");
                    //request.ProtocolVersion = HttpVersion.Version11;
                    var response = request.GetResponse() as HttpWebResponse;
                    if (response.StatusCode == HttpStatusCode.OK)
                        Stream responseStream = response.GetResponseStream();
                        if (responseStream != null)
                            var reader = new StreamReader(responseStream);
                            responseMessage = reader.ReadToEnd();
                    else
                        responseMessage = response.StatusDescription;
                return responseMessage;
    Could you please help what could be the reason.Any firewall issue or any serviced related issue.Kidly suggest.

    Hi,
    I have created the windows application using REST Service and tested the application on
    windows 7 64 bit Ultimate edition but I'm getting the same error "The
    operation timed out" attached the screen shot for your reference.
    http://www.screencast.com/t/YeIJxl383a
    I developed the application on Windows 7 Ultimate 64 bit version it is working on my machine. while the executing exe on another windows 7 64 bit Ultimate
    edition which is on the virutal machine Im getting the error.
    There is no visual studio installed on the Virtual machine , i have installed the Dot Net frame work 4.0 client profile on the virtual machine.
    Could you please suggest is there any issues related to opearating system or related to framework.
    Kindly help with some suggestions.

  • DAQmx Timing (sample clock).vi

    do u know what is the critaria to use DAQmx Timing sample clock.vi... or in what situations this vi must b used?

    Hi Pritam,
    Thank you for posting on the National Instruments forums.
    The DAQmx Timing.VI is used when you need to perform an operation that requries sample timing whether it's Analog Input, Analog Output or Digital IO. 
    Here is a Developer Zone Article that explains how the Sample Timing VI can be used:  Learn 10 Functions in DAQmx and Handle 80% of Your Data Acquisition Applications.
    Hopefully this will tell you what you need to know.
    Thank You,
    Nick F.
    Applications Engineer

  • DAQmx Timing

    Dear all,
    I have this following VI solution that stems from the LabVIEW example for Continuous Digital Data Output. The issue concerns the System Clock - when set to a low sampling rate value (say, 1S/s), the rate seems to be much higher. The LED indicator on my BNC2120 is dimmed throughout; indicating fast switching between the Low and High?
    How shall I edit the enclosed VI to actually write one sample per second? I am using the PXI-6132 card.
    Thanks in advance.
    Solved!
    Go to Solution.
    Attachments:
    Digital - Continuous Output.vi ‏58 KB

    Ok, when you set the clock to use the 100kHz clock, you will be sampling at the 100kHz.  I am a little surpised that it won't let you use the onboard clock.  Maybe the DIO can only be clocked out with an external clock?
    Some tweaks you should make here:
    If using an external clock, the rate should be set to the maximum expected rate of that clock.  The data will be clocked out based on that clock though.
    Since you are using Continuous mode, do not wire up the Samples Per Channel to the DAQmx Timing VI.  All you are doing is limiting your buffer size.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • DAQmx Timing rate

    I am using the DAQmx Timing control in a VI that samples data from a PXI chasis. The sampling mode is set to Finite Samples. The help states that the rate input specifies the sampling rate in samples per channel per second. Increasing this number means more samples per second. It seems to me that increasing the samples per second should reduce the overal time of the process since it is performing more actions per second. However, increasing the rate decreases the loop time of my program. What am I missing here? Am I understanding this wrong, or just implementing this strangely?

    Hello,
    You are right that increasing the rate means more samples per second.
    It means the following: If you keep the finite number of samples to
    acquire fix, then increasing the rate should decrease your acquisition
    time. Suppose you are performing acquisition in a loop. If the
    acquisition time decreases, then the time for a loop iteration will
    decrease as well.
    For example, for an acquisition of 1Hz, if the number of samples to
    acquire (on the timing VI) is 1000, it means that you will acquire a
    total of 1000 Samples. Since the rate is 1Hz, it will take you 1000
    seconds to acquire all the samples. However, in a loop, you can use the
    DAQmx Read VI to read part of the total number of samples already
    available. So for example, if you specify 50 samples to read on the
    DAQmx VI, every time it is called, it will grab 50 samples from the
    buffer. If the samples are not available yet, it will wait until they
    are availble or there is timeout and return.  Now if you have a
    process in the loop that take more than 50 seconds to comple before you
    read again, then there will always be at least 50 samples in the buffer
    from the second iteration. From there on, if you increase the rate, it
    will just increase the number of samples availble to be read, but it
    will not necessary make the other process in the loop faster. So the
    DAQmx Read will always have the 50 samples it needs, but the other
    process will still take time. So in this case, changing the rate from
    1Hz to 100Hz will seem to have no effect on the entire process.
    The important thing is to understand what those numbers actually mean.
    -Sample per channel  in the timing VI represents the total number
    of samples to be acquired by the board on each channel of the task.
    -Rate represents the rate at which the samples above are acquired
    -Sample per channel in the DAQmxRead VI represents the number of
    samples you want  the VI to grab from the buffer. Those samples
    have already been acquired and stored on the computer.
    Hope this clears it all

  • How to use 20 MHz clock of the 6602 Timing card on other boards?

    Hello,
    I have a 1042 PXI with 6602 timing card and several other boards including 6534 Digital I/O board and 5122 Digitizer.
    I want these boards (6534 and 5122) to use the 20 MHz clock of the 6602 board as their Sample Clock.
    But when I set "/TimingIO/20MHzTimebase" as the source of the Sample Clock for the 6534 board I get the following error sometimes (sometimes everything works fine) :
    """Error -200621 occurred at DAQmx Wait Until Done.vi:2
    Onboard device memory underflow. Because of system and/or bus-bandwidth limitations, the driver could not write data to the device fast enough to keep up with the device output rate. Reduce your sample rate, or reduce the number of programs your computer is executing concurrently. """
    When I use "OnboardClock" as the source of the Sample Clock for 6534 I never get this message. I tell 6534 to use 6602's 20 MHZ clock by connecting
    "/TimingIO/20MHzTimebase" terminal to the appropriate input of the
    "Sample Clock vi" in the 6534's task. Output rate of the 6534 that I use is (much) less than 1 MHz.
    Could somebody explain the source/reason of the error message above? It seems like 6534 can not use 6602's 20 MHz clock though it has 20 MHz oscillator itself...
    Is there a way to use 20 MHz clock of the 6602 for 6534?
    Thanks in advance!

    Hi Ampm,
    The two answers are related to each of the answers:
    1) In this knowledgebase we can see that actually the 6602 cannot
    export his clock into PXI_Star. Since your digitizer cannot received but from
    this line, we need to find a different solution (see below).
    2) PXI_Star is actually a signal and should be named something
    like this “/Slot5/PXI_Star”. Make sure you PXI chassis is configured in MAX.
    There are two possible approaches:
    1)     
    I would suggest to PLL all
    clocks to the PXI 10 MHz clock. This takes full advantage of the hardware you
    have.
    2)     
    Export the 6602 20 MHz clock
    on a front panel PFI line and externally connect it to the CLK IN of the 5122.
    Good luck,
    Gerardo O.
    RF Systems Engineering
    National Instruments

  • DAQmx :: Continous reading of the last 10 values of a continous data-aquisition at a fixed point

    Hello,
    I am using a NI-PCI 6259 for generating and aquiring data.
    The other configuration is:
    - LabVIEW 7.1
    - DAQ 7.3
    I need to measure three anaolg channels, and generate an analog output. Additonally I need to read some values over the RS232. The whole activity should repeat every 30ms. To get this, I am using a timed loop at the moment. I generate a clock with counter 0 and read it with counter 1 for the timed loop. Inside the timed loop I start/stop a finite aquisition for the three analog channles and the RS232 reading. The fastest aquiring supported by the RS232 is an iteration every 30ms. Without the analog aquisition the system runs without any dropped loops. By adding the analog aquisition the timed loop dropps 2-5 loops every 1000 iterations.
    I think the problem is the repeated start/stop of the aquisition. Maybe a solution is a continous aquistion by reading out the last 10 values of the buffer every start of the timed loop. But all my tests failed, because of the FIFO design of the buffer. When I start a continous aquisition outside the timed loop and read 10 values inside, I always have the first 10 values of the buffer, not the last ones.
    Does anyone has an idea, how to read loop the last 10 values of a continous aquisition inside a timed ?
    Thanks a lot for your help.
    Best regards,
    Michael
    Attached you will find the actual state of the testprogram. Because the aqusition should be in the last quarter of the generated output value, the values of the loaded waveform (output) are four times resampeled and the clock has four times the speed of the aquisition, which generates a timing event every four clocks.
    Attachments:
    Datenerfassung.zip ‏3047 KB

    To address your main issue you might try using the DAQmx control Task VI right after you call the Timing VI (outside the timed loop) and set its value to commit. This allows for more efficient starts and stops. Some other things I saw in your program which might make it a little easier and use less HW. First, you shouldn't need to create a CO task on ctr0 and then feed it to the timed loop using ctr1. Why don't you just use the Frequency personality of the timed loop? That way you will only use one counter. If you want to use the 2 counter method then to avoid using external wiring as the source for counter 1 in the timing source VI use CTR0/internaloutput. This is an advanced property for the terminal I/O control so you will need to right click on the constant and select I/O filtering. Finally, when you specify your create channel for the AI Voltage why are you doing this in a for loop. You can just have one channel string Dev1/Ai16:18 and that will create all 3 channels with the same information. Hope this helps
    StuartG

  • I cannot get the updates for ipad to download. when it gets ready to process the file an error message pops up saying the software was unable to download and the network timed out. any suggestions...

    i am trying to update the software on my ipad from 4.2 to 4.3.3 but i cannot get it to download. I get an error message that says the software was unable to download because the network timed out.  I have tried to download it 7 or 8 different times and still get the same message.  I cannot restore the factory settings either.  The same thing happens.  Does anyone have any suggestions?  It did this when trying to update to 4.2.  I don't remember how we were able to get the software to update.  Thanks.

    Thank you King_Penguin!  It worked beautifully.  I had turned the firewalls off but not the antivirus.  You are great!  I am new to this apple community thing so it looks like I cannot mark your reply as "correct answers", but it was.  Thanks a ton!

  • How do you configure multiple PXIe chassis to share Tclk synch with the 6672 timing module?

    Hi,
    I have two PXIe chassis, each with a number of digitizers (configured through NI-SCOPE). Each chassis has a PXIe 6672 timing module. I have downloaded the sample VI from:
    http://zone.ni.com/devzone/cda/epd/p/id/5254
    which deals with PXI chassis. My question is this: in the VIs at the above link (and in fact all VIs I've seen for using the 6672 for sharing triggers), the VI needs access to the resource identifiers for both Master and Slave timing modules, how do I access the (remote) slave resource identifier from the master chassis? I feel like I'm missing something obvious, but can I do this using just an ethernet connection, or do I need another module to enable the master chassis to view the devices on the slave chassis in MAX? 
    Thanks for any help you can provide,
    Cillian

    Those example VIs are written to be used when a single host PC is controlling multiple chassis so there is just one computer running the program.  Since both of your chassis have their own controllers it will be necessary to run a program on each (one as master, the other as slave).  You can modify the code from that example to create and Master and Slave VIs.  For the Master you will call the VIs as specified in case 0 of the example; for the Slave you will call the VIs as specified in the default, 1 case of the example.
    You will also want to send a signal from the Master to the Slave to let the Slave know that the clock is being generated.  You could use TCP/IP or a PFI line to do this.  The basic order of events should be as follows:
    1. VI runs on Slave to configure it to accept a clock.
    2. VI runs on Master to begin outputing the clock.
    3. Master sends a signal to Slave to let it know that the clock is being generated.
    4. Continue with the rest of your program.
    Let me know if you have any questions about this.
    Barron
    Applications Engineering
    National Instruments

Maybe you are looking for

  • Sales Order Block for Billing

    Hi All I have a bussiness where I am reciving the SP and SH address details from Idoc and and i want to block the sales order for billing  if the country code is different. My Proposed Solution : I would like to write a pice of code in MV45AFZZ that

  • Changing properties in a portfolio

    I created a form in Adobe Acrobat Pro 9 with a read only field. I distributed the form and received about 100 responses. In my portfolio I was able to change the read only setting so that I could enter the data I needed in the form. I did this by goi

  • Is there a way to recover a portion of a video? I accidentally clipped the wrong portion.

    While editing a movie I took on my iPhone, I clipped and saved the wrong portion of the movie I wanted to save.  Is there a way to recover that clipped portion?  Thx.

  • Gantt in Visual Composer?

    Hi experts, Is it possible a graphic grantt in visual composer? Thanks in advance, Regards,

  • Organizer and PS album

    Is the organizer in elements 2 and 3 the same as photo albums 2. If so should I uninstall the Album when I install either Elements 3 or 4? Tello