DAQMx has no output when the pulse width is less than 0.1sec

Hi,
    I am developing a application to generate square wave(voltage) and out put from a DAQMx card (PCI-6723   - 32 point analog in/out).  I attache a simplified code (labview8.5) I wish somebody can help me to figure out what is the problem
    When I set pulse width longer than 0.1 sec. everything works fine. If I set the pulse width less than 0.1 sec, the output from DAQ eithet gets nothing or incorrect(I used a Osclliscope to monitor the  DAQ output), although my labview monitor showed correct output.   I wonder if it is a sampling issue of the DAQ card.
     Thanks
    Guang
Attachments:
test21.vi ‏69 KB

I think one or two things could be causing the problem.
1.  Your DAQmx write is set for 1 sample.  I don't know how that dynamic signal type works with such a setting.  Perhaps it is just putting out the first sample of the signal that is generated.
2.  The math for the frequency of the square wave does not make sense.  You are adding a pulse delay with the pulse period, then inverting it to get the frequency.  So a 1 second delay with 1 second pulse is a 1/2 Hz wave.  A 4 second delay with a 2 second pulse would be a 1/6 Hz wave.  That doesn't make sense to me.
I would recommend building your own waveform or array and not using the express VI.  If you have a 1000 Hz frequency established let's say, build a 1000 element array.  For a .1 second pulse, set replace 100 of those elements with a 100 element array of the voltage value you want.  You can index it wherever you want in the array to account for whatever delay you want.  If you want a 1 msec pulse, then just replace a single element of that array wherever you want.

