ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graphing an array

Solved!
Go to solution

So I have a set of data (which is attached below in TEST FILE.txt) that is parsed to an array and I need to graph the first column (abs time) vs. another column (any channel of data).  I'm able to get an array (f2 columns instead of 5 with the first column being time and the second the data from a selected channel) however, I cannot get a proper x-y graph to be displayed.  I changed the x-axis format of the graph to abs time but its still not working.

 

The TEST FILE.txt is the original data and the VI is what I am using to graph it.  The subVI in this code parses the text file to the array seen in my code ("parsed data array")

Download All
0 Kudos
Message 1 of 17
(5,045 Views)
Solution
Accepted by topic author Fonzie1104

means you want to plot two numeric array at y exis and x exit as time stemp.

 

i will suggest use vi i have attached.

try and let me know is that is usefull to u or not.

 

CLAD
Labiew programmer
Message 2 of 17
(5,023 Views)

Hi Fonzie,

 

it seems your parsing loop is overly complicated. Why do you parse the same data again and again with no delay in an UI polling loop???

 

I stripped your VI to the bones and was able to read a timestamp and a value and to plot both...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 17
(5,021 Views)

Forgot to mention before, Im currently running LabVIEW 8.6

 

0 Kudos
Message 4 of 17
(5,015 Views)

Hi Fonzie,

 

here you go. Btw. you forgot to attach the subVI...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 17
(5,005 Views)
0 Kudos
Message 6 of 17
(5,002 Views)
0 Kudos
Message 7 of 17
(4,994 Views)

smercurio_fc

 

I'd appreciate if you would not post useless information as you did.  I'm looking for individuals who are willing to help me out with an issue that I am having.  You have provided me with no help and are beginning to waste my time.  I suggest you only post if your going to be patient with those who don't have that much experience in this field and if your going to help them rather then complaining about their posts.

 

Thanks

0 Kudos
Message 8 of 17
(4,982 Views)

fonze,

 

You are the one who is out of line with your confusing and multiple posts. You still don't seem to understand how much of our time you are wasting by doing this. Most of us are volunteers and if you continue this pattern, it's just going to be more difficult to get your questions answered. Play by the rules and we'll all get along much better.

0 Kudos
Message 9 of 17
(4,980 Views)

 


@Fonzie1104 wrote:

smercurio_fc

 

I'd appreciate if you would not post useless information as you did.  I'm looking for individuals who are willing to help me out with an issue that I am having.  You have provided me with no help and are beginning to waste my time.  I suggest you only post if your going to be patient with those who don't have that much experience in this field and if your going to help them rather then complaining about their posts.

 

Thanks


That "moved" post was supposed to go into the other post (I was replying in the other thread, but the forum software posted it here) to indicate the discussion was moved here. It is not useless information. It's there so the others who volunteer to answer questions know what has already been asked, what has already been suggested, and what has already been tried, so we don't end up repeating ourselves.

 

0 Kudos
Message 10 of 17
(4,970 Views)