06-25-2019 08:26 AM
Hello,
I have been working on a LabVIEW exercise and am having trouble making the program work. The program is suppose to allow user input to manipulate the graph shown on the front panel. I am not entirely sure where my error is but I believe it is my lack of input. I'm still relatively new to using this program so any help would be greatly appreciated.
Solved! Go to Solution.
06-25-2019 08:29 AM
Your inner FOR loop iterates zero times and only produces an empty array as output.
06-25-2019 08:53 AM
Thanks for the quick response. I see what you are talking about. I've been stuck the last couple days on this part and I know the solution should be obvious but i'm not quite seeing it. Would I connect the FOR loop iterations to the Loop Count?
06-25-2019 09:42 AM
@Kimberly881 wrote:
Would I connect the FOR loop iterations to the Loop Count?
No, I would not! The loop count, and thus the size of the array will grow without bounds and you'll run out of memory eventually.
I assume you want a fixed x-range (e.g. 0...2pi) and with a fixed number of points, so you can di that once before the loop. The rest could e.g. look as follows. (not sure why you need the property nodes)
06-25-2019 10:54 AM
Thank you for all the help!
So the property nodes allow the user to pick the x axis boundaries and the number of segments the graph will have. Do the property nodes need to be connected as an input? I attached my exercise again with the FOR loop iterations fixed as you suggested.
06-25-2019 11:19 AM - edited 06-25-2019 11:20 AM
@Kimberly881 wrote:So the property nodes allow the user to pick the x axis boundaries and the number of segments the graph will have.
No, I have no idea what you mean by "number of segments", but the "AutoscaleDelay" property is certainly not correct for that. Did you even read the help?
You really need to do a few basic LabVIEW tutorials first.
06-25-2019 11:26 AM
Thanks for all the help and advice. I have a better idea of how to fix the program now.