09-23-2009 10:05 AM - edited 09-23-2009 10:06 AM
Hey there
Hope, somebody of you will be able to help me as I got the following problem:
What I`ve got is:
- labVIEW 8.5
- an AFM microscope. From there, the data of a force measurment is processed throug several steps (this all works fine), and as a result I get an 1D-array of 16 digits. What I`d like to do now, is that this data is insereted into 3D graph, so there is actually a map written line by line.
How can I do this best?
I already managed to create the 3D graph, but only with a newly initated array. So, it`s actually not written and stored line by line... Or said differently: how can I build this array step by step as the measurment runs?
Thanks in advance for ANY help!
Kind regards,
Dave
Solved! Go to Solution.
09-23-2009 10:35 AM
You will want to build up your array in a shift register after each scan is acquired and then use the updated array to update the graph.
This link has an example to help with graphing.
Have fun,
Ben
09-24-2009 06:35 AM
Ok, thanks, this sounds like a good idea. But can you explain me how I`m creating this shift register?
I couldn`t find anything in your link...
Dave
09-24-2009 06:43 AM
Hey,
Maybe you can just have a look to the following VI. It generates a 2D Array. Each loop iteration 16 data-points are generated, stored in the transposed array and then plotted on a 3D Waterfall chart.
Are you looking for an application like this one, or do you want to use a different kind of 3D Graph?
Best regards, Stéphane
09-24-2009 08:49 AM
Well, actually it would also do it, if i would recieve a 2d-map, where the `height`of the points is shown by a farbcode. Or I use a 3D graph and display the projection only...
About the example you sent me: it sounds quite good, but I can`t open it, as I`ve got only labVIEW 8.5. Can you upload a compatible file?
greetings, dave
09-24-2009 09:28 AM
ok, I created a shift register, but I got broken wires...
=> on the left side, I initialize an empty 1d-array wich is then merged with the 1d-array containing my data... so at the end I recieve an 2d-array which I can`t connect to my shift-register (not the same dimension).
How can I do this, that the array is `growing`with each scan line?
Thanks again in advance for your help.
Kind regards, dave
09-24-2009 09:36 AM
1) init the array as 2d
or
2) right-click build array and select "append".
Ben
Quoting Mike's old signature
"After all he's not a tame loin." Mr. Thomlas
09-24-2009 10:19 AM
I have forgotten that you are using LabVIEW 8.5, I think this 3D Graph is not available in your version. In the attachment you will find a print screen of both the front panel as well as the Blockdiagramm. The Graph and the Array are refreshed each Loop Iteration.
Best regards, Stéphane
09-25-2009 11:36 AM
Ok, everything is working now...
Thanks to both of you. At the moment, it`s Bens ìdea that is working, but maybe our boss will buy labVIEW 9 and then we`ll see if I can make some changes with Stepane`s input...
Thanks again and have a nice weekend,
Dave