counter stuck at zero

Hello

I use LabVIEW 2014 on 64-bit Windows to acquire data of moving a digital coder as follows: linear encoder Renishaw--> NOR 9411 digital in--> cDAQ - 9174--> Windows machine.

I have a VI that records moving to 5000 Hz. He was works well for weeks, but suddenly, change value (i.e. the County) remains stuck to zero any movement there.

Trip data are also used in a feedback SoftMotion loop.  Which works very well.  I use same SoftMotion commands to create a history of travel, that looks right (this story of displacement is limited low frequency of activation by SoftMotion nature so I created this second way to measure travel to high frequency).  Point being, I am convinced that the linear encoder works fine.

I am extremely confused because I have not changed anything of substance I can think.  I move the cDAQ9174 to a different os of USB cable I started with the assumption that I had screwed up connectivity somewhere in hardware.  The cDAQ-9174 and NEITHER 9411 times pass Self Test NI MAX.  I checked the relevant cable continuity by pin and it is fine.  Then I started to try to get more information on the value of the counter.  I have a number of versions of this VI and they all report that the meter is flatline to zero any movement there is in the system.  I ran the VI in run mode of looking for clues and I noticed something that seems a little weird, at least for me.  The meter is identified as cDAQ1 / _ctr *.  Does anyone know what this means?

Attached is the VI screenshots with and without highlighting on execution in case someone sees something in there that I'm missing.

Thank you

John

Thanks for your help.  I can't exactly say I solved this problem, but the problem disappeared.  Any changes I made to the wiring and then repeated to them, I reversed and all of a sudden it worked again so he must have had a problem connecting somewhere along the line.  Thanks for explaining the * thing, good to know that it was a Kipper.

John

Tags: NI Software

