From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change 1D array of 32 bit integer to 1D array of BV tag

i just want to change 1D array of 32 bit data type to 1D array of BV tag to display this in Historical trend viewer
an urgent reply wud b highly appreciable
VINO
0 Kudos
Message 1 of 5
(2,450 Views)
What you are asking for is not really clear for me... I assume you want your array of numeric values to be replaced by a boolean array.
Also, I was not sure about what numeric value has to correspond with TRUE or FALSE...

Here is a possibility to do this :




I hope this will help you...

Message Edité par TiTou le 03-29-200609:07 AM


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 5
(2,453 Views)
You will have to write each array value to a unique tag name if you want multiple tags in the historical trend. Wire the I32 array and a tagname array into a for loop with indexing enabled on each tunnel. You will need to convert the I32 into a DBL, the Write tag vi wants a DBL for an analog input. If you don't want it as individual tag values, let us know.
 
0 Kudos
Message 3 of 5
(2,441 Views)
Hello Titou,

why do you use a For loop? Your example will work without!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(2,439 Views)
That's true GerdW,

I always forget and relearn that more and more functions are polymorphic ;)...

nh, this will work the same as the previous I posted :




Message Edité par TiTou le 03-29-200612:24 PM


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 5 of 5
(2,435 Views)