02-07-2012 03:13 PM
Hey all
So a strange problem that I've been having. When I run my VI, (it seems to only happen on longer runs) Labview will freeze. I can't abort the run and when I close Labview it stays in the running processes in the task manager. I pretty much have to restart my pc to reset everything. Can anyone help?
Some background on my VI, it tells a sourcemeter to change its output, then reads from two other instruments. It does this in a step function basically to sweep from zero to a max then a min and back to zero. To get better readings it will do this multiple times and average the loops.
I'm attaching my VI in case anyone can point out a fatal flaw in the programming, or suggest any improvements 😛
Thanks!
Ian
02-07-2012 03:26 PM
Down-convert your VI to 8.5.
02-07-2012 04:18 PM
Nope 😕
Worked for one run, then froze on the next. The problem remains.
02-07-2012 06:12 PM
Ian,
In the Ascend case "1" (also cases 2 and 3) you do not wire the VISA resource name or error out to thout output tunnels. They are set to Use Default if Unwired. So on the next iteration the VISA Write tries to use the default value, which of course is not valid. So you are probably getting VISA time out errors, but since the error wires are not connected you do not get errors to the Error Handler.
Lynn
02-07-2012 07:51 PM
02-07-2012 07:55 PM
As an additional bit of information, you can kill the LabVIEW process in the processes of the Task Manager and avoid rebooting your computer. You can't save anything this way, but then, you can't save anything when you reboot the computer either.
Rob
02-08-2012 04:58 AM
This abort.vi might be able to stop your VI, but maybe not if your process has run away with all of your memory.
02-08-2012 07:13 AM
@IanMcD wrote:
Nope 😕
Worked for one run, then froze on the next. The problem remains.
I meant for you to down-convert your VI and repost it so more people can look at it. Not everyone as LV11.
02-08-2012 10:57 AM
Oh, sry...my mistake. I've attached it now.
Thanks Lynn, did not even see that.
I was monitoring it while it ran and didn't see any huge jumps in memory. I took a screenshot of around when it froze; attached.
I also tried the abort.vi which didn't really seem to work. But I was able to stop it with the task manager, however it stays in the processes and when I reopen Labview it just brings up another instance. Also attached screenshot ("Labview Processes") The first one is the one that froze and the second it the one I just opened. Any ideas?
Thanks
Ian
02-08-2012 11:19 AM
So after I run abort.vi and stop my VI, I can run the program again but it won't collect any data. Once I restarted though I worked again. I've attached screenshots from my pc's vitals in an idle state with Labview open, and one right when it froze.Does this help?
Thanks
Ian