취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

3D Surface Plot Helper To Dynamic Array

해결 완료!
솔루션으로 이동

Hi all,

 

I'm trying to use sensors connected to an Arduino. My goal is to create an X-Y plane with fixed values and use the sensor values as Z values. This is my first attempt at trying to make a dynamic 3 dimensional image and using the '3D Surface plot helper'. My example here uses only 4 sensors in a 2 x 2 array. While I get updating values and the graph's Z values continuously change, I'm not actually seeing anything plotted on the graph.

 

Hopefully I've explained what I'm after in a concise manner.

 

Thanks for any help.

 

0 포인트
1/14 메시지
3,204 조회수

Can you use "save for previous" before attaching. (I don't have LabVIEW 2021 here).

0 포인트
2/14 메시지
3,192 조회수

@altenbach sure thing - what version would you like?

0 포인트
3/14 메시지
3,181 조회수

2020 or lower

 

0 포인트
4/14 메시지
3,178 조회수
0 포인트
5/14 메시지
3,175 조회수

No, that's still in 2021.

0 포인트
6/14 메시지
3,147 조회수

That's odd. I thought I had pressed "20.0". Here it is (hopefully) for 2019.

0 포인트
7/14 메시지
3,131 조회수
솔루션
주제 작성자 CNLSN이(가) 승인함

@CNLSN wrote:

That's odd. I thought I had pressed "20.0". Here it is (hopefully) for 2019.


You probably attached the regular instead of the down-converted version. Happens... 😉

 

Can you show us how a typical received string looks like?

 

All you probably need to to reshape your 4 elements 1D array yo a 2x2 2D array.

 

(Your feedback nodes make absolutely no sense and just cause your displayed data to lag behind by one iteration. Also, the 3D plots ask for SGL data, so it is even more puzzling why you would first scan it as EXT?? Why all these coercion dots???)

 

 

Here's one possibility (I disabled your IO because I don't have your hardware and simulate data instead. Once we know the format of the received string, things can be further simplified, of course):

 

 

altenbach_0-1647534324960.png

 

 

 

 

8/14 메시지
3,115 조회수

Haha yeah, that might've been it.

 

Yes, of course - the strings look like "A11B12C13D14".

 

I've tried your .vi and I'm receiving the numbers into the array but it looks something like:

 

Sensor 2 | Sensor 1          instead of             Sensor 1 | Sensor 2

Sensor 3 | Sensor 4                                       Sensor 3 | Sensor 4

 

Is there a way to define the placement of the sensors (paticulary, with respect to the graph)?

 

Thank you for your help.

0 포인트
9/14 메시지
3,108 조회수

You can change the order of the four letters in the diagram constant to get a different order of elements. Right?

 

 

10/14 메시지
3,103 조회수