08-24-2011 02:22 PM
Hi, I have two decimal strings, each one contains numbers that change over time. I want to plot them on XY graph, one string for each axe. Can you show me how to do it?
Solved! Go to Solution.
08-24-2011 03:34 PM
Can you give an example on how the strings look like? (format, delimiters, etc).
Does each string contain a single number (e.g. 12) or multiple numbers (e.g. 12, 13, 14, 15).
Do you want to only plot the numbers in the current strings or do you want to keep a history of all numbers since the start of the program?
Where is the new data coming from? What makes the strings change? Are you reading them from an instrument?
08-24-2011 06:18 PM
There's not much to see, I'm using a serial port communication to acquire continuously a set of signals coming from a microprocessor. Then I use the string subset to separate into other strings and I convert them to numbers, and I use them for a lot of things. So 2 does strings that contains a single number like "1234".
I would like to start a loop receive the 2 different numbers from the serial port, plot them in a xy graph and keep a history of all of them. I'm measuring strength vs. stretching, so each one goes each axe X and Y.
08-24-2011 07:10 PM - edited 08-24-2011 07:10 PM
08-25-2011 08:11 AM
Thanks, but can you tell be the name of this block:
currently I'm working in Labview 8.2.1 because at school we only have license for this version.
08-25-2011 08:15 AM
Build Array in the array palet
08-25-2011 09:01 AM
Sorry I'm a noob in labview.
I already connect the feed back and an arrow appears but I don't know how to connect the the numeric control or something like that with the formula "0+0i". You can send me a .vi if you don't bother.
08-25-2011 09:26 AM - edited 08-25-2011 09:27 AM
This is not a formula, but a plain diagram constant of a complex array. Wire up the rest, then right-click the initializer terminal of the feedback node and select "create constant". That should do it. 😉
08-25-2011 09:35 AM
Here's a downconverted version to 8.2. It replaced the feedback node with a shift register. Same difference!
(Maybe your version is too old to exactly duplicate the feedback node.)
08-25-2011 11:36 AM
Hi again I already tried your example and it works well, is something like that that I want. But specifically in my project it doesn't work and I don't understand what I'm doing wrong