LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find, separate, and convert hex strings streaming through com port?

Solved!
Go to solution

You can also store the previous values in shift registers so that you can use those values when the recieved channel does not match.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 31 of 39
(2,532 Views)

Is this how you would implement the shift registers? 

0 Kudos
Message 32 of 39
(2,529 Views)

@udka wrote:

Case structure accepts other types of case selector also apart from boolean.

-Case selector can be  integer, Boolean value, string, or enumerated type value.

 

Edit: You can even combine compare and select operations into case structure.


Case structure accepts other types of case selector also apart from boolean.

-Case selector can be  integer, Boolean value, string, or enumerated type value.  

 

can you explain this part? A case structure only has a two way switch, but I need a 3 way, one for each transmitter node. 

0 Kudos
Message 33 of 39
(2,528 Views)

One way to show:

case_selector.png

-You are talking about case selector and not strcture.

Thanks
uday
0 Kudos
Message 34 of 39
(2,513 Views)

@superomario wrote:

can you explain this part? A case structure only has a two way switch, but I need a 3 way, one for each transmitter node. 


Wire a string to the case selector input on the case structure.  You can do the same for an integer.  Unfortunately, the hex view does not exist for the string selector, so I would recommend using a lookup table.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 35 of 39
(2,510 Views)

@superomario wrote:

Is this how you would implement the shift registers? 


No.  I would store the values that actually get written to the graph in shift registers.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 36 of 39
(2,505 Views)
Solution
Accepted by topic author superomario

@crossrulz wrote:

@superomario wrote:

Is this how you would implement the shift registers? 


No.  I would store the values that actually get written to the graph in shift registers.


More like this? 

 

Also I tried to set up the string case structure per your example but it's not looking for the strings just reports -1. 

0 Kudos
Message 37 of 39
(2,498 Views)

superomario wrote:  More like this?

Much better.

 


superomario wrote: Also I tried to set up the string case structure per your example but it's not looking for the strings just reports -1. 

That is because you need to use the "Source Address" as your search element, not the entire data string.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 38 of 39
(2,489 Views)

Oh okay gotcha. Thank you for all your help. I will mark this solved. 

0 Kudos
Message 39 of 39
(2,481 Views)