LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[Bug?] DSC - Enhanced DSC Run Time Breaks Built Application (Standard Run Time Does Not)

[LV2009, Win 7 Pro]

 

I have been trying to build an application with DSC components where the Enchanced DSC Run Time is required but it breaks my build.

 

This thread will contain posts that show examples of this.

I will need to lodge a support claim, but will get this info up first.

 

Definitions:

Standard Run Time: Enable Enhanced DSC Run-Time support unchecked

Enhanced DSC Run Time: Enable Enhanced DSC Run-Time support checked

 

As per the following Build Spec Setting:

 

22527iD53AFD4EE543FFFA

 

1) Real Time Licensing Issue

I made use of some Real Time Target System Replication functions to create a NI Distributed IO Sniffer.

That work fine in the Standard Run Time.

Using the Enhanced DSC Run Time broke my build, with LabVIEW complaining of Licensing issues:

 

22521iD0FEF679B4EFA7F7

 

Attached is a project to illustrate this point.

It includes two builds, each configured for a different Run Time.

 

22523i583BBA97984BA6B3

 

The only dependency is the System Replication Toolkit.

I have included a repack of it in the attached ZIP file to install using VIPM or you can download it and stick it in User.Lib to test:

 

22529i799E4BFA8EFD4B37

 

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 1 of 20
(9,416 Views)

2) IPE Crashes Build

 

I had this lovely crash occurring in my application that killed the executable. It was consistent and repeatable:


22531iDB415FA2843B076A

 

Firstly, don't bash me for the code, I inherited it and I further munged it by cutting and pasting whilst trying to debug it.

I managed to narrow it down to this thread.

As you can see, the Prompts stopped execution of down-the-line sequenced code.

The application would show "Run" for as long as I wanted.

When I hit ok on the prompt it did not show "Code", instead it crashed (as per above image).

Removing the IPE solved the problem no more crashes - although killed the app logic.

 

22533i97BA5DC5C160F88B

 

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 2 of 20
(9,413 Views)

3) Broken VIs

 

The following code (not attached) compiles and runs fine in the Standard Run Time.

However, when it runs under the Enhanced DSC Run Time I get a broken build and an Error List.

 

Now, the fact I get an Error List seem like a Bug itself?

I don't want my customer ever seeing this!

 

22539iF9F0CE5EB1439D1F

 

Anyways, as an example, the createTableLayout.vi is not that exciting:

 

22541iB428DFBE51BFB178

 

Neither is the referenceConstructor.vi:

 

22543iBD7DA8FBAF3A1386

 

And there are plenty of other methods just like them inside the application - so why are these broken?

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 3 of 20
(9,410 Views)

4) Splash Screen shows VI's loading before opening application

 

This one looks really unprofessional!

The below happens upon opening my application.

I get a Splash Screen, just like a would opening a VI in LabVIEW.

I doesn't matter if LabVIEW is open or closed.

 

22547i7893A60DBC8F2435

 

 

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 4 of 20
(9,404 Views)

5) Debugging Run Time Linking Issues

 

I tried loading the VIs Block Diagram by enabling Debugging in the Run Time.

This resulted application linking issues, which meant I have to relink a heap of vi.lib etc... VIs - everytime!

Definitely an issue there.

Attached is the Warning.txt list if it is of any use.

 

Additionally another time, running the Debugging Application with my Project open changed the Project's linking, essentially destroying my Project (its ok - it was all backed up).

 

But Debugging was not that fun to use.

 

22549i7566C9D702192D90

 

22551iDC02C273DB96A4BD

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 5 of 20
(9,401 Views)

6) Missing VIs in DSC

 

(This one seems to vaguely ring a bell? but I may have to do some more searching).

Whilst checking the following testing the build:

 

22553i465AEA3CCC9401C3

 

The Alarm Status.vi cannot automatically find the following file:

 

22555iE6DBE70A98764A71

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 6 of 20
(9,398 Views)

7) Miscellaneous Stuff 

 

A) Error Messaging

If the Enhanced DSC Run Time is required but you do not check it in the build spec I got the following errors on running the application:

22557i5D0539D77746119F

  • The messages are not informative at all.
  • Can't this be handling automatically?
  • Can't this get flagged earlier when you are building?


B) Build Error

This one may or may not be DSC specific, but the following type of Build Errors are not very helpful: 

 

 22559iFCE4CC96C4B2473F

 

C) Build Spec Info

Something I noticed - the Build Spec contains no info about it. 

All the other options do.

 

22561iFB38CCCA429A4030

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 7 of 20
(9,397 Views)

😎 Run Time Menu Corruption

 

I am going to post this here even tho it is happening for both Run Times.

I have no idea why but LabVIEW has somehow messed itself up.

 

However, on my LabVIEW install, the default Run Time Menus in a Executable are showing weird characters.

Custom menus seem fine.

LabVIEW IDE is fine.

English is set as the default language for the build.

 

I have tested this with a Project that I move to another PC and it build fine - so its not the Project/Build-Spec settings.

 

This is the Run Time of a Build Executable:

 

22567iFF620B5C1E444CD2

 

This is the splash screen of a build executable:

 

22565iAE5C0B0B4A04E0DA

 

I don't / or have not been playing with system settings either, but Mikael H asked me to look at this to help out:

 

22563iC7AC9DB2FA5E8D06

 

I have no idea why this is happening.

Rebooting did not fix the issue.

Maybe a reinstall of LabVIEW will?

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 8 of 20
(9,391 Views)

Cross-posting:

 

The initial topics where cross-posted to LAVA.

To be polite, you can find them here and here.

 

However, I will be using this thread for all future conversations.

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 9 of 20
(9,390 Views)

Hi jgcode,

 

Regarding the 'LabVIEW needs more memory' error... have you tried flipping the 3GB switch?

 

Also, the garbled text in the run-time environment... I've heard that repairing LabVIEW can resolve this.

 

I'll call this my 'fat penguin' post in the hopes that this helps 'break the ice.'

 

- Greg J

Message 10 of 20
(9,355 Views)