LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiply conflicts with wait

Hallo all,
I manage connect the output of a Multiply block to the input of a Wait block, but fail with the message like:
the source is a cluster of 4 elements, the sink is long ...
It seems that the formats of the values are conflicting with  each other. However the result of the Multiply is a product of a Numeric Knob, between 0 and 1, and a Arithmetic constant, 1000. Why the source, i.e. the output of the Multiply, is a cluster of 4 elements, which sounds like an array or sth. like that.

I would appreciate it if anyone give some hints on this error.

win2s
0 Kudos
Message 1 of 10
(3,387 Views)
Unless the vi is corrupted some way, there must be some wiring mistake. Can you post your vi or a part of it exhibiting the problem?
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 10
(3,378 Views)

I agree with Paolo that posting an image of the code will help us help you.

But before you do,,, let me guess.

Try triple-clicking on the wire. I suspect it is not wired to what you think it is wired to.

Just guessing,

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 10
(3,371 Views)
the vi
Download All
0 Kudos
Message 4 of 10
(3,359 Views)
Hi win2suse,

that makes it clear, the wait function ONLY accept scalard numeric data, what you try to feed it is a cluster of 4 integers, you should us an 'unbundle by name' function to select the rigth sample rate and feed this into the wait function.
Functionally it doesn't matter if you put this function before or after the multiplication but i suggest to put it before.

success,

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 10
(3,352 Views)
Hi Tonp,

What does "a cluster of 4 integers" mean? Is it a kind of array?
Why are the outputs from the numeric knob and numeric constant some sort of integers?
In which catalogue in Labview 8.0 could I find the so-called "unbundle by name" function?

Labview is new to me, sorry for some boorish questions.

Thanx in advance,
0 Kudos
Message 6 of 10
(3,351 Views)
The cluster is the LV version of a struct, you can acces the 'unbundle by name' function by right clicking the the wire, go into the 'cluster and variant' pallete first row, third column.

BTW you can search for a function.

Also try to read some of the introduction items on this site, NI has a LabVIEW in 3 hours and a LabVIEW in 8 hours items, haven't seen them but sounds promising!

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 7 of 10
(3,331 Views)

I just wanted to add that the problem is something you created yourself. You put a knob on the front panel and then selected to add additional needles. Since each needle is a separate output, the normal scalar (single value) knob gets converted to a cluster so that the control can output more than one value.

The link to the LabVIEW Learning Center is http://www.ni.com/devzone/lvzone/fundamentals.htm.

Message 8 of 10
(3,327 Views)
could you let me know what does Needle mean?
0 Kudos
Message 9 of 10
(3,307 Views)
A needle, in this context, is one of the draggable circles you see on the knob. If you have e.g. 2 needles on a knob, you are able to define 2 numbers using a single knob, hence the control output is no more a scalar, rather a cluster (a collection of scalars). You can add/remove needles in the Properties page of the control (you can also add a needle using the context menu).
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 10 of 10
(3,299 Views)