When using counter 0 output, counter 1 goes to high state

I'm using a PCI-6229 DAQ card with LabView 7.1.  Running the pulse generation example VI called "Gen Dig Pulse Train-Finite.vi" (located in the Counter\Generate Pulse library), I noticed the following anomaly. 
If you select dev1/ctr0 as the specifed counter for the DAQmx Create Virtual Channel CO Pulse Freq VI, and also select a given frequency, idle state, duty cycle, and number of pulses, the output on counter 0 (pin2) will indeed output the correct pulse train.  However, during this pulse train, the output on counter 1 (pin 40) goes high.  This also occurs vice versa (if dev1/ctr1 is selected, counter 0 output goes high during the pulse train on counter 1 output).
Thus, it appears the counter outputs cannot be used simultaneously.  If one is used to generate a pulse train, the other will go high and vice versa.  Is this by design?  Is there a way to get around it?  I can't find anything in the literature. 

What you see is in the nature of how DAQmx manages finite pulse train generation.  It actually uses 2 counters, where one of them is used to generate a single, hardware-timed "gating pulse" which controls how long the other counter's pulse train is generated, thereby also controlling the # of pulses generated.  As an experiment, try performing continuous pulse train generation -- you'll see that the other counter no longer sends its output high.
Workarounds?  That depends.  I'm not near LV or hardware to experiment, but I *think* I recall reading a thread one time that discussed how to prevent an output pulse from being routed out to the terminal block pin.  However, I'm not sure if that same technique would allow you to suppress the gating pulse in a finite pulse train generation.  Ah yes, here's that posting. 
If you can't suppress the gating pulse directly via the finite pulsetrain task, there *are* old-school ways to generate finite pulsetrains which should give you the ability to use the linked technique.  You would configure for continuous generation but use the gating counter as a "pause trigger."   You would also generate a single pulse with the gating counter after calculating the exact pulse width needed for the # pulses you want.  After the single pulse task is done, you'd stop the continuous pulse train task.
-Kevin P.

