LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Are there any Octal to ASCII string converter?

Solved!
Go to solution

So you are starting with a string that contains plain text that are numbers representing octal numbers?  Just use the Scan From String as you have already been told to make a U8 integer.  Then use Build Array and Byte Array To String to get your normal ASCII 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
0 Kudos
Message 11 of 14
(999 Views)

Capture.PNG

Okay found my problem. I didn't put flat sequence yesterday that's why have bug. All done after i put flat sequence in it.

 

Thanks

0 Kudos
Message 12 of 14
(990 Views)

@oliver1023 wrote:

Capture.PNG

Okay found my problem. I didn't put flat sequence yesterday that's why have bug. All done after i put flat sequence in it.

 

Thanks


You still do not understand Data flow! You can remove that flat sequence, it is redundant here. Just create a wire branch on the wire, after the While loop before the Array indicator, and connect conversion function to it before the string indicator. It is also just silly to use a local variable here.

If you are new to LabVIEW, there are lots of online training options, you can find here in a list, under section "Looking For Free Training": https://forums.ni.com/t5/Community-Documents/Unofficial-Forum-Rules-and-Guidelines/ta-p/3536495

 

And some reading about local variables, flat sequence structures, and more:

http://www.ni.com/newsletter/51735/en/

0 Kudos
Message 13 of 14
(989 Views)

Yeah, avoid those Local Variables as much as possible.  Use wires.

 

Anyways, here is what I would do.  I used a FOR loop to make it a little easier on the compiler when creating the output array.  At these low sizes, it probably does not matter.  It would matter if we got into larger strings.


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 14 of 14
(980 Views)