06-30-2010 09:01 AM
Hi,
I would like to plot measurement Y against serial number X. Measurement Y is of type double, and the serial number is just a string. When I bundle an array of X and an array of Y into a cluster, and try to feed it into the XY Graph icon on the block diagram, I get a broken wire. I need the flexibility of plotting some numerical value against a string that I create. This is possible in Excel, is it possible in LabVIEW 2009 SP1? If so how?
Thanks,
Richard
Solved! Go to Solution.
06-30-2010 09:09 AM
This has come up several times before. No, the graphs do not support that. You basically need to cheat. See this post for an idea.
06-30-2010 09:21 AM
in LabVIEW charts and graphs are based on a cartesian system. You need a magnitude (scalar number) for each dimention. You can associate a scalar numeric value to each unique string (think- ring or enum controls or an array index) but you must have a magnitude for each dimention.
06-30-2010 09:53 AM
The solution that smercurio_fc linked will probably work for me -- thank you smercurio_fc.
To be honest, this solution is rather cludgey. I wish NI would implement something more elegant by expanding the list of acceptable inputs to the XY Graph to include strings.
Thanks again,
Richard
06-30-2010 12:52 PM
Then you should vote for the idea.