LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CString temp; temp.format("%c%c", 0x10, 0xff); lv code?

아래의 c++ code 를 lv에서는 어떻게 구현해야 하는지요?
 
CString temp;
temp.format("%c%c%c", 0x01, 0xff, 0xff);
..
 
이 code 는 com port로 보내기 위해서 만들어 졌습니다.
 
감사합니다.
0 Kudos
Message 1 of 2
(3,127 Views)
Hi advix,

to send those bytes to a serial port: use the byte array to string function!

First you should make an array of your bytes (0x01, 0xff, 0xff), then use the aforementioned function to get a string from the array. (Byte array and string are just different interpretions of the same data.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(3,105 Views)