Counter Questions Using PCI6602

I have a couple of questions regarding the operation of the PCI6602. I am programming in VB.NET.
Can you have multiple tasks that each correspond to one Counter Input Channel being used at the same time (i.e. trying to read a small angle inside another larger angle using encoders)?
Is there any way to setup a trigger based on a counter count value (i.e. once the count value hits 180 degrees raise a digital bit)?

Justin,
You cannot have two tasks running simultaneously that are using the same counter input channel. You can, however, connect the same signal to two of your counter channels and have two tasks monitoring the two different channels.
As far as triggering off of a counter value. The best that you can do is a software trigger. In DAQmx, in LV 7.1 you can do a timed loop that waits for the event to occur (i.e. counter reaching a value). I am not aware of this implementation in VB, but it is still nothing more than a fancy software trigger. You would need to poll the counter and then run the DIO task when it reaches its value.

Similar Messages

  • Frequency counter unreliable using rotary vane anemometer

    I have set up an anemometer to measure air flow speed, with the signal being acquired by a 9402 module in a cDAQ-9174 chassis (4 slot). I am using Signal Express 2011 to program the instrument.
    I have set up a frequency counter task, using a maximum frequency of 1.8 kHz a minimum frequency of 250 mHz, rising edge and 1-counter (low frequency). The output is scaled using y = 0.0111x + 0. This gives 20 m/s when the frequency is 1.8 kHz.
    The readings given by Signal Express give a very noisy signal, at a frequency much higher than the bandwidth of the anemometer. The range is in the order of 20% of the mean. I have attached a PDF of the signal, for two different air flow sources, the seproj file and the tdms file for one of the runs. I have also observed that the counter output is rounded to the nearest multiple of 10, e.g. 490, 470, 480, 480, 470, etc.
    Is this consistent with a digital bounce issue? Is this consistent with an earthing issue? Is this consistent with a sample rate issue? Any other ideas for investigating this issue?
    thanks
    Attachments:
    EXPT 20 - ANEMOMETER NOISE.pdf ‏49 KB
    EXPT 20 Anemometer Noise.seproj ‏637 KB

    I have logged the voltage signal coming from the anemometer, using our 9239, a report of a few cycles is attached as a PDF. The graph clearly shows a small digital bounce. The noise is small compared to the signal, is there any way it can be filtered when acquired by the 9402?
    Other tests that I ran showed a background noise in the order of 50 microVolts and a frequency of 50 Hz, this is very likely a background noise from a power supply (we run at 50 Hz in Aus) but is many orders of magnitude smaller than the signal, I assume it would be ignoredby the 9402.
    Attachments:
    EXPT 20 Anemometer Noise Voltage.seproj ‏261 KB
    EXPT 20 Anemometer Noise Voltage.pdf ‏19 KB

  • Doing Buffered Event count by using Count Buffered Edges.vi, what is the max buffer size allowed?

    I'm currently using Count Buffered Edges.vi to do Buffered Event count with the following settings,
    Source : Internal timebase, 100Khz, 10usec for each count
    gate : use the function generator to send in a 50Hz signal(for testing purpose only). Period of 0.02sec
    the max internal buffer size that i can allocate is only about 100~300. Whenever i change both the internal buffer size and counts to read to a higher value, this vi don't seem to function well. I need to have a buffer size of at least 2000.
    1. is it possible to have a buffer size of 2000? what is the problem causing the wrong counter value?
    2. also note that the size of max internal buffer varies w
    ith the frequency of signal sent to the gate, why is this so? eg: buffer size get smaller as frequency decrease.
    3. i'll get funny response and counter value when both the internal buffer size and counts to read are not set to the same. Why is this so? is it a must to set both value the same?
    thks and best regards
    lyn

    Hi,
    I have tried the same example, and used a 100Hz signal on the gate. I increased the buffer size to 2000 and I did not get any errors. The buffer size does not get smaller when increasing the frequency of the gate signal; simply, the number of counts gets smaller when the gate frequency becomes larger. The buffer size must be able to contain the number of counts you want to read, otherwise, the VI might not function correctly.
    Regards,
    RamziH.

  • Interactive questions using IP/TV

    I am interested in how users can post questions using IP/TV while the presentation is ongoing. What is the process behind this as I don't really see how it works, any kind of insight would be useful.
    Many thanks Alex

    When you set up the program, you can (or not) enable interactive "from the field" questions.
    The client provide a button that can be pressed to flag the presenter that a field question is pending.
    The presenter can then address the questions as possible.
    Depending on the scope and location of the audience, you may also consider bringing up a conference bridge for voice-based questions.
    Good Luck
    Scott

  • Creating multi counter plan using LSMW

    Hi,
    I am trying to create multi counter plan (transaction IP43) using LSMW. I am using direct input object 0460 for creating it. Object has IBIPMPLA structure as header. How can i pass multi counter data in it ? Problem is line item level values like 'Maintenance cycle' (ZYKL1) are at header level structure IBIPMPLA.
    Anyone has cretaed multi counter using this object, please help me with it.
    Thanks,

    Hi,
    creating multi counter plan using LSMW
    Try this link,
    http://www.sapfans.com/forums/viewtopic.php?f=7&t=217834&p=1059434
    It will helps to you.
    Regards,
    Sekhar

  • Is this now where to ask DVD Studio Pro questions?  If not, please let me know where.  Here's my question:  Using DVD Studio Pro 3, when trying to burn a disc which is 4.5GB, I get error message "Not eough disk space in target folder".  What to do?

    Is this now where to ask DVD Studio Pro questions?  If not, please let me know where.  Here's my question:  Using DVD Studio Pro 3, when trying to burn a disc which is 4.5GB, I get error message "Not eough disk space in target folder".  What to do?

    Thanks.  Unfortunately, I need to make a master DVD that can then be duplicated in bulk as a single layer disc.  This surprises me because I tried burning a different DVD project that has worked in the past which is also 4.5 GB and now I could not burn that either.  I also reencoded some material to get the new project down to 4.4 GB but it still would not burn.  Any ideas are appreciated.

  • HT5312 i could not follow anything, it needs to be clearer, and i all i wanted was to find the answers to my questions, you told me how to make an itunes account. and i'm pretty sure the questions used to be "first teacher" and "favorite teacher"not partn

    HELP i just could not figure out how to find the answers to my security questions, and i do believe that the questions used to be "who was your first teacher" and "who was your favorite teacher" but now the second one is "where did you and your partner go on there first trip together, so now i'm wondering if i dont even have the answers anymore! why, have you changed the questions, and i really am having trouble following the help pages. i need help, it wont let me buy any songs or apps, so i've been saving the links and names to songs.

    We are fellow users on these forums, you're not talking to Apple or iTunes Support.
    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then steps 1 to 5 on the page that you posted from should let you reset them : go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account, then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use.

  • Regarding the count(*) while using with table alias

    Hi,
    I have question in Count(*). Will it work with table allias.
    It works when I use like below
    "select count(*) po_header_id from po_headers_all" -- its working perfectly
    but , when i queried like below its not working,
    "select count(*) poh.po_header_id from po_headers_all poh"
    I like you guys to clarify my query.
    Thanks in advance.
    Regards,
    Uvaraja

    the words you write just after a column or an expression or a function will become an ALIAS and aliases don't have any table or scheme.
    select count(*) RRRR from mytable;RRRR is an alias in this example. maybe you have a column called RRRR in the table but this is not it. so you can not put your table name as prefix to it. mytable.RRRR will indicate the column not alias. if it doesn't include a dot, it could be used as alias but dot is violating naming rules.
    you could do that:
    select count(*) "mytable.RRRR" from mytable;now, "mytable.RRRR" becomes your alias.

  • Multiple counter input using NI 6602

    I am using NI-DAQmx to write a VI  that will read 10 pwm measurements using 10 counters on 2 NI 6602 PCI interfaces.  It is my understanding that I must create a task for each respective counter.  I have attempted to implement a for loop to accomplish this, as shown in attached VI draft.  As it stands the VI will not write any data to file.  I suspect there are multiple errors in the VI.  I would ask if anyone could take a look at the attached VI and perhaps provide some insight?
    Saul LaCoursiere
    Attachments:
    MelexisMODdraft2.vi ‏41 KB

    Hi Saul,
    It looks like you had a subVI "Create Header" which needs to be included to run, so I deleted all of the report related code.  The Counter portion ran fine.  If you can't get the report generation portion to work, you may want to simplify your code (for example start with a single counter task) and build up from there.
    Please repost if you have further questions.
    Thanks,
    Luke
    Applications Engineer
    National Instruments

  • How to use PCI6602 4-5 cards run simultaneous via RSTI?

    I use them as a simple event counter all of them must start and stop count at the same interval of time.
    Now I write my VI as attachment,I already have RSTI bus,but don't know how to use it.
    Every one who know please help.
    Attachments:
    PCI6602 Count(4card 32CH) R8.vi ‏345 KB

    Hi credo,
    First here's a few comments on what I see in your vi:
    1. The loops to configure the counters are the right idea. You need those 32 distinct task id's to perform 32 channels of counting. You've already gotten over one key hurdle!
    2. There's quite a bit of duplicated code to handle each of the 4 boards separately. You could make sub-vi's out of these code chunks and clean up your diagram considerably.
    3. You're programming the counters for "simple" (unbuffered) event counting but are then reading them as though they are buffered. This won't work.
    I can't tell whether you need buffering or not. It doesn't look like you are trying to use most of the buffered data. However, buffering *can* still help make sure that all the counter values you read represent the same instant in time. Can you describe your needs more exactly?
    4. If you buffer the reads, you'll need to supply a "Gate" signal, i.e., a sampling clock. If you can spare a counter to generate one, then this alone can synchronize all your readings. Otherwise, you'll also need to configure all the counters to start on a digital trigger.
    5. You've got some issues with dataflow, local variables, and race conditions. For example: inside your big loop you read from the D1,D2,D3,D4 local variables to create a graph and stuff. However, you don't write new values into those indicators until the inner reading loops end. It is very likely that they will be read before they are written. This would be a good place to simply route wires instead of using local variables.
    That's plenty enough to look into for now. I would strongly recommend that you first try to work out the programming syntax and flow using several counters from 1 board. When you get it working, you can create a sub-vi from it and reuse it for the other boards. Then we can start talking about RTSI...
    One little-known fact about RTSI is that it can actually be handy even when programming a single board under traditional NI-DAQ. I've used it frequently to avoid the need to hardwire connections for timing signals. I'd again recommend that when you're ready to deal with RTSI, that you first try it out on a single board. If it works for 1 it'll work for the others.
    Finally, you may want to consider migrating to DAQmx. Especially if you don't have a lot of code invested into counters under traditional NI-DAQ yet. NI has been nudging us toward DAQmx for quite a while now, and it'll handle the RTSI stuff pretty much auto-magically.
    -Kevin P.

  • Dictionary, Table, Counter Question

    Hi,
    I'm trying to create a special customer table (SE11) with the following fields and have question regarding TYPE etc:
    Fields of table
    CUST_ID    
    CUST_NAME
    CUST_DESC
    1. CUST_ID should work as a counter (increment by 1 every time.) What kind of TYPE should I use ?
    (How do i do the increment stuff...)
    2. CUST_DESC should be able to take approx 5 kb of data and be searchable in WHERE clause. What kind of TYPE should I use ?
    3. Is there any advantages of creating/using Data Element instead of Build-in type ?
    //Martin
    Message was edited by: Martin Andersson

    Hi Martin,
    1. SE11 will help you only to create a table, but not to add any special functionality (as far as i have known) the CUST_ID can be made as counter only by programming. while moving data use a variable to get the previous maximum CUST_ID value from the tabel and increment it before you insert the value into the table.
    2. To give long descriptions declare the CUST_DESC as LCHR or LRAW types, i am not sure whether it will hold 5kb of data. Then searching for a particular word will not be a problem  you can use,
    SEARCH <c> FOR <str> <options>.
    <option> in the SEARCH FOR statement can be any of the following:
    ABBREVIATED
    STARTING AT <n1>
    ENDING AT <n2>
    AND MARK
    can be used to find the required word.
    3. I think this is what you meant -  if a data element is created by a domain, the technical attributes of the domain are inherited by data elements and these domains can be used by any number of data elements, besides you can also create data elements by refering to the existing data elements using 'TYPE'.
    Hope this helps.
    Regards,
    Kathirvel

  • WSA / CWS Licensing count question.

    Hello,
    I have a question how WSA and CWS are licensed based on the number of users.
    Is it based on concurrent or named users, active sessions based on source IP address or another way? This old post mentions concurrent users but based on a legacy ironport ordering guide. And that document does not mention any licensing methods.
    https://supportforums.cisco.com/message/3949429
    However for CWS i found this post:
    https://supportforums.cisco.com/message/4003674
    For the sizing it mentions: "It will be total number of CWS users, not concurrent users". Sizing is nog licensing, but the CWS datasheet mentions "The Cisco Web Security portfolio uses tiered pricing based on the number of users".
    I believe there are licenses allowing mixed use of CWS and WSA in combination with the free Virtual Applicances. Is this correct and how does this reflect on my question regarding user licensing?

    Hi,
    It's based on the number of named users, however there is no absolute way to count the users so it's a trust thing too and you should be honest about how many users you have.
    Thanks
    Chris

  • A question using category

    Hi,
    this is a class which is a category of NSDictionary
    @implementation NSDictionary(MutableDeepCopy)
    - (NSMutableDictionary *)mutableDeepCopy {
    NSMutableDictionary *ret [[NSMutableDictionary alloc] initWithCapacity:[self count]];
    NSArray *keys = [self allKeys];
    for (id key in keys) {
    //the value associated with the given key
    id oneValue = [self valueForKey:key];
    id oneCopy = nil;
    if([oneValue respondsToSelector:@selector(mutableDeepCopy)])
    oneCopy = [oneValue mutableDeepCopy];
    else if([oneValue respondsToSelector:@selector(mutableCopy)])
    oneCopy = [oneValue mutableCopy];
    if (oneCopy == nil)
    oneCopy = [oneValue copy];
    [ret setValue:oneCopy forKey:key];
    return ret;
    @end
    For this piece of code, i have several questions.
    1) in "for (id key in keys)", i know this is a fast enumeration. What is i keyword "id" in here mean?
    2) for "oneCopy = [oneValue mutableDeepCopy];", mutableDeepCopy would be the method that oneValue is calling, so this means this will call method "mutableDeepCopy" in "mutableDeepCopy" method. This means this method is mutableDeepcopy right?

    'id' means identifier for an object. You can think of it much like 'void *' being a generic pointer to some data. 'id' is a generic type for a reference to an object. If all objects were descendants of NSObject, then you could say 'typedef NSObject * id;', but you can't because not all objects are derived from NSObject. Instead, you get the keyword 'id'.
    As for calling 'mutableDeepCopy' inside 'mutableDeepCopy', that's perfectly valid. The loop is iterating over all the items in the dictionary. If the item is an object that responds to mutableDeepCopy, it uses that to make a copy. Ergo, if you copy a container, you copy each object in the container. Note that it's calling the function on an object in the container, not the container itself.

  • Apex_application.g_fxx.count Question (problem?)

    Do the apex_application.g_fxx variables need to be shown on the page (region) in order for apex_application.g_fxx.count to return a non-zero value?
    I'm trying to figure out why I spent a day trying to get something to work, and it seems like this is what it was, though I'm not quite sure.
    In my report region, I have a column that when shown, my process works correctly, where a loop that has the form of:
    FOR i IN 1 .. APEX_APPLICATION.g_f16.COUNT
    LOOP
    This performs the statements within the loop.
    However, if that column is not shown (under Report attributes, unclick the Show box), then the process does not seem to execute the statements inside the loop.
    The only thing I can think of is that when it's marked as not shown, then the COUNT has no value, even though it seems like it should. Does COUNT only return the count of displayable items in the column, so if it's not shown, it's zero?
    It also may be how the report region is defined as well I suppose. It seems like ApEx should understand it okay, but who knows. It's simply a join of two inline views, so I can pre-populate the region with values from another table if this table didn't have any entries.
    This is Apex 2.2.1.00.04. One of these days I'll get caught up enough to upgrade to 3.0.
    Thanks,
    Bill Ferguson

    Hi Patrick,
    I suppose I also should have stated that this is a manually generated report region, using the apex_application.[item_type] syntax, where I have to specify the array (item) number. I just tested with Firebug, and if I change the number of the second column to 22, it's shown as f22 instead of f02.
    g_f16 was the next to the last column, though the one after it is a hidden column (apex_application.hidden).
    My report region is such, that g_f03 andg f16 are the only columns I can verify will actually have some data in it, as I force a value into gf16 if the second half of my union is selecting null values, so I could get around the null sorting problem (NULLS LAST didn't work, even on 10gR2, so I'm doing something else wrong).
    Anyway, I can use the values of the columns, whether they are displayed or not, it's just that apex_application.g_f16.COUNT always returned a zero when the column was hidden, even though it consisted of an array of 5 values. Trying to track it down I was able send the value of the column to a logging table, so I was able to see that I was getting the values, just not the count of values.
    Bill Ferguson

  • Very simple question: using XWS to generate static data

    Hi,
    I'm testing interop for JWSDP and a soon-to-be-released RSA Security, Inc. product that will also provide WSS as well as XML signatures, XML encryption, ...
    I have already used JWSDP -- xmldsig -- to generate a bunch of XML docs that were signed using JWSDP (all varieties of KeyInfo, signing algos, ...).
    I need to do something similar for WSS -- using xws-security.
    Do I need a Web container in order to be able to do this? (Again, recalling that all I want to do is generate thousands of encrypted, signed, encrypted & signed, signed & encrypted SOAP messages (using UsernameTokens, X509Tokens, ...))
    Do you have any examples that might save me some time?
    I have looked through all of the examples in the "interop" and "simple" subdirs of the "samples" subdir of "xws-security" and most of these presume that there's some RPC going on, which doesn't really fit the model of what I'm trying to do here. Got any ideas? Even basic ones? Even big ones?
    TIA.
    Liz

    I've kinda answered my own question in part:
    SecurableSoapMessage ssm = new SecurableSoapMessage(soapMessage);
    ssm.setFilterParameter(FilterParameterConstants.BINARY_SEC_TOKEN,new X509SecurityToken(ssm.getEnvelope().getOwnerDocument(),cert));
    ExportCertificateTokenFilter estf = new ExportCertificateTokenFilter();     
    estf.process(ssm);
    ExportSignatureFilter esf = new ExportSignatureFilter(new DirectReferenceStrategy(cert));
    esf.process(ssm);
    that transforms the soap message, adding the wsse xml, then I try to sign it:
    SignFilter sf = new SignFilter(new X509IssuerSerialStrategy(cert));
    sf.process(ssm);
    and this fails saying I don't have a privatekey, which makes sense. I need to create a DefaultSecurityEnvironmentImpl probably, define the key in there and then attach that to the SecurableSoapMessage? The problem is, I have the cert and privake key stored on files, how do I go about loading that into the SecurityEnvironment? Would this SecurityEnvironment handle cert chain validation then, since it can be constructed with a trusted keystore?

