07-10-2017 06:04 PM
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)
07-11-2017 06:14 PM
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?
07-18-2017 06:20 PM
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.
07-19-2017 08:46 AM
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.