05-30-2017 09:29 PM
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
Solved! Go to Solution.
05-31-2017 09:45 AM
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?
06-08-2017 08:38 PM - edited 06-08-2017 08:47 PM
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
06-09-2017 10:11 AM
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.
07-17-2017 05:03 AM
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?
07-25-2017 08:44 AM - edited 07-25-2017 08:51 AM
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.