LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My program crash

I have made a program using labview 8.0 and project and the DSC-module. It worked find for a lont time, but now each time I try to start to run the program it crashes. Either labview is not responding and closes, or my computer is totally looked up and I am not able to turn it off pressing ctrl-alt-delete. I have read the tutorial "LabVIEW Performance and Memory Management" to try to make my block diagram more efficient... and after that my program worked for a while...but then when I made some new corrections to my code, it collapsed again when I tried to run it.
 
My program is a user interface where I am using shared variables and logg information and alarm info to a database.... I thought maybe the fault was that this database is full...but how am I able to check if that is the case, and how can I delete information saved in this database or select a new database to save my loggings in?
 
The problem is really frustrating, and I can't figure out how to fix it. I would really appreciate any suggestions on how to handle this problem.
(I know that it is difficult to get the full picture of what could be the reasons for the crash without having my program..... I could post it here if anyone would like to look at the problem.....?..)
 
-Mari
0 Kudos
Message 1 of 7
(4,154 Views)


@Mari wrote:
I have made a program using labview 8.0 and project and the DSC-module. It worked find for a lont time, but now each time I try to start to run the program it crashes. Either labview is not responding and closes, or my computer is totally looked up and I am not able to turn it off pressing ctrl-alt-delete. I have read the tutorial "LabVIEW Performance and Memory Management" to try to make my block diagram more efficient... and after that my program worked for a while...but then when I made some new corrections to my code, it collapsed again when I tried to run it.
 
My program is a user interface where I am using shared variables and logg information and alarm info to a database.... I thought maybe the fault was that this database is full...but how am I able to check if that is the case, and how can I delete information saved in this database or select a new database to save my loggings in?
 
The problem is really frustrating, and I can't figure out how to fix it. I would really appreciate any suggestions on how to handle this problem.
(I know that it is difficult to get the full picture of what could be the reasons for the crash without having my program..... I could post it here if anyone would like to look at the problem.....?..)
 
-Mari


You can check the size of the database by:

  • Open MAX
  • Expand the Historical Data node on the left hand side
  • Select Citadel 5 Universe
  • In the right hand pane select your database, right-click and select properties.
  • One of the properties displayed will be database size.  This will display the size of the database in byte (expect a number xE+y)

If the database is particularly large, you can make it smaller by:

  • destructively archiving
    • select the database
    • right-click and select archive
    • choose the traces you want to archive, the time period to use, a destination for the data and make sure you click the box "Destroy source data ..." on the last page of the archive configuration dialog.
  • delete selected traces
    • select a trace within the database - you can also delete the entire database
    • right-click and choose delete.  This will remove all the data for that trace/database.
    • If you choose to delete the entire database you will be asked if you want to detach or delete.  Detach will disconnect the data from Citadel but not delete the files so no room on the hard drive will be freed.

I would be happy to look at your code if you post it.

Regards,
Robert
0 Kudos
Message 2 of 7
(4,138 Views)
Hello Robert!
 
Thank you so much for helping me!!
My code is probably a bit messy, but I have tried to make descriptions in the block diagram so it will hopefully be more easy to understand. I am also norwegian, so my VIs have norwegian names...but I have tried my best to describe in english....
 
Thanks!
 
-Mari
0 Kudos
Message 3 of 7
(4,121 Views)

-Probably there will be problems opening the libary with my shared variables because I have built up my program in a project. The libary is named: Rotatorietank 5.lvlib and the shared variables in it are named: pH, Temperatur, O2, Salinitet and Rotatorietetthet.

 

 

0 Kudos
Message 4 of 7
(4,119 Views)


@Mari wrote:
Hello Robert!
 
Thank you so much for helping me!!
My code is probably a bit messy, but I have tried to make descriptions in the block diagram so it will hopefully be more easy to understand. I am also norwegian, so my VIs have norwegian names...but I have tried my best to describe in english....
 
Thanks!
 
-Mari



Not to worry...one of my close work neighbors is Norwegian so I can have him translate, if necessary.
Regards,
Robert
0 Kudos
Message 5 of 7
(4,097 Views)
I believe I have found your problem.  See attachment - I included your original code and my modifications.
 
I made changes to 3 VIs:
  • Hovedvindu.vi - I replaced a free-running while loop around the tank 5 indicators with a sequence.  This sequence is not needed and is used only for grouping purposes.  I have a comment next to the code explaining the change.
  • Rotatorietank 5.vi - same as Hovedvindu.vi
  • Rensearm 5.vi - I put a time delay in your while loop.

This allowed the main VI to run normally even on my very old test machine.

Please let me know if you have any questions.

Regards,
Robert
Message 6 of 7
(4,088 Views)
Thank you so much Robert!
 
Now it is working really wellSmiley Happy
 
Kind regards Mari
0 Kudos
Message 7 of 7
(4,067 Views)