Counter Coupling

I have a PCI-6602 counter card which I wish to use for a high precision
timing application which involves synchronisation between two counters
generating pulse trains at different frequencies.  For this
purpose I need to couple 2 counters - i.e.  the output of one
counter should be connected to the source of the second one such that
the second counter generates a pulse train using the 1st counter's
output as its  clock/timebase (and hence the second counter's
output frequency is a factor of the 1st counter's). Is there some way
of directly coupling the 2 counters on-board, instead of physically
(externally) connecting the relevant terminals?
Related to this question, can one route a signal onto an RTSI line
using 'route signal.vi', and also read the signal off the same line
(though, to a different destination then where it came from), on the SAME card?
For example, can I route counter 1's output onto an RTSI line and have
it routed to counter 2's source, if counters 1 and 2 are on the same
card? Or does one violate all input/output norms when attempting this?
Thanks for any advice I may get,
Ashesh
Message Edited by Ashesh on 07-04-2006 08:00 AM
Message Edited by Ashesh on 07-04-2006 08:00 AM

Yes, you can definitely route one counter's output up to a RTSI line and then configure another counter to use that same RTSI line as the timebase source.  If the counters are on the same card, you don't even need a RTSI cable inside your PC.  I used this little trick quite a bit with the 6602 under traditional NI-DAQ.  I found it to add helpful flexibility without the need for screwdriver work.
I've switched to DAQmx for new development, and it handles this kind of flexible routing more automatically.  No explicity routing to RTSI is needed.  Perhaps they use the RTSI routing mechanism under the hood, but I don't really know.  If this is a new app, I'd highly recommend DAQmx because traditional NI-DAQ is a bit of a dead-end these days.
-Kevin P.

Similar Messages

  • ACR (LR) and moire suppression with Olympus E-M1

    Hi
    we know that E-M1 support is preliminary, however shall we expect a decent automatic moire suppression further down the line ?
    I was unplesantly surprized to see that literally w/ the first (__FIRST__ that is) raw I shot with my new E-M1 (not counting couple dozens of OOC JPEGs before this one)... moire is the fact of life, however to get it like that was quite irritating.

    yes, it is there, however it is painfull (time/effort wise) to remove moire that way if it is as it seems a very often occurence (going to be) with E-M1... hence I asked about a decent __automatic__ moire suppression...

  • How do I count events falling into three categories?

    Hello everyone,
       My name is Sean Cummings. I am very new to Labview and this is my first post on the forum. I work for a testing facility dealing with automotive components. I run test cells and build parts. I recently commissioned a new test cell at our location which came from another one of our facilities. The test cell impacts axles. The Labview program we use to run the cell was created by one of our few programmers. He is extremely busy and works in another facility so I have taken it upon myself to learn more about Labview and try on my own to make improvements to the software. I plan to attend some of the Core Labview classes if I find that I enjoy working with the software (so far i do).
       Currently the program is mostly manually controlled. Data paths and controls such as speed are commanded by the operator. There is a 4 second automated cycle in which the Labview VI commands clutches to initate the impact and aquires data from 3 load cells and a speed sensor. Once this cycle is complete the operator must click a button to open a call by reference subvi. The subvi analyzes the impact data and displays a graph as well as several calculated data points. The operator is then required to open an excel spreadsheet and manually enter the data. I created the spreadsheet with conditional formatting to show the operator whether the impact event was within the acceptable range and to track impacts over target, in target range, and under target. Currently each part runs 400 impact cycles and the operator must transfer 6 data points for each impact. In the next couple weeks we will be testing parts going 1640 impact cycles. We need a better solution to make the process more efficient.
       My original thought was to have the subvi populate the excel spreadsheet automatically. After several days of trial and error I was able to speak to a programmer from another facility who explained to me that excel was not not a text based software and my methods would not work without the Labview excel toolkit.
       I then talked to the engineers within my company and they agreed with me that the excel spreadsheet was not necessary if Labview could track the impact events internally. I then set to work trying to create counters and indicators to track the impact events. For this to work I only need to look at one number. This number is the Total Output Torque from the impact event. I created 3 boolean indicators on the main VI. One for impacts over target, one in range, and one under target. I also created 3 corrosponding indicators to show counts for each. I also need an indicator showing total impact events, and an indicator showing valid impact events (the sum of in range and over target).  I use a control for the target . The range is + or - 5% from target. I have done my best to research and try to do this myself, but I can't quite get it right. I am using while loops to count. I encounter problems with multiple counts for the same event. I would also like to trigger the counters at the same time and not have separate stop commands for each.
       For this to be effective I will probably have to make these functions a subvi. I would need them to initiate when the call by reference "analysis" subvi is called and stop when it stops so maybe they can just be part of that subvi.  I need the indicators and control for target to be on the main UI. I also need a button to reset the counts when impact direction and target is changed.
       I apologize for any misuse of terminology. I also apoligize if my program is a mess. This is all very new to me and I'm trying to learn as much as possible. Thanks you all in advance for your help.
       -Sean-
    Solved!
    Go to Solution.
    Attachments:
    Impact Counter_2.vi ‏16 KB

    Wow! Thank you guys for the quick response and pointing me in the right direction!
    Altenbach, your example does exactly what I need! 
    Moving forward I should be able to reference the actual total torque number from the call by reference subvi and have the event structure initiate based on the change of that number correct?
    I tried something like this already and for some reason when I add a terminal to the terminal pane on the subvi it does not show up on the main vi. I can only imagine this is because the sub vi is "call by reference". The subvi already outputs an indicator to the front panel of the main vi called "total torque". This is inside a case structure so I don't know how to reference it for the subvi which you created.
    Again, I just want to say I am very thankful I am for the help. I am not here looking for free programming help. I am here asking questions because I truly want to learn. I know I will have to spend a lot more time reading tutorials and practicing basics. This program was just given to me last minute and I'm doing my best. Usually I am very resourceful and can find solutions on my own. This one was just over my head. Thank you.
      -Sean-
    Attachments:
    Impact Tester Main_03.vi ‏245 KB
    ITS_Data Graphs.vi ‏567 KB

  • Mail hang with multiple pop accounts and invalid new mail counter

    All
    More than a year ago, I migrated all email accounts from Outlook to Apple Mail using O2M application. I have 2 pop accounts and gmail account. Everything worked fine for a few month but then Mail started to hang during message receiving. It did so very often (4/5 times). When it does, nothing will revive it except a "force quit".
    I tried to fetch email from each account individually, that worked well every time. After I was sure that it has to do with getting new mail simultaneously, I tried everything to fix it. I tried to reconstruct all the mail boxes, I tried using only 2 boxes with all combinations (1 pop 1 gmail, 2 pop, etc) but nothing worked.
    I even tried to export all my mail boxes, then delete everything from Mail then reimport them with no luck.
    In addition, a couple of months later, my "Inbox" new mail counter started to sometimes displaying the wrong new mail count. It displays 2-4 new messages while there is none. In order to be sure, I created a smart mail box to have only new mail and it had none. By simply switching to any other folder then returning back to Inbox solves the problem.
    Can any one help?

    Make absolutely sure that your email addresses and configuration are correct. In nearly every case I've encountered, this is the problem.
    If you've confirmed this, make sure you're configured properly on your webmail account, if you have one. Webmail is something like ATT, the source of your internet.
    If you're still flummoxed, play hardball. Make sure you have all your current account info and passwords, and delete them in Mail/Preferences/Accounts. Then, reenter them one by one until they're perfect. This makes sure your settings are consistent and correct.

  • How to count number of NI digitizers installed [NI-DAQmx Base]

    I'm the author of a cross-platform scientific data acquisition/analysis program (C++ using Qt: Windows and OS X). I'm just getting started on adding support for NI digitizers. It's tougher than I was expecting - there's so few helpful code examples. On Mac OS X I'm stuck with NI-DAQmx Base. I'd be very grateful if someone could help me with a couple of basic questions...
    1) How do you determine if the computer has an NI digitizer installed?
    1a) Is there a way to count the number installed?
    2) How do you synchronize things so that the input and output streams start at the same sample point?
    Thanks,
    John.
    Dr John Clements
    Lead Programmer
    AxoGraph Scientific

    Hi John,
    DAQmx base does not have property nodes, therefore we cannot
    programmatically determine information about the cards. We typically refer to
    our high-speed scopes (51xx series) as digitzers, in which case, there are no
    drivers for MAC. Our other DAQ cards, E-Series (60xx) and M-Series (62xx) work
    with DAQmx base according to the readme.
    If you are using a DAQ card, I would like a bit more clarification about question 2. When you say start at the same sample point, do you mean start simultaneously so that the input and output start at the exact same point in time? If so, I may suggest triggering them both off of the same digital line.
    David L.
    Systems Engineering
    National Instruments

  • Counter counts twice as many edges as it should, but correct frequency. Why?

    Hi everyone,
    I am using a PCI 6122 (S Series, DAQ-STC) and Labview 7.1 on a Windows XP.  There are only two counters on this card (Ctr 0 and Ctr 1) and I need to use both of them to count edges.  While testing the counters, I am inputing a TTL signal of 10kHz to the Gate of each counter, to be used as an external sample clock, and a 20Hz TTL signal into the Source of each counter, to be used as the input signal.  Ctr 0 counts 40 edges per second, i.e. twice as many as it should, while Ctr 1 is reading the correct number of edges, i.e. 20 edges per second.
    The strange thing is that when I switch the connections of Gate and Source for both counters to measure the frequency (or period), both counters read the correct frequency, i.e. 20Hz.  To the best of my knowledge, both counters were reading the
    correct number of edges a couple of weeks ago.  Also, I have reset the
    device several times but it does not make a difference.  I am trying to figure out why this is happening and how to fix it, but I am no closer to answering either question.  Does anyone have any suggestions?
    Thanks.
    Solved!
    Go to Solution.

    After many tests on my own and after speaking with a NI engineer and repeating some tests over the phone, it seems like there is something wrong with the (one) counter on the board.  I have sent it back for repairs (thankfully, it was still under warranty . 
    Message Edited by DanceWiz on 09-15-2009 09:58 AM

  • What am I doing wrong with this filter (counter/frequency issue), probably another newb question.

    I extracted the part of my VI that applies here.  I have a 6602 DAQ board reading a counter for frequency, using a Cherry Corp proximity sensor.  Getting a lot of noise and errant ridiculously high readings.  Speed of shaft which it's measuring is currently 2400rpm with one pulse per revolution so 40hz. 
    Trying to use the express filter VI to clean up the signal and ignore anything over, say, 45hz and under 35hz.  No matter what setting I choose I continually get the  20020 error, Analysis:  The cut-off frequency, fc, must meet:  0 <= fc <= fs/2.  I know this relates to sample period somehow, but for the life of me I can't understand what I'm doing wrong. 
    I used this VI without filtering on bench tests with a hand-drill and got perfect output every time.  Now it's on the machine and being erratic.  Any help here will ease my stress level significantly, thanks.
    VI attached
    Still confused after 8 years.
    Attachments:
    RPM.vi ‏92 KB

    Hello Ralph,
    I'm not sure about mounting your sensor to your rig, but I can provide a couple ideas about the filtering. Depending on the type of noise, the digital filters on the PCI-6602 could help eliminate the behavior you are seeing. If the noise manifests as a "glitches" or a bouncing signal, you could use another counter with a minimum period to help eliminate the noise. This concept is discussed in greater detail in this KnowledgeBase. I noticed that you are using NI-DAQmx; the practical application of the digital filters on the PCI-6602 in NI-DAQmx is discussed in this KnowledgeBase. A more detailed description of the behavior of these filters is provided in the NI-DAQmx Help (Start>>All Programs>>National Instruments>>NI-DAQ) in the book entitled "Digital Filtering Considerations for TIO-Based Devices".
    I also wanted to comment on your original post and explain why you were receiving error -20020. For convenience, I have copied the text of the error code below.
    Error -20020 occurred at an unidentified location
    Possible reason(s):
    Analysis:  The cut-off frequency, fc, must meet:  0 <= fc <= fs/2.
    I think you may have misunderstood exactly what the Filter express VI does. The Filter express VI takes a series of values in a waveform and performs filtering on those signals. So, it will look at a waveform made up of X and Y values and apply the defined filter to this waveform. Specifically in your application, the cut-off frequency (fc) is the Upper Cut-Off level that you specified in the Filter express VI; any frequency components of the waveform outside of the range you have defined will be filtered. The fs is the sample rate based on the data that you wire to the Signal input of the Filter express VI. In your VI, this data is coming from the DAQ Assistant. So, fs will be the sample rate of the DAQ Assistant and is associated with the rate at which points are acquired. The sample rate does NOT relate to the bandwidth of the signal, except that the Nyquist theorem tells us that the sample rate must be at least twice the signal bandwidth in order to determine periodicity of the signal. So, in this case, the sample rate of the DAQ Assistant would need to be at least double the high cut-off frequency.
    However, you are performing a frequency measurement using a counter. I think this is where the confusion comes in. For the frequency measurement using a counter, the DAQ Assistant returns a decimal value which represents the rate of the pulse train being measured by the counter. It does not return the actual waveform that is being read by the counter. It is this waveform that would be band-pass filtered to eliminate frequency content outside of the filter's bandwidth. Instead of the Filter express VI, I would recommend that you simply discard values that are outside the range you specify. I have modified the code you posted earlier to perform this operation. The image below shows the changes that I made; rather than using the Filter express VI, I simply compare the frequency to the "Low Threshold" and "High Threshold". I use a Case structure to display the value on if it is within the limits. Otherwise, I display a "NaN" value. I have also attached the modified VI to this post.
    Message Edited by Matt A on 09-04-2007 07:58 PM
    Matt Anderson
    Hardware Services Marketing Manager
    National Instruments
    Attachments:
    RPM (Modified).JPG ‏17 KB
    RPM (modified).vi ‏72 KB

  • Safari 5.1.5 (Windows) RSS unread count no longer working

    With the previous version of Safari under Windows 7(SP1) the 'unread count' for the RSS feed bookmarks were only updated when Safari was restarted. This was bad enough, but now with Safari 5.1.5 they don't appear at all.
    I've even gone so far as removing every bit of Apple software (Safari, iTunes, iCloud, Mobile Me, Bonjour etc), removed all data in the user profile, rebooted a couple of times and completely reinstalled Safari iCloud and iTunes but still not working.
    I've been Googling about it but I couldn't find much about it, only confirmation of my previous problem (the need to restart Safari to update the counts)
    Am I the only one with this problem? Any suggestions?
    Thx, Tim

    @sean0826 -- this is why you don't use Java menus. Even javascript menus are a bad idea; you need to have a secondary menu system ANYTIME you have a menu system that requires a plugin or scripting to be active. NOT EVERYONE browses with that stuff on.
    The only thing you can do for now is FTP to your site and add in static menus (like we did in the "old days" at the bottom of the page; or rip out the Java Menus and install static or CSS versions.
    BTW where are you rmenus supposed to be. I have opera, safari, ff, and a few others. they all look the same. So if that's true, it's the plugin that's the problem, not safari.
    In Opera Pogo.com works. java loads, the game is there. It does have some drawing issues but not surprised.
    In Safair Pogo works fine. Just played a game of chess.

  • Can I get my music collection (play counts and playlists inc.) from my iPad to my PC?

    I had a problem with iTunes where I couldn't add songs to the library because I didn't have sufficient permissions to edit my iTunes library (even though I did). After a few days of tweaking administrator permissions and the like, I got really annoyed and tried re-installing iTunes to see if it would make it go away. Whilst the iTunes64Setup.exe file was downloading, I was fiddling with the .itl and .xml files in my iTunes folder and when I re-installed iTunes I had lost all my play counts and playlists. When iTunes opened, I assumed it must have overwritten the two files because when I looked at them in Windows Explorer they were both a lot smaller in size.
    Obviously, I didn't sync my iPad or iPhone after this had happened, so I still have the playlists and play counts stored on them. Is there any way I can:
    a) Recover a previous version of the .xml and .itl files on my laptop and use them to restore my plays?
    or
    b) Use iTunes Match to restore them onto my laptop?
    I'm not sure about b). When you subscribe to Match, does it analyze your current library and then save it to the Cloud so you can redownload it?
    I'm going to buy the new iPhone when it is released in the next couple of months so I'm willing to jailbreak my iPhone 4 if need be.
    Thanks for any help.

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    Or see Recover your iTunes library from your iPod or iOS device.
    tt2

  • Home Hub 3 (A and B) Lost Count...

    Hi all,
    HH2 vs HH3
    could someone please shed some light on the quality differences of these two hubs?
    I'm, interested in the WIFI quality, stability, etc.
    I have lost count of how many routers I have had from BT. When BT receive my call and start with "How can I help you?" I replay "Please have a look at the logs on my account and let's take it from there".
    After that they always treat me as I'd like to be treated, not letting them go through their script. Anything they could through at me to try out I surely will have tried before calling them.
    At least this is working at BT!
    What isn't working are their routers. Since day one I had problems with these. My initial was a "B" type and then all others were type "A".
    they now don't want to send me another "A", but a HH2.
    Well that's going backwards, which isn't alwasy accepted easily I would say, but I'd rather do that than knowing that the next hub will with luck work for a couple of months before the WIFI starts going bonkers again.
    Anyone having the same experience with Infinity, BT replacing the HH3 with a HH2?

    Hi Spicey,
    Our house about 30 years old, has solid internal walls - and we've never had a good wireless signal, even with HH1 - the old white one. I've installed my own ethernet network around the house - rather than having the master socket moving (possibly an expensive job), could you run some ethernet cable to a convienient position, and then connect your HH3A as a wireless extender?
    The "slave" hub just needs to be given a different IP address, has the auto IP address allocation switched off and some also suggest turning off the firewall (only on the slave!!!). I used my old HH2 hub in this way (to enable daughter to connect her ipod upstairs via wireless) , although I didn't switch off the firewall and it seemed to work OK.
    Michael

  • Problem with syncing count of plays with itunes

    Hi everybody,
    Recently I lost my laptop (it has been stolen). Also i lost all data on harddrive including itunes libary. Thing is, all my music was on iPhone. Some of albums I bought in iTunes store, some of them imported from cd's. There was lots of stuff. When I bought another laptop, and connected my iPhone it says all data will be deleted from iPhone and replaced with data from itunes library. So I didn't want to do this, because i don't want to loose my count of plays, my playlists, etc, btw it would take ages to import all this music again, not mentioned about albums from itunes store!
    So i found this program - SHAREPOD - it helped me to copy all this data back to the computer, I copied that to iTunes Media folder and everything is in iTunes, so that's fine (apart from couple missing album artworks). But now, when I try to sync my iPhone with iTunes, it says the same message - all your data will be repleaced with itunes library. But I don't want it to repleace that, I just want to sync iPhone with that library. I really want to keep my count of plays for every song.
    Btw. the same problem is with programs, it wants to repleace that with itunes library, I've got more than 100 apps, most of them paid and i don't want to loose them, but I want it to work exactly the same as it worked previously.
    For me it's a really huge issue, that basically sync works only one way...
    Please help.

    You will have to sync and with any luck it won't try to re-sync all your music. In iTunes if you right click on your phone under the devices list you can select "transfer purchases" and that will move all your apps to iTunes.
    TuneUp companion is a great program that runs along side of iTunes that will fix all your track info and put the album artwork in the info.

  • Using a Counter to error-check External Sample Clock

    Hi all,
    I am newish to labview and am working on a data acquisition project. I've managed to get the basics under control, but here's my situation and question...
    -- I am using the S-6123 card to capture and record data on two or more AI channels.  I am using a rotary encoder to generate a pulsetrain that I am using via PFI0 as the sample clock for recording the AI data.
    -- This rotary encoder gives 720 pulses per revolution and an index pulse once per revolution.
    -- In my data acquisition, I am pulling 1440 samples at a time with the DAQmx "read" function.
    I have been experimenting with counters and can get the RPM out of the pulse trains well enough, however I was wondering...
    Is there some way to use the 2 counters on the card (and signal routing of the two pulse trains) to double-check that the 1440 samples I take correspond to two exact revolutions, and that I'm not getting ahead of or behind the rotation of the encoder due to missing clock pulses or reading false pulses. I have a couple of ideas on how to attempt to do it, but to me they don't seem very reliable or efficient, so I thought I'd put it to the experts to point out of there is a more obvious way of doing it.
    I have attached a pdf of the specifications of the encoder family, the pulses that will be output are on the right hand side of page 2.
    With many thanks in advance,
    Peter
    Message Edited by mumech on 07-22-2008 01:05 AM
    Attachments:
    REncoder Specs.pdf ‏312 KB

    Thanks very much for your reply. I had come across the use of counters with angular encoders but hadn't quite thought of the concept in this way.
    I will have to experiment a bit over the next day or to see what this is capable of, the examples seem quite comprehensive, however I'm not sure if I will run into issues due to the fact that I am using the rotary encoder as the sample clock for my analogue data.
    Would I indeed be able to compare these values (ideally check the position of the encoder after each set of data acquisition) without a "third party" sample clock common to both? (which isn't appropriate for this application)
    If I was only running at low speeds, I might be able to implement this by simply checking the position of the encoder after each read of the data. However, at higher speeds there might be synchronization issues due to the buffering of the analogue data. So when getting the measurement from the encoder counter chances are the analogue data was acquired at an earlier time.
    I know I haven't worded this very well, but how might I synchronise this error checking method?

  • Messages won't display unread count

    Since the last update the unread count on the icon will not display. Anyone have any ideas? It's turned on in the notifications centre.

    Hi,
    That does seem odd.
    I mentioned the Containers things as this is the Read and Write route that the app uses (normally to the aliases in the /Data/Library/Preferences that pints to ~/library/Preferences)
    I also looked in those places but for IDS, SOAgent and IMAgent that are also involved but no luck.
    On your Console Location for the Var Stuff I have this
    See Path Bar across bottom. This pic of Dec 1st I had to open in Preview.
    A Different view if it helps
    I am not sure what to suggest at this point.
    8:28 pm      Tuesday; December 9, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Distinct Count doesn't return the expected results

    Hi All,
    I was fighting a little trying to implement a Distinct Count measure over an account dimension in my cube. I read a couple of posts relateed to that and I followed the steps posted by the experts.
    I could process the cube but the results I'm getting are not correct. The cube is returning a higher value compared to the correct one calculated directly from the fact table.
    Here are the details:
    Query of my fact table:
    select distinct cxd_account_id,
              contactable_email_flag,
              case when recency_date>current_date-365 then '0-12' else '13-24' end RECENCY_DATE_ROLLUP,
              1 QTY_ACCNT
    from cx_bi_reporting.cxd_contacts
    where cxd_account_id<>-1 and recency_date >current_date-730;
    I have the following dimensions:
         Account (with 3 different hierarchies)
         Contactable Email Flag (Just 3 values, Y, N, Unknown)
         Recency_date (Just dimension members)
    All dimensions are sparse and the cube is a compressed one. I defined "MAXIMUM" as aggregate for Contactable Email flag and Recency date and at the end, SUM over Account.
    I saw that there is a patch to fix an issue when different aggregation rules are implemented in a compressed cube and I asked the DBA folks to apply it. They told me that the patch cannot be applied because we have an advanced version already installed (Patch 11.2.0.1 ).
    These are the details of what we have installed:
          OLAP Analytic Workspace       11.2.0.3.0 VALID
          Oracle OLAP API 11.2.0.3.0 VALID
          OLAP Catalog 11.2.0.3.0 VALID
    Is there any other patch that needs to be applied to fix this issue? Or it's already included in the version we have installed (11.2.0.3.0)?
    Is there something wrong in the definition of my fact table and that's why I'm not getting the right results?
    Any help will be really appreciated!
    Thanks in advance,
    Martín

    Not sure I would have designed the dimensions /cubes as you,  but there is another method you can obtain distinct counts.
    Basically relies on using basic OLAP DML Expression language and can be put in a Calculated Measure, or can create two Calculated measures
    to contain each specific result.  I use this method to calculate distinct counts when I want to calculate averages, etc ...
    IF account_id ne -1 and (recency_date GT today-365) THEN -
    CONVERT(NUMLINES(UNIQUELINES(CHARLIST(Recency_date))) INTEGER)-
    ELSE IF account_id ne -1 and (recency_date GT today-730 and recency_date LE today-365) THEN -  
    CONVERT(NUMLINES(UNIQUELINES(CHARLIST(Recency_date))) INTEGER)-
    ELSE NA
    This exact code may not work in your case, but think you can get the gist of the process involved.
    This assumes the aggregation operators are set to the default (Sum), but may work with how you have them set.
    Regards,
    Michael Cooper

  • ITunes and iPod song counts not matching

    I have just done a restore on my iPod Classic 160Gb, after recently reformatting and re-installing everything on my Mac Pro. Everything works fine, no problems.
    However, if I check in my iTunes Library, it says I have 41153 songs,
    in the iPod panel of iTunes it says I have 41427 songs, and
    on the iPod display itself it says there are 41085 songs on the iPod.
    I have sent iTunes to sync all music, and cannot understand why all three figures are not the same, especially the last two which are supposedly measuring the same thing. With a library this size it is almost impossible to find out which songs are not on the iPod or are being counted more than once.
    Does anyone know how to resolve this?
    Message was edited by: David Roper

    Hey there,
    There are a couple of things to check.
    1. Make sure that if you have your iPod set to sync all checked songs and videos that each song in your iTunes library has a check mark next to it. To make sure, hold down the control key and click on one of the check marks next to a song. This may remove all of them, so you might have to do this twice to check all of the songs.
    2. Make sure that you have no duplicates in your library because duplicates will not sync over to your iPod. To check this, head to the File drop down menu and choose "Show Duplicates."
    3. Are there any error messages that appear when you are syncing the songs over to your iPod? If so, that may explain the difference in numbers. The error message may range from a missing file that iTunes could not locate or the song could not be copied over because it cannot be played on this iPod, and more.
    Work through each of these and see if that helps.
    B-rock

Maybe you are looking for

  • Update vendor payment terms

    Hello I have a requirement to have the same values for vendor payment terms in purchasing view and accounting view. I found this topic which works only with transaction XK01 & XK02 Wich user-exit  for Creating Vendor I must use? How make it work with

  • Problem in Importing Transport Package in Quality

    Dear All, I had created an Transport Package on Development Server of EP. That transport package has got three ivews and one work set and two role. I downloaded that Transport package  ".epa" file on my local machine. I tried to Import that ".epa" fi

  • Getting junk letters instead of photo in an email.

    hi all i am trying to send an email via gmail.com i am able to send an email but when i try to send attachment so i am getting strange texts instead of photo its not displaying photo but there is different format text is displaying in my box. here is

  • Some Questions on Import/Export using SQL*Plus

    Could somebody help me by answering the following queries? I couldn't find the answers in this forum or the User Guide. 1. Can we create an application or page export without using the web front-end? E.g. Call some pl/sql, get a file on db server...

  • How to not store messages on the server...

    I almost never used my mac webmail. And I justr ealized I've got like 20,000 messages and all of my space is used up. The thing is I've got a copy of all of these on my machine. So how do I get mail to just move the stuff to my machine and delete off