LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph not working in .exe

Hello all ,

 

I am plotting an array of data in the XY graph , which works fine in the code , but in the .exe the XY graph is empty .

 

Pls. suggest how to resolve this issue .

Attached few snapshots , pls. let me know if you need any more info.

0 Kudos
Message 1 of 6
(1,960 Views)

How about attaching at least the top-level VI? All I see is "downhill" code without any architecture.

 

You seem to have a lot of filenames. How do you generate their full path? Paths relative to the program need to be constructed correctly.

0 Kudos
Message 2 of 6
(1,935 Views)

Hi ,

From the sub vi I get the XY Array of data ,which I plot the graph .

It works fine in the source code , but when i run in .exe the graphs are blank.

Attached the SUB VI for your reference.

dinesh84_0-1633695603169.pngdinesh84_1-1633695647547.png

 

0 Kudos
Message 3 of 6
(1,925 Views)

Wholly redundant code Batman!

 

You should really learn how to use For Loops and how to index Arrays.

 

Also some sample data would help us a lot.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 6
(1,910 Views)

Hi dinesh84,

 

I used your VI as a subVI and generated 100x100 2D array of random data, even scanned to string array to replicate what you describe. Then I built .exe out of that Main VI and the code works just fine:

Ajskrim_0-1633704119002.png

So the issue will be probably at the input of the VI rather then output. 

I'd recommend - start debugging step by step what's happening at your application while running as .exe.

 

 

 

_______________________________________________________________

-Patrik
CLA || CTA
If it helps - Kudo it, if it answers - Mark As Solution
0 Kudos
Message 5 of 6
(1,905 Views)

@RTSLVU wrote:

You should really learn how to use For Loops and how to index Arrays.

Also some sample data would help us a lot.


I recommend the same: do some basic training courses!

 

Suggestion:

Edit: even though it doesn't look so the 2nd constant on each ArraySubset function is connected to the row length input to define the number of rows…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 6
(1,895 Views)