05-23-2017 03:32 AM
I made a very simple .VI to explain what I'm trying to do. Please take a look at the two images below.
Task: Fill in the data along the line.
The Amplitude Arrays on the left create two points 0 and 10 to plot a line on the graph.
The Time Arrays on the bottom of the image create the two points 0 - 10 to give time to the graph,
When the line is generated between the two points I want the .VI to generate x number of points along that line and send them to a second string.
Is this possible?
Thank you for any advice or help!
Mike
05-23-2017 04:24 AM
There could be some math functions which can do it simple(I'm not aware sorry)
-What you can do is increment the x0+(delta x) until it reaches x1 use the same logic for Y and build the array.
-If you have IMAQ you can use this http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_getpointsonline/
05-23-2017 04:26 AM
Thank you!
Will investigate and report back any progress.
Cheers!
05-23-2017 04:45 AM
One more quick suggestion: I see that you are using two slide controls(One for min and max?) You can add for the same Slide control extra slide by Right Click Add Slider
-Ref: http://digital.ni.com/public.nsf/allkb/10A18F448A1A524186257904005D0ECC
05-23-2017 04:47 AM
Just found and following this: http://forums.ni.com/t5/LabVIEW/how-to-use-offset-and-multiplier-property-in-waveform-graph/td-p/147...
05-23-2017 05:02 AM
Will work on the sliders.
I found help on the XScale, Multiplier. Trying to find out how to implement that.
It takes a big picture view of LabView to make the simplest of .VI work. Fun but very hard. Help from this Forum is great!
05-23-2017 05:12 AM
Will get back after I work it all out.
Thanks!
05-23-2017 07:58 AM - edited 05-23-2017 08:00 AM
Mike,
Being that your XY graph is time based it could be beneficial to use waveforms instead of discreet X and Y points if you can. That way you could use the "Get XY Value" VI from the waveform palette. If your data does not have an equal delta t between points it is a little harder to turn into a waveform but it is still possible using the "Create Limit Specification VI". The snip below shows how you could do that if your delta t's aren't constant in your XY data. If you end up wanting to go down this road let me know, I can answer any more questions you might have about this approach.
Another approach would be to simply truncate your data set every "x" number of values if you know how many values you are going to be charting.
EDIT: Ignore the "plus 0"....it was left over from some experimenting I was doing.
05-23-2017 09:54 AM
I'm on it, will learn and make this work!
Many thanks!
Mike
05-23-2017 10:25 AM
This is a little too advanced for me. I can't even find what is shown. Investigating.