LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cann't running VI more than twice

I am designing a software using USB-6009 to control a Microwave generator, it requires to download temperature reading from system and send out voltage to device using PID strategy. it is OK for the programme to run first and second times, but after twice the programme just stop there without any error information.
0 Kudos
Message 1 of 5
(2,746 Views)
Can you send us your code? If yes, perform a "save with options","Development Distribution" and then 'zip' the resulting .llb file to save space. It is probably a simple structural error in your code, but it is hard to diagnose without seeing it.


P.M.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 5
(2,740 Views)
Have you tried running the code with execution highlighting turned on? Often this will let you see why the code is stopping before you expect it to.

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 3 of 5
(2,717 Views)
Actually, problem happened after two vis joined together, it is fine first run the programme. when call second time, the programme just stopped when download the reading
0 Kudos
Message 4 of 5
(2,708 Views)
I have looked at your VI - once it had finished loading (and it crashed my PC). It would appear that this program is >440meg in size (you can get this info by pressing "crtl i" and then selecting memory from LVs menu). Having had a look at the Linear Heating Data Acquisition.vi it does not appear that you are initialing data arrays to this size. Not sure if you can confirm this. My suspicions are that the VIs have somehow got corrupted. If you run a mass compile this should sort out the issue. Running your VI causes my machine ( with 768meg memory) to head off into virtual memory, then complained that it was running low on resources this is not a good situation to be in.

If this does not solve your issue. Then I would strongly recommend that you rebuild the Linear Heating Data Acquisition.vi which looks to be the problem. There is no reason that a VI will run only twice unless you have memory leak issues.

Kind regards

Joe

NI-UK

Message Edited by Joe W on 07-01-2005 08:58 AM

0 Kudos
Message 5 of 5
(2,690 Views)