LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a 3D-graph line by line

Solved!
Go to solution

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

 

Message Edited by Reepicheep on 09-23-2009 10:06 AM
Message Edited by Reepicheep on 09-23-2009 10:06 AM
Message Edited by Reepicheep on 09-23-2009 10:06 AM
0 Kudos
Message 1 of 9
(4,558 Views)

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 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 9
(4,547 Views)

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

 

0 Kudos
Message 3 of 9
(4,513 Views)

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

0 Kudos
Message 4 of 9
(4,510 Views)

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

0 Kudos
Message 5 of 9
(4,493 Views)

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

0 Kudos
Message 6 of 9
(4,482 Views)
Solution
Accepted by topic author Reepicheep

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 9
(4,478 Views)
Hi,

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

 

0 Kudos
Message 8 of 9
(4,465 Views)

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

Message 9 of 9
(4,416 Views)