Maybe you are looking for

  • Has anyone ever ran Logic using VMWare Workstation on a Windows PC?

    Has anyone ever emulated Mac OS X and used Logic on their x86 Microsoft Windows systems? I was thinking about doing this to use some synths and stuff with some Windows designed software. I'm not sure if it is possible to use both operating systems at

  • Fail to load "/mapviewer/fsmc/jslib/oraclemaps.js"

    I try to see map view in OBIEE 11.1.1.5, after adding Oracle map to mapviewer. After clicking 'Apply' I see the following error exception: Fail to load "/mapviewer/fsmc/jslib/oraclemaps.js" When re clicking 'Apply', the report and the map are display

  • DW/FW questions + general adobe site Q

    Can someone help me with this missing information I have. Is it correct that we can no longer purchase programs on CD?  We can ONLY get a monthly subscription or something to this site in order to get programs?  If that is the case, after we get a su

  • SAP HR Maerial

    Hi  Gurus      Can i get SAP HR training material like siemens please help me out i want to learn PY and PD in depth. lease helpme. Thanks AMEEN

  • Linking Freight charges/installation charges in the catalog item

    Hi CCM/MDM experts, I have a requirement. Please look into it In the catalog can we have installation costs/freight costs attached to an item? When I select the item in the Shopping cart from catalog, it should bring cost of the item as well as addit