LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why Labview.exe error when exit simple-state machine?

Can someone please help me figure out why, unless I ABORT the VI, I get a "Labview.exe is closing" error when I press Stop. I am using a simple-state machine like what comes with Labview's examples. What could be some causes of this? I have read that not closing all files first can cause an error but it seems to me like I have them all closed.

I am running LabVIEW 6.1 on Windows 2000. In my Initialize state I use Global and Local variables. Could these cause problems?

Any ideas?

Thanks,
Lauren
0 Kudos
Message 1 of 16
(3,575 Views)
Hi Lauren,

Are you testing us?

Without seeing your code we will have to resort to a "Guess Fest".

1) Check the VI porperties >>> Windows Appearance >>> Close afterwards... (Long shots)

2) Look for a "Quit LabVIEW" node in your code.

3) Check if there is a FP.open property node that is set to false.

Done guessing,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 16
(3,575 Views)
Hahaha lets make fun of people who are beginners at LabVIEW and don't know if their questions have blatantly obvious questions. Hahaha.

Hey here's my code. What in the world. I have a subVI in the Initialize stage called Read Configuration File that opens a text file, and then closes it within the subVI.
0 Kudos
Message 3 of 16
(3,575 Views)
Hi Lauren,

Please accept my appologies.

I was wrong for phrasing my response as I did.

I am sorry.

Re:the VI closing.
Does this happen in the devlopment environment or when the application is built?

I ask this because your attachment includes the text "exe".

If not in development but it does close in exe then check my suggestion #1 above.

Trying to help,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 16
(3,575 Views)
Hi no problem

I do have "close afterwards" checked, so that after this VI runs, my program returns to a MAIN MENU.

The error occurs in the development environment. Every time I click the EXIT button I get the message:
Labview.exe has generated errors and will be closed by windows. You need to restart the program.

And Labview shuts down. I don't know why!

Thanks,
Lauren
0 Kudos
Message 5 of 16
(3,575 Views)
Hi Lauren,

I did not notice where you are stopping the I/O. Try doing an AI Clear before yu exit.

It looks like the I/O is still running when you exit.

I admit I may have missed it. I had do a bunch of hacks to get the VI running.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 16
(3,575 Views)
Also,

Can you print the front panel without errors?

It looks like you have print on completion set.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 16
(3,575 Views)
I do an AI Clear after data is acquired. I don't open up any AI functions in the "INITIALIZE" state, so I think the only AI Clear I need is where it is. WHat do you mean print the front panel without errors. I see its set to "print at completion" (the computer I use does not have a printer connection) but do you mean save the front panel to file without errors?

Could there be an error in these subVIs that causes the program to shut down?
Download All
0 Kudos
Message 8 of 16
(3,575 Views)
I should probably add these too.
0 Kudos
Message 9 of 16
(3,575 Views)
Print on completion does not make a lot of sense if you reset everything to defaults right before completion. 😉
0 Kudos
Message 10 of 16
(3,575 Views)