Similar Messages

  • Samples Not Acquired on NI 660x or NI 6624 Devices When using pulse width, semi-period or two-edge separation buffered measurements with the NI 660x and NI 6624 on counters 0 and 1, some samples may not be acquired under certain circumstances.

    In the DAQmx 9.4 Readme the following is stated:
    Samples Not Acquired on NI 660x or NI 6624 Devices When using pulse width, semi-period or two-edge separation buffered measurements with the NI 660x and NI 6624 on counters 0 and 1, some samples may not be acquired under certain circumstances.
    Could anyone elaborate on this? I am particularly interested in knowing under what circumstances this problem arises for the 6602 PCI devices.
    How should I understand 'NI 660x and NI 6624 on counters 0 and 1'. Is it only a problem on counter 0 and 1 for the 660x or does this only apply for the 6624 devices.
    /mola 

    Are there any NI Product Support Engineers out there who has an answer to this question and who are willing to share it with me?

  • I want to create a TTL pulse. The stepper motor I'm trying to control responds to a high to low edge, when the low pulse width is greater than 0.5 microsecon​ds. What is the best way to go about creating a pulse like this?

    I'm using the NI PCI-6025E card connected to an SCB-100 wiring peripheral. I'm programming the DAQ card using LabVIEW 6.0.2 on a win95 box.
    My first attempt has yielded some surprising results.
    I created a vi with a single while loop set to true. Within that while loop is a two frame sequence. Both frames use the "Write to Digital Line.vi".
    The first frame sets the line in wire to false.
    The second frame sets the line in wire to true.
    The device channel on both frames has been set to my user defined channel nam
    e -> clock.
    clock --> sets the DIO0 channel to be digital write out.
    Using an oscilloscope and some wires I hook ground to the SCB-100's digital ground and I hook the probe to the DIO0 channel. What I see are two different pulses alternating between one another. One has a pulse width of 5ms and the other has a pulse width of about 50ms. You seem to get a grouping of one type of pulse followed by a grouping of the other type of pulse.
    Obviously this is very strange and not what I want. It is also far too slow. So I'd like to know if anyone knows how to do this properly. Remember I only need a low pulse width of 0.5 microseconds.
    Thanks,
    Any help or guidance would be much appreciated.
    Scott

    Scott,
    You don't need to use a digital line to create a TTL pulse. The PCI-6025E has two onboard general purpose counters. You can use one of these counters to create a single pulse of the desired pulse width. For an example of how to program the counters on your board, refer to LabVIEW's Search Examples>>I/O Interfaces>>Counters>>Pulse Generation>>DAQ-STC based.
    The advantage of using a counter over the digital line is that it allows you to control the timing of the pulse through hardware and not software. Thus, it is inherently faster, and the timing resolution is more accurate. The counter will count down an internal 20 MHz timebase to create the pulse delay and the pulse width.
    For more information on the hardware capabilities of your board, you can refe
    r to the User Manual online at www.ni.com/manuals.
    Hope this helps.
    Regards,
    Erin

  • Changing the pulse width of a counter on-the-fly - ?

    I'm seeing strange behavior when trying to change the pulse width of a
    counter while it is running continuously.  Using the property node
    I can set the DAQmx Channel Properties "Low
    Time" and "High Time" when the values are
    changed by the user (see attached VI).  The first change is
    ignored initially, but then applied when a second change is made, i.e.
    the changes are applied one step late.  If I read the respective
    properties the values are what is set but not what is being
    generated and seen on an o-scope.  I added a
    condition of watching the property "Ready For New Value" before applying the
    change, but that doesn't alter the behavior.  What am I missing?
    Windows XP
    LabVIEW 7.1
    DAQmx 7.4.0f0
    PCI-6251
    Thanks,
    DTL
    Attachments:
    GenDigPulseTrain-ChangingSpecs II.vi ‏104 KB

    Alan,
    Thanks for the reply.  I don't know if I explained in well in my
    previous post, but I'll try to confuse again: The issue is that the
    property node change is reflected on the hardware (pulse output) one
    change delayed.  Example: Start the VI with time value A. 
    The user sets the time to value B, the property node read for the time
    will read value B, but the output pulse (hardware) stays at value
    A.  Then the user sets the time to value C, the property node read
    is C, but the output is now B, and so on...
    I've worked with the DAQmx Write, as the example you pointed to shows,
    and it will work properly (reflect the change immediately on the
    hardware).  If one replaces the DAQmx Write to a Channel Property
    Node it will start working as I described above (change reflected one
    change delayed).  Note: A subtle additional change is that I have
    changed everything to Time (High, Low) instead of Frequency (Duty
    Cycle,  Frequency) - ?.  Note 2: DAQmx Write doesn't bring
    out all the properties - what if I have to use a property node? 
    Do I need to "double pump" the values?
    FWIW,
    Don

  • In Delayed Pulse Generation vi,Problem With THE PULSE WIDTH??

    In Delayed Pulse Generation vi, I want to input a very low number for the Pulse Width while using an external timebase source. But the minimum pulse width has to be 2. Does anyone know how can I solve this problem??

    Hey 45,
    Unfortunately, there is no way to generate a pulse width smaller than 2x your external timebase.
    There is an option to create a pulse of arbitrary width of your external source if you can afford some software processing in between. What you can do is use 1 counter to measure how many source edges of your card's internal timebase (80 MHz for TIO only, 20MHz or 100kHz for TIO and STC) your external signal is. This uses pulse width measurement as the counter application. Once you know how many source edges it takes to represent your pulse, then you can use triggered pulse generation and use the internal timebase with the pulse specs set to create the exact pulse width you want (and delay) and you can use your external pulse as the trigger. Th
    is works well if your pulse is always the same width and you can measure it before hand. As an example, let's say your pulse is 20 internal timebase pulses when measured. This means you can use the pulse specs to specify a pulse width of 0.75 your pulse width by using only 15 internal timebase edges for your pulse width.
    I don't know if I was clear above or not but if you give me your exact application you are looking to achieve, I might be able to help you out. Hope that helps.
    Ron

  • I just got the new macbook pro about 2 weeks ago, it has lion. When the new mountain lion comes this summer, can i just update it on my macbook pro since it isn't so old? And if i can update it, do i have to pay, or is it a free update?

    I just got the new macbook pro about 2 weeks ago, it has lion. When the new mountain lion comes this summer, can i just update it on my macbook pro since it isn't so old? And if i can update it, do i have to pay, or is it a free update?

    I'm in the same position, the store said they didn't know of any new release, so i bought my macbook pro to find out about mountain lion. I really hope that i'm not going to pay for the upgrade. New to apple, also last month bought my Ipad 3, really thought that Airplay would have been on my book pro, nope, waste of time.........need that update to use it. Back i the box then, get the windows 7 ultimate pro back out until then.

  • Form has missing values when the database sourced column is less than 0

    Hello,
    I have Apex 4.0. I am making a very simiple form on a table with lots of number columns. When I go into the form linked from a report, it pulls all of the values in from the table for a certain row except for the numbers that are less than 1. Very strange.
    Any ideas?
    Thanks,
    Mark

    Joe Upshaw wrote:
    No, there is, for sure, no such restriction, Mark. To convince yourself of this, just manually add a Page Item to your form. Set "Display As" to number field and set the default to -999. It will display -999.
    Could it be a mismatch between the data type of your source SELECT and the "Display As" on the form field? On the main report, what is the data type for the corresponding column?
    On the field, is the Source Type "Database Column" and is the "Source value or expression" set to the correct, corresponding column name?Also
    When I go into the form linked from a report, it pulls all of the values in from the tableHow does this happen?
    Any other processes run on page rendering?
    Any Post Calculation Computations or Format Masks used on the form items?

  • I installed a few themes on my firefox , when i open a blank page it is supposed to show a skin but the skin disapears in less than a second, What shall be done to have the skin remain on the blan page ?

    I installed a few themes on my firefox , when i open a blank page it is supposed to show a skin but the skin disapears in less than a second, What shall be done to have the skin remain on the blan page ?

    That's probably a bookmark you have saved in Favorites.
    Tap bookmark icon>Favorites>Edit>Delete the bookmark

  • My 16 GB ipad says i have less than 1 GB of storage available. Yet when i add all the apps up, the total come to less than 9GB. i know the sytem need some but where is the rest of my storage being used?

    My 16 GB ipad says i have less than 1 GB of storage available. Yet when i add all the apps up, the total come to less than 9GB. i know the sytem needs some but where is the rest of my storage being used?

    Hi CPI Pierre,
    You can determine what is using the memory in your iPad Air by looking at Settings > General > Usage > Manage Storage.
    If you are having issues with insufficient memory you may want to troubleshoot using the steps in this article -
    iOS: "Not enough free space" alert when trying to sync - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • SSRS 2008 R2 is extremely slow. The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes. I have read this is a bug in SSRS 2008 R2. We installed the most recent patches and service packs.

    SSRS 2008 R2 is extremely slow.  The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes.  I have read this is a bug in SSRS 2008 R2.  We installed the most recent patches and
    service packs.  Nothing we've done so far has fixed it and I see that I'm not the only person with this problem.  However I don't see any answers either.

    Hi Kim Sharp,
    According to your description that when you view the report it is extremely slow in SSRS 2008 R2 but it is very fast when execute the query in dataset designer, right?
    I have tested on my local environment and can‘t reproduce the issue. Obviously, it is the performance issue, rendering performance can be affected by a combination of factors that include hardware, number of concurrent users accessing reports, the amount
    of data in a report, design of the report, and output format. If you have parameters in your report which contains many values in the list, the bad performance as you mentioned is an known issue on 2008 R2 and already have the hotfix:
    http://support.microsoft.com/kb/2276203
    Any issue after applying the update, I recommend you that submit a feedback at https://connect.microsoft.com/SQLServer/ 
    If you don’t have, you can do some action to improve the performance when designing the report. Because how you create and update reports affects how fast the report renders.
    Actually, the Report Server ExecutionLog2  view contains reports performance data. You could make use of below query to see where the report processing time is being spent:
    After you determine whether the delay time is in data retrieval, report processing, or report rendering:
    use ReportServer
    SELECT TOP 10 ReportPath,parameters,
    TimeDataRetrieval + TimeProcessing + TimeRendering as [total time],
    TimeDataRetrieval, TimeProcessing, TimeRendering,
    ByteCount, [RowCount],Source, AdditionalInfo
    FROM ExecutionLog2
    ORDER BY Timestart DESC
    Use below methods to help troubleshoot issues according to the above query result :
    Troubleshooting Reports: Report Performance
    Besides this, you could also follow these articles for more information about this issue:
    Report Server Catalog Best Practices
    Performance, Snapshots, Caching (Reporting Services)
    Similar thread for your reference:
    SSRS slow
    Any problem, please feel free to ask
    Regards
    Vicky Liu

  • Just finished update. While in the Tips, why did it tell me I have an old version? Hey there! Looks like you're using an old version of Firefox. Don't miss out on the latest technology & security features. Get the free upgrade in less than a minute.

    The top of the screen has an owl like icon & then the following message:
    Hey there! Looks like you’re using an old version of Firefox.
    Don’t miss out on the latest technology & security features.
    Get the free upgrade in less than a minute.

    Dear Colbabomb; thankyou for your links.
    So far, I looked at your first solution, Revo Uninstaller and it gives you a 30 free trial. Ergo, it will eventually cost money so I'm leery of using those kinds of programs in general, meaning most "free trials" have unwanted strings attached and often are big probs to get rid of later. Perhaps you can assure me that it is easy and very user friendly, before I proceed. And I already ran malwarebytes and it found nothing tho the program still can't be uninstalled. I downloaded Adw Cleaner and during the install, my Norton's security popped up and warned that there were (low risk) threats with two of their "other offers" and i hadn't even actually clicked to agree either of them. Nonetheless, Norton warned me against the "lyrics finder" and "deal ply." In fact, there was a box already with an x in it, saying that you are accepting deal ply if you x on "next." Well, except I unchecked that box before clicking on next, yet when it went to fully install, it still showed that it was adding itself; so, just before the install was 100% completed, I had to abort the whole thing. I really do hope your other suggestions are programs that you personally know that they don't try and trick you. But right now, I would not suggest Adw Cleaner to anyone. I even read the fine print about what they will try and install and how to decline and it still tried sticking stuff on that i believed I had declined. Anyways, i have to leave now, shall pick up later this evening, if my pc is still functioning.

  • TS1424 I rented a movie and the time expired in less than 2 days. What do I do?

    I rented a movie and the time expired in less than 2 days. I did not watch it all the way through and when I tried to finish watching, I got a message that the time had expired. I am supposed to have 30 days. What do I do?

    Hi bluejay23,
    Thanks for using Apple Support Communities.  This article has information on rentals, including expiration times:
    iTunes Store: Movie rental frequently asked questions (FAQ)
    http://support.apple.com/kb/ht1657
    How long do I have to watch a rented movie?
    You have 30 days from the time of rental to watch your movie, and 24 hours (in the US) or 48 hours (elsewhere) after you've started viewing to finish it. Once the rental period expires, the movie will disappear from your iTunes library.
    Cheers,
    - Ari

  • PO is getting released even if the total amount is less than the last PO am

    Purchase Order is getting released even if the total amount is less than the last PO amount. The release strategy is only working for the first Purchase Order and if the PO amount is greater than the last PO amount.
    Please let me know how to correct this scenario (release strategy).
    Regards,
    Prishu

    Hi,
    Release strategy has nothing do with the previous PO amount. May be, Co-incidently the amount in previous PO which you are referring and the characteristics value maintained in the release strategy is same.
    1) Please go in release strategy by the path mentioned below
    IMG u2013 Material Management u2013 Purchasing u2013 Purchase Requisition u2013 Release Procedure u2013 Procedure with Classification u2013 Set Up Procedure with Classification
    2) Then go to release strategy. Here the total available release strategies would be displayed. Double click the strategy which is getting reflected in the PO you want and go the classifiction tab. There you will get the PO value. Based on this characteristic value the respective release streategy gets refelected.
    I hope this clarifies.
    Regards
    sachin

  • Loosing contacts in iphone 4s after updating ios7. have tried to restore backup but it shows restore cannot be done as back is corrupted. i start loosing contacts specifically when my phone battery goes less than 20%.

    I am loosing contacts from my iphone 4s ever since i have update IOS7 . This specifiaclly happens when my battery life goes less than 20%.
    This has happend before couple of times. But with time & after swtiching my phone ON & OFF recovered conatcs. But this time nothing is helping. Lastly i tried to restore back-up from itunes. I was not even able to do that as it show backup corrupted.
    I dont know for what reason i am not able to call India call centre. PLEASE HELP!!!

    you have done http://support.apple.com/kb/ts4429 this. so try going to repair place (paid) or try downgrading ios (not support on this website).

  • MY new Ipod Nano does not hold a charge.  I use it mostly as a watch, perhaps look at it 5 or 6 times in 8 hours, and leave it in sleep mode the rest of the time.  I drains to the red line in less than 2 days.  My husband's nano will last a week this way.

    MY new Ipod Nano does not hold a charge.  I use it mostly as a watch, perhaps look at it 5 or 6 times in 8 hours, and leave it in sleep mode the rest of the time.  I drains to the red line in less than 2 days.  My husband's nano will last a week this way.  I thought it drained because of looking at photos, so I quit looking at them and it made no difference.  Am I doing something incorrectly to cause this short battery life?

    You are still under warranty if your iPod is "new."  Take full advantage of it by either calling iPod tech support, Apple Care if you have it or take it in to an Apple store or an AASP.  Whichever is more convenient for you.

Maybe you are looking for