07-25-2016 02:21 AM
May I know how I going to display my value 1 by 1 ? It display too fast. I want to see the value change 1 by 1.. for example 1 to 2 then to 3 and so on. Attach is my vi, correct me if got mistake.
Solved! Go to Solution.
07-25-2016 02:55 AM
First of all you must know functionality of while loop and case structure and then utilize them in the code.
You can find 'Context help' for that Ctrl+H in LabVIEW.
Also if I am not wrong you can use a while loop and a wait(ms) function to delay the counter.
07-25-2016 02:58 AM
I don't have labview pc now, but according to your description "It display too fast" use delay and you can slow down the display speed.
07-25-2016 03:43 AM
You will also need to put the indicator inside the loop in one case and a local variable (of the indicator) in the other or you will only see the change at the end of the execution.
07-25-2016 07:12 PM
Would you mind to show me how does it look like? I still can't get it.
07-25-2016 07:13 PM
@Ken_Naylor wrote:You will also need to put the indicator inside the loop in one case and a local variable (of the indicator) in the other or you will only see the change at the end of the execution.
Would you mind to show me how does it look like? I still can't get it.
07-25-2016 11:41 PM
That's not how this Forum works -- you show us what you are doing (by attaching the VI you are trying to write, along with a description of what you want it do to) and we will suggest "fixes" that will (with luck) fix it.
Please attach your VI (not a picture of the Block Diagram, but the VI itself).
Bob Schor
07-26-2016 01:41 AM
You need to learn what is case structure and how to use it : http://zone.ni.com/reference/en-XX/help/371361M-01/glang/case_structure/
-To slow down the execution speed you need to understand wait:http://zone.ni.com/reference/en-XX/help/371361M-01/glang/wait_ms/
You should learn LabVIEW basics from here : http://us.ni.com/academic/training
07-26-2016 03:36 AM
@Bob_Schor wrote:That's not how this Forum works -- you show us what you are doing (by attaching the VI you are trying to write, along with a description of what you want it do to) and we will suggest "fixes" that will (with luck) fix it.
Please attach your VI (not a picture of the Block Diagram, but the VI itself).
Bob Schor
This one is my VI. Which I implement on my FPGA target VI. Am did any mistake on my VI ? I still dunno which one will cause the problem since error is not occur. Thank you.
07-26-2016 03:48 AM - edited 07-26-2016 03:50 AM
Your counter indicator will not update until the loop has finished executing and then it will display either 0 (counting down) or 255 counting up. If you want to see the indicator labled 'counter' counting up (or down) then the indicator (or a local variable attached to the indicator) MUST be inside the loop.
Ken