LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

strange application behavior under vista

Solved!
Go to solution

Hello!

Our firm has developed an application using wacom tablet. This was developed on Win XP and with Labview 2010. Our client uses Win Vista OS and is experiencing "The program has stopped working..." message very randomly while using the application. We have traced the problem down to one SubVi, which exports data from the measurement and it appers that the program crashes when it enters some for loop, but not always and the application works without a problem on Win XP and Win 7. What do are your suggestions, what can I change in the subVI? 

 

0 Kudos
Message 1 of 7
(3,576 Views)

My knee jerk answer is WinVista, since the upgrade of the code is probably more costly than the couple hundred dollars to upgrade Windows. I don't have LabVIEW 2010 on this machine, will try to download to the one that does and look at your code. Do you have the new 2010 service pack installed? That would be one thing to check, it corrects a lot of odd issues, don't remember any that specifically sound like this one though.

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 7
(3,563 Views)

Ok, I'm on my "Big Iron" machine, but your vi is missing a lot of .ctl's and sub-vi's, so I'm not able to open it.

Putnam
Certified LabVIEW Developer

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


LabVIEW Champion



0 Kudos
Message 3 of 7
(3,555 Views)

Thanks for the effort. Changing OS was my first idea, but then my boss told  me that we supplied the OS with the computer, plus it is filled with other programs so this is not possible. I was hoping that someone had a similar problem and would have figured out the workaround. I will try to add all the controls and sub VIs in the VI.

0 Kudos
Message 4 of 7
(3,532 Views)

Hi HudTuner,

 

You are doing a lot of string operations and File IO in this subVI, but nothing is visibly a reason for LV crash.

 

Are you using special characters? Maybe your Customer tries to use special regional characters in a file path or there is a difference with decimal '.' or ',' in the OS which leads you to some crash.

 

Please, review the code knowing that and have your customer check for special characters and for decimal point mismatches!

 

Good luck!

Matyas

0 Kudos
Message 5 of 7
(3,497 Views)

Hello HudTuner,

 

Thank you for sending your code. 

I suggest you try to design your code in such a way that you can use Build Text ExpressVI and encapsulate it into SubVI. There is a design rule, when you develop your program, to try to fit the block diagram one screen (without scrolling).

Then not only you will be able to analyze your application easier but it will also be easier to read to everyone else and to find the improper execution under Vista. 

 

Regards, TRSns

 

 

Piotr Kruczkowski
Certified TestStand Architect
Certified LabVIEW Architect
0 Kudos
Message 6 of 7
(3,492 Views)
Solution
Accepted by topic author HudTuner

The problem is solved :smiley very-happy: I used format into string function to write directly to the text file. Thanks for all of the suggestions and effort.I will attach my new VI if anybody will have similar problems in the future.

Download All
0 Kudos
Message 7 of 7
(3,477 Views)