LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do put a 2D array to a 2D cluster

I am trying to tie in a simple 2D boolean array (4x8) that I obtained
from a numeric constant (by converting numeric to boolean array) to a
cluster indicator of 4x8 boolean array (the vi is attached).The cluster
also contains string along the booleans to define what the bits are. All
I want is to display the bits turning the bits in the cluster on/off.
The problem seems simple but I havent been successful finding a solution.
Anybody have any clue as to how to do it easily?


Thanks,

Ratin
0 Kudos
Message 1 of 10
(3,905 Views)
Many of us doesn't have ver 7.1, post your VI in version 7 or post an image so you can get more help.
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 2 of 10
(3,898 Views)
Good point, Thanks Ayman. Here is the attached vi saved in 7.0 format.
0 Kudos
Message 3 of 10
(3,892 Views)
The attached might do the trick.

The only thing I'm not sure of is the order of the fault bits compared to the order of the displayed faults, so you may need to reverse the fault bits array before reshaping it.

Ed

Message Edited by Ed Dickens on 03-04-2005 08:52 AM



Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 4 of 10
(3,891 Views)
Try this idea, It may need some work. [attachment]
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 5 of 10
(3,880 Views)
Great. The bits are transposed but I think I can find a
work around for that (changing the reshape array argument
to 4, 8 rather than 8,4 didnt do the job).

Thanks very much!
Ratin
0 Kudos
Message 6 of 10
(3,875 Views)
Ayman, The looping in only 1D isnt going to work
since its 2D. I think Ed Dicken's vi should do
the job if I can transpose the bits.

Thanks!


Ratin
0 Kudos
Message 7 of 10
(3,872 Views)
Hi Ratin,

Just use the "Transpose 2D Array" function to trannspose the array. Beware that Ed switched the "dimension size" inputs of the "Reshape Array" function in his example.

Please see the attached "FaultBits.JPG" for the solution.
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 8 of 10
(3,838 Views)
Hi Ratin,

I have tried making the vi you wanted in labview 7.1 and putting as an attachment. Hope this works well for you.
I have made it more generalized, i.e. you have to enter the string Array and then you will get the output.

All the Best

Sreedhar T
Applications Engineer
AutoTEC Systems Bangalore
Regards,
Sreedhar T
0 Kudos
Message 9 of 10
(3,834 Views)
Thanks to all who responded to my post. Since this vi gets called over and over in
a 10 msec loop, I re-arranged the cluster so as to minimize any kind of processing
yet the bits make sense. Thaks again!

Ratin
0 Kudos
Message 10 of 10
(3,794 Views)