LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

the different result after building and on developing

Solved!
Go to solution

Who does anyone know this? I tested 'string to byte array'. I input the same parameter, but the result is different. How to get the same result?

 

Nuclamer_4-1747963274051.png

 

Thank you for taking the time to read my question.

0 Kudos
Message 1 of 8
(1,078 Views)

From the really tiny picture you posted (and attached), I cannot tell what you did, nor what you got.  Do you have a little VI that you would like us to look at? Please attach a VI (a LabVIEW file with the extension ".vi") and we will try it out and explain its behavior.

 

Bob Schor

0 Kudos
Message 2 of 8
(1,063 Views)

Block diagram is all like picture. I just used string to byte array. I didn't insert others.

0 Kudos
Message 3 of 8
(1,061 Views)

You wrote a VI and say that it gives "different result after building and on developing".  I cannot see the code, only a very tiny (unreadable on my laptop) picture that I cannot "run".  I asked you to post the code itself, that is, the VI that doesn't work.  You failed to do so.  OK.

 

So what do you mean by "after building" (what does that mean, and precisely what did you do?) and "on developing" (same question, what did you do?).  

 

Is there anyone near you who knows LabVIEW?  Show her (or him) your code ad explain the problem.

 

Bob Schor

0 Kudos
Message 4 of 8
(1,051 Views)

Thank you for your reply, and sorry for the poor explanation.

 

My LabVIEW version is 2017.

 

My code is like the followings,

'string' control (named String) is connected with 'string to byte array'. 'string to byte array' is connected with 'array' indicator (named unsigned byte array).

 

When I run the VI on developing,

I input '사랑입니다.' in string control. The output (value of unsigned byte array) is 172 192 145 183 133 199 200 178 ....

 

I make executable file.' After building'  means executable file.

When I execute executable file by LabVIEW runtime 2017,

I input '사랑입니다.' in string control. The output (value of unsigned byte array) is 187 231 182 251 192 212 180 207 ....

 

I input the same input parameter (사랑입니다.), but I got the different output value.

 

 

0 Kudos
Message 5 of 8
(1,036 Views)
Solution
Accepted by topic author Nuclamer

I solved this. I have to change the setup('program name'.ini file) for executable.

0 Kudos
Message 6 of 8
(1,011 Views)

Hi Nuclamer,

 


@Nuclamer wrote:

When I run the VI on developing,

I input '사랑입니다.' in string control. The output (value of unsigned byte array) is 172 192 145 183 133 199 200 178 ....

 

I make executable file.' After building'  means executable file.

When I execute executable file by LabVIEW runtime 2017,

I input '사랑입니다.' in string control. The output (value of unsigned byte array) is 187 231 182 251 192 212 180 207 ....

 

I input the same input parameter (사랑입니다.), but I got the different output value.


I even cannot copy and paste your Korean chars into my English LV2016 string control, all I get are question marks (ASCII 63)…

 

When the StringToU8Array gives different result then you paste different data into the string control.

What happens when you show the input string in a string indicator set to show "hex display"?

 

When I input the hex values of your desired input string then I also get those byte values after conversion to U8 array:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(1,009 Views)

@Nuclamer wrote:

I solved this. I have to change the setup('program name'.ini file) for executable.


What did you need to change?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 8
(925 Views)