From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-06-2005 08:22 AM
07-06-2005 08:35 AM
There are several possibilities. You could use the event structure, you could use a while loop with shift registers or some other things.
Could you be a bit more precise?
07-06-2005 08:57 AM
The problem is: I ´ve to set a counter in a program where a on-off-switch is. Now I try to count the times when I activate the switch to on. And when the value 1500 is reached there has to be shown a message and the counter have to be set to 0.
The program is a little bit older where I have to insert this "counter". It´s Labview 5.1 and Windows 2000.
07-06-2005 09:14 AM - edited 07-06-2005 09:14 AM
Message Edited by becktho on 07-06-2005 04:14 PM
07-06-2005 10:12 AM
Hi Thomas,
thank you very much. But there is a little problem: The small boxes at the right sites of the loops don't become blue. they are white????? and by the while loop there is not the same sign in the right corner.
Thank you for helping me very very much!
Claudia
07-06-2005 10:17 AM
07-07-2005 01:36 AM
07-07-2005 01:41 AM
As mentioned by novatron, you have to set all outputs of a case-structure with a value, but you didn't do it (that's why you have the white squares on the right side of the case structure) and you also have no program code in there.
So here is a picture of my example with the other cases, so that you can correctly wire both of them (true AND false).
Hope this helps.
Thomas
07-07-2005 02:04 AM
Hi Thomas,
it works, but the counter only show 0 or 1 and doesn't count up to 1500.....
thank you so much.
Claudia
07-07-2005 02:22 AM
I don't see any more problems in your vi, if the cases are wired correctly.
Could you post it again with the changes made?