10-08-2021 04:16 AM
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.
10-08-2021 06:26 AM - edited 10-08-2021 06:31 AM
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.
10-08-2021 07:21 AM - edited 10-08-2021 07:24 AM
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.
10-08-2021 09:01 AM
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.
10-08-2021 09:43 AM
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:
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.
10-08-2021 10:33 AM - edited 10-08-2021 10:56 AM
@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…