LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop and running VI after Error

I realized a data acquisition (DAQ) program using agilent 34970A and labview
when acquiring Data an error occurs suddenly  (time out or other)

(look figures in attachment).
How to stop the VI and then restart it after the errors automatically for a new DAQ?

Download All
0 Kudos
Message 1 of 3
(2,659 Views)

Hi bilalus,

 

How to stop the VI and then restart it after the errors automatically for a new DAQ?

Some comments:

- usually you avoid such errors to prevent you from restarting!

- in case you cannot prevent those errors you need to handle them in your code to avoid showing error messages to your users!

- when you want to "restart" something you should place it in a loop!

- What is a "new DAQ"?

 

Conclusion so far (with that minimum on information you gave): there is a bug in your VI and you need to improve it!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,650 Views)

Have you taken a class in LabVIEW?  Have you learned the function of the Error Line?  Have you learned the function of a Case Structure?  Can you figure out how to put the preceding three questions together to largely answer the problem you are having?

 

Bob Schor

Message 3 of 3
(2,628 Views)