04-01-2008 02:33 AM
Thanks altenbach
I am not an advanced programmer, just started learning LabVIEW so just worked with some examples, mistakes are very common in everyones life.
anyhow thanks for your suggestions.
04-01-2008 04:14 AM
Thanks everyone
I had made a mistake in the code thats the reason i got it wrong.
Thanks very much for ur support
04-01-2008 11:18 AM
Veeru wrote: I am not an advanced programmer, just started learning LabVIEW so just worked with some examples, mistakes are very common in everyones life.
04-02-2008 03:30 AM
04-14-2008 10:44 AM
Hi all,
I am having a somewhat similar problem with arrays. I'm trying to do an exercise from the NI online tutorial and having a hard time finishing it. I can't get the code to work and plot the graph. Here is how the actual problem was stated:
Please I'll appreciate it if somebody can help me out here.
Thanks.
04-14-2008 10:56 AM
04-14-2008 12:13 PM
Altenbach,
Build a VI that generates a 2D array of three rows by 10 columns that contains random numbers. After generating the array, index each row, and plot each row on its own graph. The front panel should contain three graphs".
I'm not infront of my computer so I'll just try to explain it.
Looking at the question, I generated the 2D array with two For loops using random # function.
I didn't add any code for indexing since the For loop is auto-indexed and zero based.
Next, I connected the array subset function to separate the three rows. (is this correct function here or the build array function)
After adding the array subset function, I then connected it to the bundle function. This was where the main dificulty was. I couldn't connect the data that emerged to the waveform graph. It keep showing erroneous wiring between the bundle function and waveform graph.
04-14-2008 12:24 PM
Mbdeck wrote:
Next, I connected the array subset function to separate the three rows. (is this correct function here or the build array function)
Mbdeck wrote:
After adding the array subset function, I then connected it to the bundle function. This was where the main dificulty was. I couldn't connect the data that emerged to the waveform graph. It keep showing erroneous wiring between the bundle function and waveform graph.
Voila!
04-14-2008 12:33 PM
Thanks and one more thing,
All three graphs should be in one graph indicator,... right?. Or are you talking about three separate graph indicators here?
04-14-2008 01:11 PM
Mbdeck wrote:
...and plot each row on its own graph. The front panel should contain three graphs".
If you want all plots on the same graph, you would just wire the 2D array (transpose if needed).