LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Frozen screen during execution

Hi there,
 
I developed a VI to acquire pressure data from 48 sensors. During execution, the front panel freezes and the acquisition just stops. No error message appears and i just can interact with other objects, like graphs and buttons. Remember that the VI keep running, but the acqusition stucks. I'm using LabView 6.1. I'd apreciate if you could help me.
 
 
Thanks,
0 Kudos
Message 1 of 17
(4,504 Views)
We need to see the code!
 
Some things to look out for:
  • An event structure that locks the front panel (the default!), but never completes.
  • Don't set the VI priority to e.g.  timecritical, or user interactions are postponed.
  • how is error handling?
  • How does it communicate with the sensors?
  • Are there any third party dll calls?
  • ...

 

 

 

 

0 Kudos
Message 2 of 17
(4,501 Views)
Here are the codes, take a look at them, please.
The labels are in portuguese, but it´s easy to understand cause the words are similar to the english ones.
 
The error handling shows only some warnings, like ''..vi recomended input is unwired". These warnings don´t affect the execution.
 
The sensors comunicate with the soft through 2 boards ni daq PCI E-6031 and PC1 E-6024, respectively.
 
What do you mean about third party dll calls?
0 Kudos
Message 3 of 17
(4,480 Views)
Your files were not attached.
(If you previewed your post, you need to reattach before submitting.)
0 Kudos
Message 4 of 17
(4,471 Views)
0 Kudos
Message 5 of 17
(4,454 Views)
Sorry, troubleshooting from pictures is probably not possible in this case. Can you attach a real VI instead?
 
The code itself is much more complicated than needed, because there is a lot of repetitive code. Still, it would not explain a lockup.
 
0 Kudos
Message 6 of 17
(4,442 Views)
 
Download All
0 Kudos
Message 7 of 17
(4,420 Views)

Now that we have seen the code, two questions.

1) DId this application ever run correctly?

2) Have you tested your hardware using MAX?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 17
(4,412 Views)

Yes, how i said, the program runs correctly, but the acquisition stop some times (screen gets freeze).

And i've already tested the boards using measurement and automation explorer. They're OK.

0 Kudos
Message 9 of 17
(4,408 Views)

Then use the Task Manager to see if another task is getting in the way of your application.

It would also be helpful if you put indicators on the outputs of all of your "AI" to see if an erro is returned.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 17
(4,399 Views)