LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

program runs once correctly, then fails

Solved!
Go to solution

Suspect that some array or file is open when program is finished running and returns to main menu.

 

First run of program always works well, subsequent runs fail.

 

Must restart program completely to run another test.

 

Have searched for undefined arrays, and unclosed files.

 

What else should I look for?

 

How can I reinitialize program without completely restarting the program?

0 Kudos
Message 1 of 26
(3,455 Views)

Do you open references to anything? Do you start any I/O with devices?

Cory K
Message 2 of 26
(3,447 Views)

You could at least tell us in what way it "fails". (crash, incorrect results, inoperable, etc.). That probably could give some clues.

 

What does the program do?

 

Do you have any uninitialzed shift registers or feedback nodes?

Do you have any partially wired output tunnels set to "use default if unwired"?

Do you close anything that needs to be kept open (DAQ task, file, etc.)

 

Message 3 of 26
(3,443 Views)

Details of failure = test runs, but rather than gather 30 data points and end, it gathers one data point then ends.

0 Kudos
Message 4 of 26
(3,431 Views)
What about my other three question?
Message 5 of 26
(3,415 Views)

Are you using some Control/Indicators to store values? They will be kept in memory.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 6 of 26
(3,395 Views)

can you post your code? Or image of portion of the code in which you are facing problem.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 7 of 26
(3,391 Views)

1  Do you have any uninitialzed shift registers or feedback nodes?

2  Do you have any partially wired output tunnels set to "use default if unwired"?

3  Do you close anything that needs to be kept open (DAQ task, file, etc.)

1  Found one unitialized shift register, was simply a choce between gallons per minute or gallons per hour.

 

2  Yes I have many of these partially wired output tunnels set to "use default if unwired".

 

3  I do not beleive that I have anything that needs to be kept open.

0 Kudos
Message 8 of 26
(3,358 Views)

The control you are using to track the sample count is not being reset* either when the program stops or before it starts to do it work.

 

Ben

 

* I admit this is a wild guess based on mostly nothing.

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 9 of 26
(3,352 Views)

I am using the iteration terminal of a WHILE loop to count samples.

0 Kudos
Message 10 of 26
(3,340 Views)