LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView, Application Builder, FieldPoint -> Programmabsturz beim Aufstarten einer erzeugten EXE-Datei

Solved!
Go to solution

Hallo,  habe folgendes Problem:

Für einen Kunden wurde ein Programm zur Datenerfassung entwickelt (2005).

Die Daten werden über die Fieldpoint-Schnittstelle erfasst und in einer CSV-Datei abgespeichert.

Für ein Folgeprojekt möchte der Kunde eine angepasste Version dieses Programms.

Darum wurde zusätzlich der Application Builder erworben um eine Exe-Datei zu erzeugen.

Da ich sonst nichts mit LabView mache ist meine LabView-Version nicht mehr die neuste

LabView Version 7.1

Application Builder für LabView 7.1

Fieldpoint Version 4.1 

Das Erstellen einer EXE-Datei war auch erfolgreich, nur beim Ausführen der EXE auf dem neuen Zielrechner, bricht das

Programm beim Aufstarten die Anwendung öfters mit einer Fehlermeldung ab (Fehlerbericht an Microsoft senden...) und beendet diese.

In der Ereignisanzeige des Rechners erscheint in diesem Falle immer die Meldung ".NET Runtime 2.0 Error Reporting"

Typ: Fehler

Ereignisskennung: 1000

Warum das Programm manchmal abstürzt ist leider nicht auszumachen, ich schätze aber dass es mit der Schnittstelle

zu FieldPoint (Version 4.1) zu tun hat.

Wenn ich das Programm aus meiner Entwicklungsumgebung aus Starte funktioniert es einwandfrei.

Testweise habe ich auch schon die Entwickungsumgebung auf dem neuen Zielrechner installiert, auch dann läuft mein Programm wenn ich es manuell von dort aus starte. Kann ich beim Erzeugen der Exe-Datei noch was falsch gemacht haben?Aber warum funktioniert die EXE-Datei dann ab und zu?   
0 Kudos
Message 1 of 5
(3,651 Views)

 


Translation

 

 

Hi, following problem:

For a client, a program was developed for data collection (2005).

The data are recorded on the FieldPoint interface and stored in a CSV file.

For a follow-up project, the customer would like a customized version of this program.

Therefore, in addition, the Application Builder has been acquired to produce an executable file.

Since I do nothing else with my LabView LabView is no longer the latest version

LabView version 7.1

Application Builder for LabVIEW 7.1

FieldPoint Version 4.1

Creating an EXE file was successful, only when you run the EXE on the new target machine breaks

Program at startup, the application several times with an error (send error report to Microsoft ...) and ended it.

In the event viewer of the computer appears in this case always the message ". NET Runtime 2.0 Error Reporting"

Type: Error

Event ID: 1000

Why does the program crashes sometimes unfortunately not identify, but I guess that with the interface

to do on Field Point (version 4.1) has.

When I run the program from my development environment from Start it works fine.

Test, I've already installed the development environment on the new target machine, even running my program when I start it manually from there. Can I have when creating the exe file does do something wrong? But why the EXE files work now and then?


0 Kudos
Message 2 of 5
(3,645 Views)

Hi Schnetzi,

 

I try to help you with the given information...

 

If the name of the process which crashes is LVALARMS.DLL the problem may be caused by a new introduced CPU-feature (Hyperthreading). LVALARMS.DLL is mostly responsible for timing and timed loops in LabVIEW.

 

Hyperthreading has been known to cause issues with tightly timed LabVIEW 7.1 programs. I would recommend trying disabling it (you will need to go into the computer's BIOS to do this, usually by pressing F1 or F2 while the computer is booting). Replacing timed loops by while loops may help too.

 

If that doesn't solve the problem, I would recommend installing the LabVIEW 7.1.1 patch, which addresses a number of intermittant crashes which may be related to what you are seeing.

 

Note that the patch requires a mass compile in order to be effective, and this could take upwards of an hour or two.

 

 

I hope this helps.

 

With best regards, 

 

Ralf N.

0 Kudos
Message 3 of 5
(3,618 Views)
Solution
Accepted by topic author Schnetzi

Hi ralfn,

 

thank you for the information about the Hyperthreading.

The new PC contains a dualprocessor-CPU.

After deactivating the preselection "allow to run more threads" in the LabView Software

(Tools-> Options -> Performance and Memory), my EXE-File runs fine.

 

Thank you, best regards,

 

Schnetzi

0 Kudos
Message 4 of 5
(3,540 Views)

Hallo,

ich habe eine exe-datei meines Programms erstellt, aber es fehlt immer die Pfad (speicher 1) zur Speicherung der Daten bei der Ausführung der exe-datei. Bei der Ausführung des VIs wurde den Pfad richtig eingezeigt, übrings läuft das VIs fehlerfrei. Nur die exe-datei ist fehlerhaft. speicher 1 und OPC sind leer bei der Ausführung der exe datei. WARUM?

Hilfe werde ich sehr dankbar. Anbei erhalten Sie meinen VIs und die erstellte exe-datei mit der angezeite Fehler.

 

MFG

colains

 

0 Kudos
Message 5 of 5
(3,132 Views)