LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lookup

How do I reference a text from a number reference?  I wan to call fro example B0 and see "start bit"

 

B0 START BIT
B1 PACKET LENGTH
B2 PACKET ID
B3 OCU A ADDRESS HIGH BIT
B4 OCU A ADDRESS HIGH BIT
B5.0 - 5.1 OCU A DIRECTION
B5.2 - 5.4 OCU A AUTO BRAKE OVERRIDE
B5.5 - 5.7 UNDEFINED
6.0 - 6.2  OCU A INDEPENDENT BRAKE OVER RIDE
0 Kudos
Message 1 of 5
(2,492 Views)

There are many ways to do this. How big are the tables?

 

What's the meaning of "B" That does not sound like a number, especially since some have decimal points. It seems you probably want to strip the B. What should be returned for non-existent values (e.g.5.9)? Are thre other letters besides a leading B?

 

You could create a numeric array of boundaries, then use "threshold array" to get an result (rounded down or up) to be used to index into an array of corresponding texts. (you could modify this example)

0 Kudos
Message 2 of 5
(2,478 Views)

I am not quite sure how you would implement the ranges using variant attributes. In this case there could be an infinite number of names (e.g. B5.2 .....B5.4) for a certain atttribute (OCU A AUTO BRAKE OVERRIDE).

0 Kudos
Message 4 of 5
(2,410 Views)

@altenbach wrote:

I am not quite sure how you would implement the ranges using variant attributes. In this case there could be an infinite number of names (e.g. B5.2 .....B5.4) for a certain atttribute (OCU A AUTO BRAKE OVERRIDE).


Sorry didn't catch that one

0 Kudos
Message 5 of 5
(2,401 Views)