ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Structures in LabVIEW

Hello, I have a question that how could I convert a number from an arrary into an unsinged word?

Thank you.

0 Kudos
Message 1 of 4
(3,617 Views)

The problem here is that you are trying to connect an array of U16 to a terminal that wants a single U16. You either have to make your terminal accept an array, or put that function that requires a single element inside a for loop and auto-index the array into it..

CLD | CTD
0 Kudos
Message 2 of 4
(3,604 Views)

Hi arekguan,

 

when the source is an array and the sink requires a scalar value you should think of IndexArray (basic array function) or "loop with autoindexing" (basic LabVIEW structure).

As you asked for basic LabVIEW stuff: did you take the free online courses offered by NI on their website to learn LabVIEW?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(3,573 Views)

@arekguan wrote:

Hello, I have a question that how could I convert a number from an arrary into an unsinged word?

 


To avoid singing (that's "singe-ing", meaning "burning", not going "tra-la-la"), keep your VI away from matches!Smiley Wink

 

Bob Schor

0 Kudos
Message 4 of 4
(3,536 Views)