Similar Messages

  • I have been noticing that when using the computer the mouse keeps going in places where I really do not want and just now select the sentence without I have done anything. Sometimes goes to places like bookmark or open tabs in website when I am reading a

    I have been noticing that when using the computer the mouse keeps going in places where I really do not want and just now select the sentence without I have done anything. Sometimes goes to places like bookmark or open tabs in website when I am reading a page.
    Also I have noticed opened windows that I have not opened.
    I have verified the sharing folder and also the remote access but it not let me turn it off.
    Also I have add a password to my computer and even using the same one it looks like is not working.
    The I photo stopped working, Mac Mail does not let me add rules (this is from one day to the other)
    The computer is mine, the internet I use is payed by me with a password. I did not give permission to anyone to use my computer or share my files.
    In system preferences in the sharing folder is showing everyone and staff.
    My computer is private I do not own a company and I do not have a network set up in my house.
    I had my photos removed from my computer and even after trying to reinstall I photo and fix the Mac Mail is not working.
    I am receiving emails saying that I have sent emails to people that I do not know and including in a time where I am working and not using the computer.
    Any suggestions in how to fix this issue?
    I really appreciate.

    With the multitude of issues you have I would take it to an Apple store or AASP and have them sort it out. Then I would sign up for Apple camp or one on one.

  • When using bbbc I player the screen goes black after 30 secs and only get audio. I have latest version of the app and also tried via web browser. Any advice it is so frustrating

    When using bbbc I player the screen goes black after 30 secs and only get audio. I have latest version of the app and also tried via web browser. Any advice it is so frustrating

    Is this an app bbbc?  IF it is I would contact the app developer and see if they can resolve the issue for you.
    also take a look at the reviews and see if other users are having the same issue and see if they have a resolution.

  • AC Power stops when using s-video output

    This only happens when using the s-video output. It usually takes about an hour before the ac power adapter stops working then the powerbook switches to battery power.
    For all other times when not using the video output, it would work normally [ i could leave the ac power plugged in for weeks without this problem occuring ].
    Is there a way to fix this when using the s-video output.
    Powerbook G4 1.33 GHz   Mac OS X (10.4.6)  

    If you know someone with another 65W power adapter I would try using it to see if it does the same thing. If it doesn't then you know to buy a new power adapter.

  • When using the magnetic lasso, the screen goes black and you lose the path, why?

    In photoshop cc when I use the magnetic lasso, the screen goes to black and you lose that path when you hit escape, why?

    Hope this helps http://helpx.adobe.com/photoshop/kb/photoshop-menus-turn-white-mac.html

  • Error message when using counter indicating need to use faster timebase

    I'm attempting to use the two onboard counter timers on my DaqPad 6015 with a SC2345 carrier.
    The program initially runs as expected, but once in a while I get an error message that reads as follows:
    "2 consecutive active edges of the input signal occured without a counter timebase edge."
    "Use a faster counter timebase"
    I have only attempted to read this signal at two known frequencies: 15 and 20 Hz.
    Can anyone advise as how to correct this or how to change the counter timebase?
    I'm using the built in Express Daq Assistant to create the code to read the frequency so that part is pretty straight forward.
    This command is however inside of a case structure, so each time it reads it is possible to reset or miss the first leading edge of the signal.
    Thanks,
    Patrick

    Hi Patrick,
    It sounds like the program is lagging when you attempt to read the gate of this counter. 15 Hz seems slow in comparison to the specs of the counter, but if your VI is slow by 7/100th of a second the program will thrown an error. I recommend probing the counters to determine where in the program the error occurs.
    Michael K.
    | Michael K | Project Manager | LabVIEW R&D | National Instruments |

  • Alert from the system when inventory count is going on for a bin or materia

    Hai Consultant ,
    Our customer is asking for whether the system can identify what are all the materials in a particular bin has been scheduled for delivery while performing inventory count . Please help me out in this
    Thanks and Regards
    Sunil

    Sunil -
    Few queries related to this issue...
    1. Is batch management is used?
    2. If yes, While creating delivery batches get auto picked or you are assigning manually?
    As if the PI is going on in WH and delivery gets created, stock under count is not applicable to pick for delivery. the stock in LS24 with 'X' as status will not get picked in delivery, so no question of getting stock picked for delivery.
    On the other hand, if the delivery gets created and stock got picked, it is under 916 sto type. For 916 also you are carrying PI?
    As a consultant i feel you should convience this to your client on this issue.
    Please confirm me to dig more on this.
    Regards
    Amol

  • Short dump error when using count(*)

    Hi Experts
    I am getting a short dump error when selecting the records >= current date - 30 see the coding and comment please correct the coding I want to know the ztable records it is important for command interface.
    I have 1402345 records available after deleting the records but as the memory is not enough it is giving short dump error
    select count(*) from ZINT_TABLE
    select count(*) from ZINT_MSGS
       select * from zint_data
                 nto table izint_d2 . "PACKAGE SIZE 20000
       where STATUS = 'OK' AND CREATED_ON >= w_date1.          " VALUE
    endselect.**
    report z_eslp_command_records.
    data: cnt type i.
    data: cnt2 type i.
    data: cnt3 type i.
    data: cnt4 type i.
    DATA:
         w_date1 like sy-datum .
    DATA:
         w_date2 like sy-datum.
    data: izint_msgs type table of zint_msgs.
    data: izint_data type table of zint_data.
    data: izint_m2 type table of zint_msgs.
    data: izint_d2 type table of zint_data.
    INITIALIZATION.
    w_date1 = sy-datum -  30.
    w_date2 = sy-datum -  30.
    select * from zint_data
                 into table izint_data PACKAGE SIZE 3000
                 where STATUS = 'OK' AND CREATED_ON <= w_date1.   " ZERO
    endselect.
    select * from zint_msgs
                 into table izint_msgs  PACKAGE SIZE 3000
                  where  CREATED_ON <= w_date2.              " ZERO
    endselect.
      select * from zint_data
                 into table izint_d2 PACKAGE SIZE 20000
       where STATUS = 'OK' AND CREATED_ON >= w_date1.          " VALUE
    endselect.
    select * from zint_msgs
                 into table izint_m2 PACKAGE SIZE 20000
      where CREATED_ON >= w_date2.                            " VALUE
      endselect.
    select * from zint_data
                into table izint_data2
    where STATUS = 'OK' AND CREATED_ON >= CONVERT(CHAR(8), GETDATE() - 30, 112)).
    ENDSELECT.
      select * from zint_msgs
                into table izint_msgs2
    where CREATED_ON >= CONVERT(CHAR(8), GETDATE() - 30, 112)).
    ENDSELECT.
    sort izint_data by created_on ascending.
    sort izint_msgs by created_on ascending.
    sort izint_d2 by created_on ascending.
    sort izint_m2 by created_on ascending.
    describe table izint_data lines cnt.
    describe table izint_msgs lines cnt2.
    describe table izint_d2 lines cnt3.
    describe table izint_m2 lines cnt4.
    write:/ ' Note: THE RECORDS COUNTED SHOULD SHOW ZERO ELSE THE SCRIPT FAILED TO RUN' color 3.
    skip.
    write:/ '1. Records counted in ZINT_DATA   <=current date - 30                   :' color 2,                        cnt color 4.
    write:/ '2. Records available in ZINT_DATA >=current date - 30                   'color 4,                   cnt3 color 4 .
    skip.
    write:/ '2. Records counted in ZINT_MSGS   <=current date - 30                   :' color 2                 ,                      cnt2 color 4.
    write:/ '4. Records available in ZINT_MSGS >=current date - 30                   'color 4  ,            cnt4 color 4 .
    TOP-OF-PAGE.
    WRITE:/55(60) ' WAGNERS INVESTMENT LIMITED  '.
    WRITE:/50(40) ' Command Interface Data' CENTERED .
      WRITE:/50(40) '----
    ' CENTERED .
      FORMAT INTENSIFIED ON.
      SKIP.
      "FORMAT COLOR COL_HEADING.
      ULINE.
      FORMAT COLOR 1.
    END-OF-PAGE.

    Answer

  • Missing out on hits when using count

    I'm using the count-function to sum up som numbers, these numbers are connected to diffrent users.
    As long as a user have at least one number to his name, there is no problem. But if he doesn't, I don't get any hit. I tried with nvl-function, but it doesn't work, I guess beacuse it isn't a null-value in return.
    What I would want to get is zero for those users that doesn't have any numbers to sum up.
    The code looks something like this...
    select user_id, name, count(a.hits)
    from user, score a
    where ....
    group by ....

    You would need an outer join between the two tables, like in:
    SQL> create table usr
      2  (name varchar2(10))
      3  /
    Table created.
    SQL> create table score
      2  (usr_name varchar2(10)
      3  ,x int)
      4  /
    Table created.
    SQL> insert into usr values ('aa');
    1 row created.
    SQL> insert into usr values ('bb');
    1 row created.
    SQL> insert into usr values ('cc');
    1 row created.
    SQL> insert into usr values ('dd');
    1 row created.
    SQL> insert into score values ('aa', 10);
    1 row created.
    SQL> insert into score values ('bb', 99);
    1 row created.
    SQL> insert into score values ('cc', 98);
    1 row created.
    SQL>
    SQL> select name
      2       , count(s.x)
      3  from usr   u
      4     , score s
      5   where u.name = s.usr_name (+)
      6   group by name
      7  /
    NAME       COUNT(S.X)
    aa                  1
    bb                  1
    cc                  1
    dd                  0
    SQL> select name
      2       , Count(s.x)
      3    from usr u
      4    left outer
      5    join score s
      6      on (u.name = s.usr_name)
      7   group by name
      8  /
    NAME       COUNT(S.X)
    aa                  1
    bb                  1
    cc                  1
    dd                  0

  • IMac G5 iSight - Resolution problems when using s-video output.

    Good afternoon all.
    I have an iMac G5 and the only video output it has is a mini VGA socket. I have used this with a mini VGA to S-Video converter cable from Apple and am getting some odd results.
    The Mac is running Leopard 1.5.7 and I'm outputting to a fairly old Panasonic CRT TV.
    The problem I find is that when I plug in my mini VGA adaptor to the Mac it reduces the resolution on the Mac screen down to 1024x768 (stretched). The TV outputted TV image looks great, but I can't seem to keep my native resolution of 1440x900 on the Mac display.
    If I do go and change the resolution in "displays" in the sys' prefs' then it just seems to keep the 1024x768 resolution on the Mac but this time without stretching it.
    Does anyone know how I can keep my Mac at its native resolution of 1440x900 while still outputting to s-video to the TV?
    Any and all help will be greatly appreciated.
    Thank you again in advance.
    Stuart

    Hi
    I have the same config as you: I have been using it for years to view on my tv dvds or videos from the web.
    To my knowledge there is no way to acheive what you wish: when you plug the adaptor in the mac adjust to your output source and its main display (the g5 display) will reflect that with the result that it becomes very difficult to use.
    Maybe there is a way to try changing the resolution in a middlle"configuration" which would give an acceptable viewing on the tv as well as on the g5.
    Personally I keep plugging and unplugging the adaptor as needed.

  • IMac 27 - very poor quality audio when using analogue headphone output

    Hi,
    I've had my iMac 27 (i7 quad core, early 2010, OS X 10.6.4), hooked up to my hi-fi via the headphone output jack (analogue) since i bought the machine a few months ago, and its worked fine. However, the audio quality has suddenly deteriorated. The volume is very low, meaning that I can only hear anything if I turn up my hi-fi volume all the way, and then the sound is distorted (as you'd probably expect). Turning up the volume on say, iTunes, whist playing a track, combined with turning up the iMac's output volume does cause an increase in overall volume, but it only makes the difference between totally inaudible and very quiet! Its as if there is some internal output- level setting within the iMac that has 'stuck' at a very low setting!
    Troubleshooting actions carried out so far:
    Removing the audio cable from the iMac's headphone socket allows the Imac to play via its own internal speakers, and this works fine! (The sound is good, volume is decent, no distortion). So, its just the headphone audio that is affected!
    I've verified the sound settings in system preferences. They look fine.
    I've performed several soft and hard reboots (with up to 24-hours separating power-off/power-on cycles), but to no avail.
    I've booted into Windows XP (bootcamp) and the same audio problem persists (so its not the O/S that's causing the issue).
    I've checked the cable and my hi-fi by removing the 3.5mm terminating plug from the imac and sticking into my mp3 player's headphone jack. All works fine. I then inserted the 3.5mm plug plug into my laptop's headphone jack. Again, perfect sound reproduction through my hi-fi. I then returned the plug to the imac's headphone socket and the audio problem re-surfaced, so its definitely the imac that is at fault.
    I've ran the extended hardware tests too - no faults found.
    I reckon its a hardware fault, but just wondered if anyone else had experienced the same problems?
    Incidentally, my Imac is well within its 12-month warranty, but the complimentary 90-day Applecare cover has expired. Looks as if I'm going to have to make an appointment with a 'Genius', but I didn't want to go through the hassle of transporting the system unless necessary. Thankfully, I've had none of the other widely reported quality issues, and apart from this audio problem the machine has performed flawlessly.
    Kind regards.

    I have 30 new imacs running Snow Leopard. They replace 30 emacs that were running panther. I have 30 headsets (labtech) that worked beautifully with my emacs. Used them so my kids could create imovie projects using imovie 6. Well all that has changed with my new imacs. I went to use imovie 9 today and what a disaster. NONE of the headsets would work as they had on the emacs. The kids had to wiggle the plugs and that would sometimes create sound out of one channel, no channels, or would create a crackling sound. Worse than that is that it would give the kids the spinning beach ball. They would unplug the headsets and after about 1 minute imovie would return to normal. I took some of the headsets and tried them out on an emac I have in the room and they all work. I tried them on my macbook pro and they all work. So, it is not wiring or a plug. The sound prefs are setup correctly. Any suggestions? Has anyone else experienced this problem? Here I have new imacs which will allow more sophisticated projects with the iLife apps, but can't use them due to inoperable headsets. I have tried three different brands of headsets and 2 of them will not work at all. These were brand new imacs - right out of the box, and brand new headsets. This is very frustrating to me and the students.
    Any help would be appreciated. How can apple not design a fully functioning headphone jack as they have in the past?

  • When using Maps as GPS,  screen keeps going off - iPhone 3G

    When I use maps as a gps, how do I stop the screen from going off?

    But, that makes the auto-lock feature be turned off for all usages. What about if you only want the screen to stay on while you're using Maps? I have to turn off the auto-lock every time and then go back and turn it back on? It seems like this should be a setting in the Maps app instead of having to change the master settings.

  • Sine.vi clicking when used for realtime output with DAQ Assisstant.

    What I'm Trying to Do: Stepped sine analysis. The program outputs from the DAQ device each of the frequencies entered into the array constant on the left (see VI) in order, taking a measurement of the magnitude of the signal input to the DAQ device for each frequency. The program only takes a measurment and moves onto the next frequency once it has decided that the magnitude of the input signal is stable. Stability is defined by the stablility upper and lower limits labelled in the lower double nested loop (see VI). The program measures the inputs magnitude 10 times as second, and calculates the difference between the current magnitude and the last magnitude each time. The difference must be within the stability limits 20 times in a row for a measurement to be saved and the frequency changed.
    The Problem: phase of sine.vi is resetting each time round the loop for some (not all) frequencies, even though it's set not to, causing clicks (number of clicks per seconds depends on block size). This doesn't happen if the lower nested for loop (the one that checks for stabliity, labelled on the attached VI) is removed. I thought that maybe the two DAQ Assistants (one for output and one for input) were interfering with eachother, but the problem occurs even when the DAQ Assistant Input is changed to a signal generator.
    Thanks in advance for any help,
    Christian
    Message Edited by crnbaker on 12-08-2009 05:00 AM
    Attachments:
    steppedsine_forum.vi ‏116 KB
    steppedsine.JPG ‏74 KB

    Hi Christian,
    I have been looking into this problem though I must warn you that since I don't not have your exact hardware configuration I can not exactly recreate your problem. I have also carried out some research to determine whether there are any known instances of this problem, and unfortunately there are not.
    The fact that the VI runs OK when the lower loop is deleted suggests to me a problem in this lower loop. Have you tried initialising the shift register. An uninitialised shift register could explain such inconsistent behavior. Symptomatic of this kind of problem would be the VI running correctly the first time you run it and then producing unexpected behavior subsequently.
    Best Regards,
    Christian Hartshorne
    Applications Engineer
    National Instruments

  • Noise when using NVIDIA HDMI output

    Trying to use audio over HDMI output on an NVIDIA GTX580, using nvidia 331.38, results in the audio transmitted with a large amount of noise on top of it. I'm not sure quite what is helpful to say here, though. Just using ALSA, no PulseAudio or anything.

    Hello, long shot, but...
    Go to System Preferences > Universal Access and down in the Display: section make sure that the Enhance contrast: slider is all the way to left to Normal, or more to the right for less Contrast.

  • When using "create outlines" on type, gradient goes wacky & outlines look strange (InDesign CS6)

    Hi,
    I'm working on a logo in InDesign CS6 where I'm trying to "create outlines" from type I've set so I can have some final artwork to hand over to a sign company. The type has a gradient applied, along with a white stroke added to the outside. When I "create outlines" of the font, the gradient mysteriously changes angle and the white outline around the type no longer connects correctly. Hard to describe, so have a look at the image below:
    The goal is to have the blend and logo look like #1. So, my questions:
    a) how do I "create outlines" of the type and also keep the gradient the same angle as #1? I can manually adjust this using the gradient tool, but this is inaccurate and kludgy.
    b) how can I get the white outlines on the new, converted logo to look like 1 (nicely connected), rather than the mess in #2?
    Many thanks in advance for your help and insight!
    Kris

    @Kris – For getting the outlines right after "Create Outlines" you need some additional steps to merge the overlapping "ogo" part of your logo to one path.
    Maybe what you cannot do is getting the outlines totally right. That will depend of the number of inner forms. For that I recommend Adobe Illustrator.
    What you can do in InDesign:
    1. Release the compound path of all outlined characters
    2. For some paths you have to change the direction of the path and do compound again
    3. Then you can use path finder to add paths together
    And: You'll need a new gradient with a different start/stop point.
    Here some steps illustrating the problem:
    (left the outlined text, right the "live" text)
    1. Gradient applied to the "live" text is different from the converted outlines
    (Outline at left is already postprocessed with the path finder)
    Path situation immediately after the conversion.
    Gradient newly applied with -90° (will not match the original)
    Original gradient applied to outline (will not match original):
    New gradient applied to match original:
    Also look at the position of the outline; now "inner" instead of "middle".
    As I already said, for things like that I'd rather use Adobe Illustrator…
    Uwe

Maybe you are looking for