Similar Questions

  • counter back to zero

    Hello

    How I can do this, if the struct case is true, the meter to zero, (== 0) and account again... I have attached the picture of my vi...

    BR

    Use a shift register in your outer loop.  You can also double check your code.  You can do simple things in a complicated way.  X + y doesn't make sense to me.

  • How can I fix the program with the update of creative cloud stuck at zero percent?

    My program administrative creative cloud on my PC is stuck at 0%. I am using the latest version for Windows 10 and my other apps work with adobe (dreamweaver, Permira), but I tried to get captivate and now can't because the administration of cloud is updated and has been for 6 hours and the percentage remained at 0%.

    Cloud stuck.JPG

    In addition to the response above, you can also try to uninstall and reinstall the application:

    Please remove Creative Cloud app and Adobe Application manager using the-

    Install the cloud creative app - https://helpx.adobe.com/creative-cloud/help/install-apps.html

  • macOS Sierra and reminders badge notification counter stuck

    Hello everyone,

    I upgraded my MBP 2015 beginning 13 "retina to macOS Sierra 10.12 a week ago and since then my notification reminders badge icon shows '1', even if I have no obsolete reminder. On my iPhone 6, Pro "(à la fois avec iOS 10.0.2) and iCloud 9.7 iPad are shown no insignia." How can I solve this problem? I looked everywhere on the internet.

    I tried:

    • Disabling the option badge in settings and reset the MBP.
    • typing in a Terminal the command 'killall-Dock KILL' with 'sudo' and without it;
    • disconnect and connect again to my iCloud account;

    no results at all.

    Any other suggestion please?

    Thank you very much

    For those who encounter this problem, thanks to a user I finally solved the problem.

    Here's what I did:

    Connected to the www.icloud.com went to the settings and restored a previous automatic backup of two days before (even if my problem started earlier). After the recovery is complete, my icon badge disappeared automatically.

    At the end of the process, I had again to share my 'Family' calendar and a reminder with my girlfriend (if you have more, you must do for each list of calendar/reminder).

    All my subscribed calendars are always synchronized after the process.

    Hope this helps others...

  • The View of line object count goes to zero after removing the view criteria.

    Hello

    I use JDeveloper 11.1.1.4.

    I applied viewCriteria to a viewObject. Its working fine.

    But after that when I remove this ViewCriteria using removeApplyViewCriteriaName () /removeViewCriteria (), the number of lines of this same viewObject is 'null '.


    Kind regards

    Alok

    Rather than use getRowCount(), which is not good if you get several rows in the back, use getEstimatedRowCount(), which requires the DB how many rows are returned.

    Then, you can start your apuplication with - Djbo.debugoutput = console so that you see what request is sent to the db. Or you use this class VO Dump request and it & #8217; s parameter with their values. JDev & amp; ADF Goodies to get only the query and parameters of the journal.

    Timo

  • Count the number of zero terms between non zero terms

    Hello.  I have a table of data of zero and nonzero (example: {1 2 56 2 3 0 0 0 0 0 2 3 5 2 3 5 2 0 0 0 0 32 43}) I need to count the number of zeros of each string of zeros and mark that number against the first zero no term following the string of zeros (NOTE (: string is used here as a description of a series of zeros, not a string variable).  So the plot which coordinates since my example would be (5.2) and (4.32).

    I'm clear on the way to the path, but I am unable to store only each final count of consecutive zeros without having unnecessary data in my plot.

    Thanks in advance to all those who have advice!

    -Mike

    Do something like that?

    EDIT: Minor Correction because of the additional function of decrement.

  • Possible bug-> CompactDAQ synchronization between HAVE and counter - sync error depends on the sampling frequency (exactly).

    I have a system with a map of the 9234 compactDAQ 4 Groove and a 9401 in slot 5.

    I use a function generator to create a 5V square wave frequency sweep.

    The frequency of scans from 1 Hz to 10 Hz in 3 seconds.

    I have this tee in my door to counter 0 (PFI1 - 16 Pin) and an analog input channel 0.

    In LabView, I do a period measure counter that has a trigger defined on the trigger to start ArmStart HAVE.

    Piecemeal the signal into two channels, I see the time counter correspond to zero-level positive slope crossings in the data to HAVE it.

    By the presence of a square with a mutation frequency wave, I know for sure that the time is not out of a period.

    I noticed the downturn to take samples, the greatest moment of the synchronization error.

    Here is the data that I have saved:

    sampling rate 1 / (sync error times)

    51200 1250

    25600 625

    10240 256

    2048 51.8

    1651 37

    It worked of Y = 0,0244 X + 1.1262 with R ^ 2 = 1.0

    So it could be, I have a programming error, or that there is a bug in the hardware or the base software.

    Thanks for any help to understand this question.

    BTW, I use this system to make an analysis program in the stopped vehicle with direct sequence over time - of course analysis based on the revolutions.  I found that order analytical tools was not flexible enough for what I had done, so I started from the ground upward.

    Hi Greg,.

    Looks like you see the entry delay the NI 9234 (Group delay).   As specified in the instructions for use NI 9234, entry delay is equal to 38.4 / fs + 3.2us.  This is because of how the sigma delta ADC works - after the start, it must acquire a certain number of samples before returning the first valid sample.  This delay is expected.

    Here is a knowledge base on the subject.  There are a lot more, just do a search of the knowledge base for "group delay.

  • APEX_APPLICATION. G_F01. COUNT returns 0

    Hello

    I had trouble with checkboxes in an interactive report. I have an Application where the user should be able to see whether or not a given letter is sent. Information for these letters are stored in a table, with an id, an internal number and a column that contains 0, if the letter is not sent and a 1 if it is sent. So now, I'm trying to compile a report interactive APEX shows the values, which is a box that is checked if the letter is sent (in the column 1) or disabled (0 in the column).

    The SQL query looks like this:

    Select

    ...

    APEX_ITEM. CheckBox (1, smells, Decode(sent,1,'CHECKED',null)) "sent."

    ...

    It works very well. Now, the user must be able to check a box if he sent a letter and save the data in the table. Now, this is where I have some problems. I tried to loop through all the lines that are checked and uptdate in the table.

    The PL/SQL code for dynamic action looks like this:

    BECAUSE me IN 1.APEX_APPLICATION. G_F01. COUNTING LOOP

    Update...

    END LOOP;

    Now, if I press the button nothing happens, if I output the value for APEX_APPLICATION. G_F01. Consider it always returns 0. I watched if the value of name for the checkbox control is correct, so the source code looks like this:

    < input type = "checkbox" name = "f01" value = "1" >

    I hope that you can explain to me why the value of PEX_APPLICATION. G_F01. COUNT is always zero.

    Hello

    When you submit the page, APEX_APPLICATION. Table G_Fxx collect only checked the values checkbox.

    If no box is checked, then the array is empty.

    Kind regards
    Jari

  • Several counts and

    I wrote my request and now I need to refine - I tried to comment the next step in the query. I hope it makes sense what I try to achieve, but I don't know how to write it and I had no chance to research.

    Essentially, I need to see the indictment, I need to see all a.id, a.num where "Count zero" = "0" and 'Count of Zero' > '0'
    select a.id, a.num,
    (select Count(*)
    from ari ari
    where ari.id = a.id
    and ari.num = a.num
    and ari.value = '0') as "Count of Zero",
    (select Count(*)
    from ari ari
    where ari.id = a.id
    and ari.num = a.num
    and ari.value > '0') as "Count of Non-Zero"
    from ari a
    --where "Count of Non-Zero" = '0' and "Count of Zero" > '0'
    group by a.id, a.num 
    -- having "Count of Non-Zero" = '0' and "Count of Zero" > '0'
    order by a.id
    Examples of data
    VALUE ID NUM
    32 0 0
    32 0 0
    32 0 0
    32 0 0
    32 1 0
    32 1 0
    32 1 0
    35 0 0
    35 0 23
    35 0 22
    35 1 0
    35 1 12
    35 1 24
    36 0 0
    36 0 0
    36 0 0
    36 1 26
    36 1 25
    36 1 45
    38 0 27
    12 0 38
    38 0 55
    38 1 42
    38 1 48
    38 1 40
    38 1 39

    The query results
    a.ID a.num
    32 0
    32 1
    36 0


    Oracle 11.2.0.2.0 database

    Published by: 924266 on 03/29/2012 6:14

    Published by: 924266 on 06:22 29/03/2012

    Edit: Thanks Frank for the fast feedback

    Published by: 924266 on 03/29/2012 06:32

    Hello

    Welcome to the forum!

    Whenever you have a querstion, don't forget to ask your question. You are looking for a better way get the same results?

    SELECT       id
    ,       num
    ,       COUNT (CASE WHEN value = '0' THEN 1 END)     AS "Count of Zero"
    ,       COUNT (CASE WHEN value > '0' THEN 1 END)     AS "Count of Non-Zero"
    FROM        ari
    GROUP BY  id
    ,            num
    ORDER BY  id
    ;
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Report when the above query is incorrect results and explain, using specific examples, how you get the results of these data in these places.
    Always tell what version of Oracle you are using.

    Published by: Frank Kulash, 29 March 2012 09:29

    I see that you added your question now.

    SELECT       id
    ,       num
    FROM        ari
    GROUP BY  id
    ,            num
    HAVING    COUNT (CASE WHEN value = '0' THEN 1 END)     > 0
    AND       COUNT (CASE WHEN value > '0' THEN 1 END)     = 0
    ORDER BY  id
    ;
    

    COUNT always returns a number, so it is not sensible to compare a string like '0'
    What is the data type of the value? If it is a NUMBER. Then, you don't want to compare it to a chain, either.

  • The adjacent table values

    What would the most effective way in labview to explore an array of 1 d 0 and 1 and store indexes side 1 is as a new line in a 2d array? For example, I have an array of 0 0 0 0 1 1 1 0 1 1 0, resulting 2d table will look like this:

    4 5 6

    8 9

    where these numbers represent the index of the adjacent 1.

    Help with this is appreciated.

    A few problems.

    Change your meter and line numbering of dual representation, I32 or another type of integer.  This is probably why you stuck in a loop of the search for zero.  Rounding errors in double can lead to inequalities between the numbers you might otherwise consider the same thing.

    You have localitite.  You have a condition of critical competition for the number of lines in the real case of the structure of the case.  You want the number of rows, incremented by 1, or at the first 2 - D array index page?  As it is now, there is no control over which no comes first.  Eliminate all local variables.  Replace them with wires and start using shift registers to manage values between iterations of the loop.

    Another problem is your loop stops when your account equals the number of items in the table.   Your count begins as zero.  It seems that the number is incremented at each iteration of the loop.  Finally, your account will equal the number of items in the table and the loop exits.  But all the other codes in this iteration will still occur.  If you have a table of 5 elements, your indices range from 0 to 4.  But your account is now 5.  The loop stops when the iteration has been completed, but now you are trying to index the element 5 (which doesn't exist) and also item 6 (5 + 1) that does not also exist.  In fact, you will have the problem in the previous iteration because there is no element 5 (4 + 1).

    Another problem is the way in which you are using insert into the table.  If you start with an empty table and try to insert into a table in a different row or column outside 0, you get nothing.  Or if you have 4 lines and you try to insert in line 5 or higher, nothing is added.  Insertion in the table is the wrong function to use probably 95% of the time.  You should use table to build.

    Why do you have a business structure in the false case puts a real, and in the real deal puts a fake?  It's a Rube Goldberg.  It doesn't cause a problem, but it's just useless code.  Just wire the comparison to stop and put on a NOT operator.  If you change the status of the loop continues if it is true, you can eliminate the not! as well.  In addition, rather than add a 1 to a number, there are a + 1 increment operator in the digital palette.  (A little less code means a little cleaner diagram).  In addition, you don't need two separate functions of the Index table.  You can use one and resize it down.  If wire you the County in the top, the bottom (that you just added in developing the service) will give you the index after counting.)

    I don't have your global variable.  (Where are the data coming from?) VI another?)  If you can replace this world with a constant matrix with some typical data, it would give us something to work with.

  • Conversion of QuickTime is eating hard drive space?

    So I thought I'd go through some old video files on an external drive, so when I found and tried to open them by default - open with Quicktime Player because they were .mov files. But when opening them that forced me to convert first, which took some time, but it was very good. After viewing the file, I have it closed and he could be invited to record the conversion, but I said no every time.

    Dozens of video clips later, I received a warning that my hard drive is running out of space even though I was not downloading anything. Of course, I'm up to 1 GB, even if I don't know I got a lot more than this, perhaps 20, but at least 10gbs before starting. I don't know Quicktime is somehow to blame, and whenever I try to open a .mov file and it begins to convert, I actually see my free disk space down a bit like 1.35 GB GB 1.06 to 53KO to zero bytes. However, now it crashes towards the end by saying: he can't open the clip, even if the conversion is almost over, and then my disk space back to about 1.35 GB. However, on my most recent test it is simply suspended zero byte. I quit the program and am currently stuck at zero-byte and get the impossible to open again message clip.

    I was able to open the same .mov files in VLC without problem. I tried to use OmniDiskSweeper to find where these ghosts files could be but nothing extraordinary appears. I can't find all the physical files that QuickTime can be created on my hard drive, unless I'm looking in the wrong places...

    I'm currently under OSX Yosemite v10.10.5 and Quicktime v10.4.

    If someone could help me please understand this point, I would be very happy. Thanks for reading this.

    If someone could help me please understand this point, I would be very happy.

    To start, I remember not where temporary files of conversion are stored by the system or if this location varies for different operating systems from the user. Basically, the problem is self-inflicted. When you refuse to save the file after the conversion, the reference of the source file ends up stored in your list of 'Récent' without for as much free disk space used to store the converted data. Try to access the data already converted via the "open the recent item" option will restart just another conversion of the same file. On the other hand, you had actually stored the converted file, you may have deleted or moved to an external drive for future use. Fortunately, if your system works like mine, there may be another way to reclaim the space for temporary storage consumed by conversions without having to know where temporary data is stored. Simply try to empty your "Récent" list by pressing the option "delete". Then watch the space window of Finder reading for a short period, while to see if the OS is recover storage space that has been allocated to the converted data. It worked for me under El Capitan, when I reset my normal 'None' setting return to the default value of '10' and ran some tests to try to reproduce your problem.

  • Change the value of always the same as the previous value register

    Hi all. I was banging my head against the wall for a while on it and hoping that someone can help me.

    I use a USB-6008 DAQ hardware to read a rotary encoder. I pulled the rudiments of the attached VI of the forums, but I modified to work with an encoder with an index. All I'm doing is reset to the "value of the degrees to zero whenever the value of the counter (Encoder index) increases a. I thought I was good at using the shift register, since it must retain the value of the previous iteration (just before the index spent). The problem I have is that two courses to the function values ' lower to "always seem to be the same, so my 'degrees' value never resets. What Miss me?

    Thank you!

    PS - I need to use the meter (instead of just another digital line) because it is essential that the index value is never missed. And I know using a software based counter as this tends to miss a digital input signal here and there.

    Suppose that your encoder runs at 1 rpm = 1 index pulse per second. You are turning your loop to 1000 times per second. It is not clear that the 6008 reads the line of DI and the meter that fast. The software update timed AO rate is 150 Hz, maximum. If it reads fast, get you 999 readings of 0 and a reading of 1. For 1 millisecond the degrees indicator will display 0.  On the next iteration of the loop of the< comparison="" will="" be="" true="" again="" and="" the="" shift="" register="" value="" will="" be="" displayed="" again.=""  what="" you="" need="" to="" do="" is="" to="" reset="" the="" value="" going="" into="" the="" count="" register="" to="" zero,="" not="" the="" display.=""  one="" simple="" wiring="" change="" should="" fix="">

    Lynn

  • How they intend to while loops

    IM an example to count the number of loops of my program did. However, it doesn't seem to work. Ive attached a DBL the i indicator in the while loop of the block diagram. I joined the program below.

    Best regards, Sam

    While the loop counter starts at zero, so if you want to know the numebr of iterations of the loop, you need to add 1 to the loop counter.

    Your loop will work also only once, if the STOP button is not pressed, since you have time condifitional called loop terminal to to continue if true.  If you press the button before running the code, it won't work twice, because you have the Boolean value set to lock, so when the loop reads the Boolean value, it will return false and stop the loop.

    I think that you want to change the conditional terminal back to interrupt if true.

  • How to use time with the State in MODE Lab machine

    Hello

    I tried to use the state machine with function elapsed time so sequentially, start and stop my code. The arrangement is to start the code for 1 minute then stop for 5 minutes. I have attached the code, the problem is when I place the function elapsed time, exit the while loop it does not, on the other hand when I place it inside the loop it does not work, but it does not give the right signal to move to the next State.

    Could you please take a look at my code and help me solve this problem.

    Concerning

    Rajab

    Rajab84 wrote:

    APOK thanks for your help

    even with the support on start it continues to turn on the case of waiting

    could you please explain the code for me, the use of the Boolean crossing, increment and equality of functions

    Best regards

    Rajab

    Ok.. I have modded the example to stop after 2 cycles. Also recommend that you take the free online tutorials of LabVIEW.

    1. run the vi. case statement goes to 'initialize', shift registers are initialized to their constants. GoTo 'wait '.
    2. "start" = false, stay in the current state. If true, switch to the "1 min" case
    3. "Reset timer set off with True of the shift register (counter starts at zero). time elapsed "= false, stay in the current state (1 min). If true, goto "5 min" case
    4. "Reset timer set off with True of the shift from the previous case register (counter starts at zero). time elapsed "= false, stay in the current state (5 min). If true, goto "1 min" case. Also, bool crossing is the search for "true-false" function compares '5 min' to add the number of cycle.
    5. Once the number of cycles reaches 2, stop all loop...
  • E3000 random lag spikes (games)

    Hello

    I went to the Linksys E3000 router, and there is a problem with peaks of lag when playing online. I use a wireless network, and it wasn't a problem until I started using the new E3000 router.

    I tried to change the automatic configuration of WLAN on the PC and I tried to turn on the multimedia / gaming environment for wireless network card. Have also tried to disable the virus check. But no luck.

    So I suspect the router

    _________

    The problem more precisely:

    Plays and completely out of the blue I lag spikes from time to time. It may happen once every ten seconds when the game freezes for a second or less. But it varies how many times it happens, not regularly, but it's more or less all the time.

    I tried different games, the same phenomenon occurs. (Counter-strike 1.6, counter-strike source, Call of Duty: Black Ops, counter-strike Condition Zero)

    _________

    Any suggestions? Very frustrating when games online is impossible.

    OK, finally.

    It was something with my driver, I uninstalled everything. And when I'm jusing windows 7 driver for my network card everything works.

    "Thanks for the support here-.-

Maybe you are looking for