LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatic shutdown

After I run my labview program, it works but for some reason it closes on its own. I can test everything fine and I get no type of error message so why does it automatically close?

Message Edited by Newguy100 on 08-29-2005 11:07 AM

0 Kudos
Message 1 of 20
(3,814 Views)
1.mmm, try to update your computer thru windowsupdate.com
2.re-install labview.

may-be labview conflicts with some other software, that you are running at the same time?

0 Kudos
Message 2 of 20
(3,796 Views)
Is it just one VI that does this or anytime you run LabVIEW? If it's just one VI, then assuming you don't have an Exit LabVIEW function, what functions are you calling? Any Call Library functions? Can you isolate it to one section of your code? Posting an example that demonstrates this behavior would help.
0 Kudos
Message 3 of 20
(3,792 Views)
Can you describe a bit more exactly what you mean by it shutsdown on its own?
Is the program calling any DLLs, ActiveX objects, CINs or the like?
Turn on execution highlighting while the code is running. At what point exactly does it shutdown on its own?
 
Sorry for all the questions, but there are many things that could cause the behavior.
 
Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 20
(3,790 Views)
Basically I click on a button which calls a .dll function. It seems to be running ok, but when I stop the program. It takes maybe about 30 sec to 1 min before it closes. Sometimes it takes longer.
0 Kudos
Message 5 of 20
(3,786 Views)

Who wrote the DLL? What is happening to LV's memory allocation while the program is running? Is it remaining steady, or is it increasing all the time?

Mike...

As Doug said, code would help...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 20
(3,783 Views)
Does it behave that way if you do not call the dll?  Remove the dll call and try it.  Improperly written dll's can cause a number of strange happenings.  Also, when you stop your vi, is the dll still running?  Post a sample of your code.
- tbob

Inventor of the WORM Global
0 Kudos
Message 7 of 20
(3,777 Views)

Here is one of my functions: 

count0 = 0;
  i = 0;

     WriteFile(hCom,"X\r",2,&iBytesWritten,NULL);

  while(ch != '>'){       //store into global array until '>' is recognized

  ReadFile(hCom,&ch,1,&iBytesRead,NULL);
  sh[i] = ch;
  i++;
  count0++;
  }
     ReadFile(hCom,&ch,1,&iBytesRead,NULL);
  sh[i] = ch;        //add the next '>' symbol to the array
  sh[++i]= '\0';
  return (count0+1);

I have three other functions like this and they all work.
0 Kudos
Message 8 of 20
(3,763 Views)
I was wondering if it could be my while loop. It is running infinitely. Well, not infintely. It will stop when you click on a stop button. Anyway, I store the number of iterations from a while loop in a numeric indicator. The purpose of this is to maintain the position of my scrollbar on my string indicator. I have attach a picture. Is this ok? Right now, it took like 5-10 minutes before the program closed.

 

Message Edited by Newguy100 on 08-29-2005 12:44 PM

Download All
0 Kudos
Message 9 of 20
(3,762 Views)
That error message sound like there is an error either in the DLL code, or how it is being called.
 
Mike...
 
PS: are you sure a DLL is really necessary? What exactly is that code doing?

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 10 of 20
(3,747 Views)