Jump to content

newLVuser

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by newLVuser

  1. Add another selector (the thing you're using to decide whether to increment your pass counter) to each counter wire, and use the selectors with the reset button to determine whether to feed the wire contents or a '0' into the shift registers on the right side.

    Thank you for replying

  2. I read your note about LabVIEW 7.1 but didn't connect it with your question about the True case. All of the images I post are VI snippets, so the code is in the picture, but you'd need LabVIEW 8.6 to get it out. Sorry.

    I added the Array Initalize to your code and it worked. Food for thought: your Case Structure wasn't doing anything so you were trying to replace an element in an empty array. You experienced that it won't work. One thing to note is that the constant 8 elements is specific to the number of elements in your boolean Results array. You'd be better off programmatically determining the length of that array, but you need to size it appropriately if you change the number of tests you're tracking.

    post-7534-126156878612_thumb.png

    PS - Take a look at the Code Capture Tool. It makes capturing and annotating BD & FP images easy.

    Thank you, that solved my problem. The program does what I want.

    And thank you for for the Code Capture Tool link... it's very useful.

    post-16871-126157739354_thumb.gif

  3. Those are the First Call function. They return True the first time they're called and I use them to initialize the data that will go in the Shift Registers. Without them the arrays I'm passing around won't be initialized properly. I have to initialize them to the size of your results array inside the While Loop, but I can't have it happen every time the Loop iterates or you'll lose your ability to count. The True case should contain the Array Initialize because it must happen only once, at the First Call.

    Similar thing for the Total scalar; if I don't initialize it to zero the first time in it'll keep incrementing every time it runs and the count will be off.

    I have checked the BD and it looks good. I can not make it work properly.

    I always get 0's...

    BD, FP and VI are attached.

    post-16871-126150945818_thumb.jpg

    post-16871-126150946663_thumb.jpg

    Untitled.vi

  4. Those are the First Call function. They return True the first time they're called and I use them to initialize the data that will go in the Shift Registers. Without them the arrays I'm passing around won't be initialized properly. I have to initialize them to the size of your results array inside the While Loop, but I can't have it happen every time the Loop iterates or you'll lose your ability to count. The True case should contain the Array Initialize because it must happen only once, at the First Call.

    Similar thing for the Total scalar; if I don't initialize it to zero the first time in it'll keep incrementing every time it runs and the count will be off.

    OK...I will try your program and let you know.

    I'll write it because I have LV7.1

    Thanks a lot.

  5. I'm assuming that each element in the input array represents the result from one of multiple tests, not multiple results for one test. I think this is what you're looking for. Sharon_'s post is your answer if I've got it backwards.

    post-7534-126148434768_thumb.png

    Thanks for replying jcarmody.

    I think this is what I am looking for. But I've got some doubts...

    Please see the attached.

    post-16871-126149220944_thumb.jpg

  6. Hello, I posted a topic to get help with a simple pass/fail counter. That helped me a lot with my application.

    Now I want to count the failure type, I'd like to use a boolean array as the input.

    I hope you can help.

    I'm attaching the original counter, and the idea I want to implement...

    post-16871-126143755819_thumb.jpg

    post-16871-126143757896_thumb.gif

  7. Feed the result of your Pass/Fail determination into this. Now would be a good time to study up on Shift Registers because I've modified crelf's program to use a While Loop with two of them (uninitialized, to boot). You can make this into a sub VI or put it in line with the rest of your code. A While Loop with uninitialized Shift Registers set to run one time is a useful tool, but you need to understand their operation or you'll have trouble with this.

    post-7534-126106361646_thumb.png

    Excellent. I believe this will help me a lot with my application. Thank you very much for following up.

  8. Are you familiar with how the Shift Register works? That part is key to keeping track of data from one operation of the loop to the next. Post back if you have trouble.

    I am not that familiar with Shift Registers. I have run the running tally.vi program that crelf wrote and it does what I want. But I do not know how to implement it into the application I have.

    Please see the attachment...

    *The attachment untitled.jpg is the general idea of what I want in my application.

    *The test.jpg is the actual test file I use.

    -Main Program.vi calls a subvi which is Test.vi

    -Test.vi has all the conditions to determine whether the test has passed or failed.

    -I want to use that Pass (boolean) variable to trigger the "running tally.vi" everytime the test is finished and count the passes and fails. The quantity of

    tests is undetermined.

    I hope you can help.

    post-16871-126105865093_thumb.jpg

    post-16871-126105978212_thumb.jpg

  9. Hi all,

    I'am a new user of LabVIEW, currently it is supposed the application shows a boolean with the result. A LED on the front panel turns ON when it passes the test, and if it fails the test, the led is turned OFF. and I want to add a counter to simply count parts that have passed and failed a test.

    Do you guys have an idea in how to do this?

    I'll appreciate any help.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.