Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview crashes suddenly while running

Solved!
Go to solution

Hello,

I am Lipika, working on a monitoring system  using labview.

Though the serial communication between the hardware and the labview is made successfully  initially , the connection  is  lost during the runtime of labview  and the labview crashes.

It does not happen all the time . It mostly occurs during auto run of the device  when scripted programs are run for testing.

In that case,  both labview and the system needs to be rebooted to lay the connection again which is troublesome .

The PC has 12 core processors , with 256 RAM ,OS is Windows 7.

Kindly suggest solutions  to get rid of this.

Best regards

0 Kudos
Message 1 of 6
(4,857 Views)

Could you attach the LabVIEW program and include some typical screenshots of it functioning so that we might get a better idea of the issue?

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 6
(4,812 Views)

Hello,
I have attached  the program .

This program runs on a Windows OS PC which operates an electronic device through a serial cable port connected to the PCB .

Under the section of' particle identification and classification'  tab, when programs are loaded to run , at times there is communication error after which last command loaded continues runnning and cannot be stopped manually.The occurance of this error is quite a few times.

Also , at times the whole  labview crashes suddenly .This occurence is less .

Regards

 

0 Kudos
Message 3 of 6
(4,776 Views)
Solution
Accepted by topic author Sabitri@22

Ugh, You have so many event structures and untimed (without delays) independent loops running.  For debugging purposes, try to disable some if they are not necessary for operation. 

 

It is difficult to visualize any flow pattern.  Do all of those loops need to be independent?  Can some of the event structures or while loops be grouped together?  Can some of your loops withstand even the slightest wait timer?  Not sure how much more help that I can offer until this becomes more compact and structured.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 4 of 6
(4,768 Views)

I have attached a part of the program..

Control panel has the VISA communication between the hardware and the LABVIEW.

At present the VI is errorfree.  However,the communication is lost between them once in a program run of 3 hours , hence the whole experiment goes in vain.

Since, there is no popup error to understand and  troubleshoot it, could  you please  suggest  some solution/ alternative  to make the performance better  and get rid of the issue?

0 Kudos
Message 5 of 6
(4,688 Views)

This looks much cleaner. 

My question now is how do you handle an error?  There might be an error occurring after a time in writing the file or in dequeuing a message?  You should start each consumer loop by either erasing the error, or starting without error then merge it back before the end of the while loop.  This way it will still functionally work rather than bypassing some of the code due to error.  Not sure of the exact reaction as the sub-vi's are not populated in what was attached. 

 

Also, are you using a 32 or 64-bit LabVIEW?  A 32-bit version will only allow a file size just above 2GB.  Is that about when your system loses communication?  On the Block Diagram, check the File IO -> Adv File Funcs -> Set File Position to determine if the version is using an I32 or an I64 for a pointer. 

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 6 of 6
(4,602 Views)