11-02-2022 09:47 AM
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.
Solved! Go to Solution.
11-02-2022 11:41 AM
@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.
11-02-2022 12:49 PM
11-02-2022 12:53 PM
11-02-2022 03:01 PM - edited 11-02-2022 03:18 PM
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..
11-02-2022 03:18 PM
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?
11-02-2022 03:21 PM
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?
11-02-2022 03:45 PM - edited 11-02-2022 03:45 PM
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:
11-02-2022 04:04 PM
@vpn19002 wrote:
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.
11-03-2022 02:29 AM
Thank you so much!