キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

decimal strings

I have the following VI with 8 indicators that I plan to attach to connector panes so that I can pull this data into a teststand sequence

file but these are comma delimited strings in hexadecimal formats.

 

Is there an easy way to set these indicators up so that they display these values in comma delimited decimal values?

 

Thanks!

 

string conversion.jpg

0 件の賞賛
メッセージ1/7
3,976件の閲覧回数

Dear Rookie,

 

     It is always better to attach code, either in the form of a VI/sub-VI or a Snippet (look at the Edit pulldown menu on the Block Diagram, "Create VI Snippet from Selection".  This lets us "play with" (or "test") your code, see precisely what is in the Wires ("Is that a U32 or an I16?"), and deduce which version of LabVIEW you are using.  For example, what is "Event"?

 

     Have you looked at the Hexadecimal String to Number function on the String "Number/String Conversion" palette?

 

Bob Schor   

0 件の賞賛
メッセージ2/7
3,970件の閲覧回数

I'm confused.  What you state and what you code says contradict each other.  You stated that you have comma seperated values.  But your code is showing a cluster that you flattened into a string.  Why can't you just use the cluster to pass your data to TestStand?



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 件の賞賛
メッセージ3/7
3,963件の閲覧回数

I didn't know that I could pass a cluster to teststand.

 

Does the cluster get connected to teh connector pane just like an indicator would?

 

 

0 件の賞賛
メッセージ4/7
3,937件の閲覧回数

Hi rookie,

 

did you try to connect your cluster to the con-pane yet?

Just do it! (®)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 件の賞賛
メッセージ5/7
3,927件の閲覧回数

LV-rookie wrote:

Does the cluster get connected to teh connector pane just like an indicator would?


A cluster is a type of indicator.  So why would it not be able to be connected on the connector pane?  Furthermore, on the TestStand side you can expand the cluster to access the individual items.



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
メッセージ6/7
3,918件の閲覧回数

What confuses me is a control labeled "Event" that is a cluster of comma seperated values unflattened from nothing.!!!!

 

That's right there is nothing being unflattened!  So you have an empty string cast to a cluster of (IDNK) and you peel off parts of the rest of the (Empty) string that don't fit into the "Cluster named Event"????

 

Did anyone else track that?


"Should be" isn't "Is" -Jay
0 件の賞賛
メッセージ7/7
3,903件の閲覧回数