LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI I/O Trace serial port data format

I captured serial port data from LabView with I/O Trace. However, the data is in ASCII format. Is it possible to capture the data in hex? below is an example of my data.

thanks

 

2417.  VISA Write ("COM14", "ÀP.À")
Process ID: 0x0000146C         Thread ID: 0x0000080C
Start Time: 13:31:53.095       Call Duration 00:00:00.000
Status: 0 (VI_SUCCESS)

2418.  VISA Get Attribute ("COM14", 0x3FFF00AC, 6)
Process ID: 0x0000146C         Thread ID: 0x000014B0
Start Time: 13:31:53.345       Call Duration 00:00:00.000
Status: 0 (VI_SUCCESS)

2419.  VISA Read ("COM14", 6, "À....À")
Process ID: 0x0000146C         Thread ID: 0x000014B0
Start Time: 13:31:53.345       Call Duration 00:00:00.000
Status: 0x3FFF0006 (VI_SUCCESS_MAX_CNT)

0 Kudos
Message 1 of 4
(3,003 Views)

Is there a communication issue you are trying to detect using the I/O Trace? It might be more helpful to create a post about the errors you are seeing. 

Is there a motivation behind why you would like to see these as hex? 

0 Kudos
Message 2 of 4
(2,926 Views)

I just like to have the data in a readable format.

I can log the data myself in my application, which i did. Just wondering if there is a trick i missed.

thanks.

0 Kudos
Message 3 of 4
(2,900 Views)

Since the VISA Write takes in a string parameter for the command which is by definition ASCII characters, the I/O trace is simply displaying the NI API calls.

I'd utilize an online ASCII to hex converter if there are specific write values you'd like to check, or log the data that is being written separately in your application, or utilize LabVIEW probes. 

0 Kudos
Message 4 of 4
(2,881 Views)