newLVuser
-
Posts
12 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by newLVuser
-
-
-
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.
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.
-
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.
-
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.
-
Thanks for replying jcarmody.
I think this is what I am looking for. But I've got some doubts...
Please see the attached.
-
-
-
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.
Excellent. I believe this will help me a lot with my application. Thank you very much for following up.
-
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.
-
-
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.
Reset Counts
in LabVIEW General
Posted
Thank you for replying