LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wait time/need help

Hi

 

need help

 

II used wait time function to wait 5 second before send command to my device , I put this function in while loop so I could display the waiting time until it is reach 5 seconds , it is work in the first run but when I run the VI for the second time it is give me all waiting time , I want it to start from 0 for each run

0 Kudos
Message 1 of 7
(2,815 Views)

Are you using a Shift Register?  If so, are you initializing it to 0?

 

Better yet, can you post your code?

0 Kudos
Message 2 of 7
(2,813 Views)

I atttache it thanks

0 Kudos
Message 3 of 7
(2,810 Views)

Hi,

 

Upload you main VI. So We can have better idea.

PBP
Labview 6.1 - 2019
0 Kudos
Message 4 of 7
(2,792 Views)

thnks you so much , I have resolved the problem

0 Kudos
Message 5 of 7
(2,789 Views)

I'm glad you solved the problem...

However, I'm trying to figure out what it is that you are trying to accomplish.

 

Why do you make the buttons visible?  Were they made invisible somewhere else?

Why do you use the property node to assign names to the cancel, and ok buttons?  Were they renamed elsewhere?

Which VI / subvi are you opening the front panel?  If it is the one I am looking at, you can set that up in the VI Properties, within the Window Appearance section, and select Custom. You can set it to "Show front panel when called" and "Close afterwards if originally closed".

You can simplify your Rube Goldberg boolean logic by wiring the Cancel and the output of both OK buttons (ORed) to the Compound Arithmetic function (OR).

 

To learn more about LabVIEW, I suggest you try looking at some of these tutorials.

 

0 Kudos
Message 6 of 7
(2,772 Views)

I am sorry , I sent you the wrong file . my mistake

0 Kudos
Message 7 of 7
(2,766 Views)