LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Same data type but still error

Solved!
Go to solution

Hello,

 

I'm trying to connect two doubles through a bundle, creating an array with the bundles for the polar plot function.
The input requires "1D array of cluster of 2 elements".
The problem is that the error specifying that I have the wrong data type says :

 

You have connected two terminals of different types.

The type of the source is 1D array of cluster of 2 elements,

The type of the sink is 1D array of cluster of 2 elements.

 

I'm attaching pictures of the code.

0 Kudos
Message 1 of 10
(1,643 Views)

@vpn19002 wrote:

 

I'm attaching pictures of the code.


It is better to attach code than pictures, but you attached neither. The best I can come up with is that you have two clusters that are not the same.

0 Kudos
Message 2 of 10
(1,614 Views)

@vpn19002 wrote:

I'm attaching pictures of the code.


Try again. Note that you can embed pictures directly into the post.

 


@vpn19002 wrote:

I'm trying to connect two doubles through a bundle, creating an array with the bundles for the polar plot function.


That sentence makes absolutely no sense!!!

0 Kudos
Message 3 of 10
(1,601 Views)

Works just fine here....

 

altenbach_0-1667411605964.png

 

0 Kudos
Message 4 of 10
(1,597 Views)

Hmm, I did upload both a picture and my code.. I will try it again.

 

Edit: I seem to be very tired today.. This was not the version with the attempted polar plot. Ill upload the right one..

 

Skärmbild 2022-11-02 211715.jpg

Download All
0 Kudos
Message 5 of 10
(1,552 Views)

Hi vpn,

 


@vpn19002 wrote:

Hmm, I did upload both a picture and my code.. I will try it again.


I don't find the code shown in your image in your VI. Where do you try to build that plot?

 

I do see a VI that needs 3 stop buttons - which is higly "inefficient" and gives very bad UX…

Why do you need so many DDT wires and why do you need such a convoluted way of calculating a polynomial?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 10
(1,540 Views)

I am very new to LabVIEW.


I am taking measurements from an IR sensor do a calibration and fit a 4th degree polynomial to the curve.

Any suggestions how I would improve it?

 

0 Kudos
Message 7 of 10
(1,532 Views)

Hi vpn,

 


@vpn19002 wrote:

I am taking measurements from an IR sensor do a calibration and fit a 4th degree polynomial to the curve.

Any suggestions how I would improve it?


Polynomial evaluation might be a suitable function:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 10
(1,518 Views)
Solution
Accepted by topic author vpn19002

@vpn19002 wrote:

 

 

Skärmbild 2022-11-02 211715.jpg


Your cluster contains two elements: (1) an array on top and (2) a scalar on the bottom, each cluster elements need to have two scalars (because each point needs a pair of values!) and then you need to make an array of these clusters as I already showed.

0 Kudos
Message 9 of 10
(1,508 Views)

Thank you so much!

0 Kudos
Message 10 of 10
(1,477 Views)