From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ASCii code convert to decimal number

Solved!
Go to solution

Hi, Steven 

 

Thank you for your advice.

Root cause is the baud rate wrong selection.

 

best regards.

0 Kudos
Message 11 of 17
(648 Views)

Hi, Steven,

 

I found that i selected wrong baud rate . Correct baud rate is 115200.

I managed to read the ASCII input data.

I found new problem.

My program can read incoming data (data from R-Visa) but just starting period only.

Do you know why ?

Attached images files for your reference.

Download All
0 Kudos
Message 12 of 17
(626 Views)

Hi, Steven,

 

The data is from Bluetooth receiver.

Data format is ASCII.

 

best regards.

 

0 Kudos
Message 13 of 17
(630 Views)
Solution
Accepted by topic author Jeffrey_Oon

Hi Jeffrey,

 


@Jeffrey_Oon wrote:

I found new problem.

My program can read incoming data (data from R-Visa) but just starting period only.

Do you know why ?


Still no VI, just images: how should we edit/debug them with LabVIEW?

 

Replace the BytesAtPort by a numeric constant, and set its value to 999.

Also remove the "Wait before read" sequence frame completely with its content!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 17
(629 Views)

Hi, Gerd,

 

Sorry, attached my project file for your study.

 

Thank you very much.

 

Download All
0 Kudos
Message 15 of 17
(624 Views)
Solution
Accepted by topic author Jeffrey_Oon

GerdW already gave you good advice:

 

Replace the BytesAtPort by a numeric constant, and set its value to 999.

Also remove the "Wait before read" sequence frame completely with its content!

 

Here's a cleaned up version that should work. 

 

Visa Read Snippet.png

0 Kudos
Message 16 of 17
(617 Views)

Hi Steven,

 


@StevenD wrote:

Here's a cleaned up version that should work. 


More improvements:

  • No need to set the file position to "end" in each iteration. No need to set that at all…
  • I would replace the Num2String/FormatTimeDateString/BuildArray/ArrayToSpreadsheetString with just one FormatIntoString (in this simple case)…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 17
(611 Views)