LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to multiply 2 strings and do an integral of it

Solved!
Go to solution

Hello, i have a problem. I need to multiply two signals and then do an integral of it. Because my signals coming out from cluster, they are strings, so after multiplying i cannot wire it to integral 'block'. Can anyone help me how to convert it and wire correctly? U can see what i am talking about at screenshot.

 

how.png

0 Kudos
Message 1 of 2
(3,321 Views)
Solution
Accepted by topic author menomena

They are NO strings.

LV simply uses a very similar color for clusters and strings, bnut the wire form is different.

 

Besides, multiplication does not work with strings at all.

And it only works with clustes if

  • both clusters have only numeric values (or in your case arrays of numbers)
  • and the amount of elements in the cluster is the same

What your code does is that both arrays in the two clusters are getting multiply... which multiplies each value in each array.

 

As the integral function only accepts a single array, there is a datatype mismatch.

What you have to do is to compute the integral for each array, so it might be better to multiply the arrays explicitly instead of using the cluster...

 

Norbert

 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 2
(3,316 Views)