LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing a number to TDMS

Solved!
Go to solution

Hi Miki,

 

I think it really might be a better idea to repost your code with the event structure you added. Events can be tricky when encountered first and it might be much easier to troubleshoot with the code attached 😉

Best regards,
Jano
0 Kudos
Message 21 of 28
(966 Views)

Thanks for the response Jano! Here is my code. If you cannot use a code without subVI's, I will attach them too.

0 Kudos
Message 22 of 28
(960 Views)

Hi,

 

I looked through your code. Basically - when you hit the "Stop The Program", you check for "Stop Reading Value" and get into an idle loop. To simplify things, I would suggest to try the code like this 😉 Also, feel free to use the value 0 for the timeout - anyway rest of your code will be timing the loop.

Event fix.JPG

Best regards,
Jano
0 Kudos
Message 23 of 28
(954 Views)

With your code my program is working, but when I stop the program, it doesn't show the message from the dialogue. Do you know what may be the problem?

0 Kudos
Message 24 of 28
(945 Views)

If you press the normal stop button, the event will not be triggered.  What you can do instead of the OR is to add the stop button:value change to the event case you already have written for the stop button in the cluster.  Then either button changing values will have the same effect.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 25 of 28
(942 Views)

I almost succeeded. I made a two button dialogue with a message "Are you sure you want to continue?", but program stops working both on Yes and No. How can I make the program to continue working when I press No button?Here is my code again.

0 Kudos
Message 26 of 28
(938 Views)

I think this is actually what you want.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 27 of 28
(929 Views)

Almost perfect! There is one thing that I do not understand. When I press the stop button,dialogue occurs,then I click No .After this, I press the stop button one more time and then Yes button, but program doesn't stop totaly,only aquisition, so I must press the stop button one more time to completely stop the program.Do you have any idea why this occurs?

0 Kudos
Message 28 of 28
(923 Views)