Is there a way to receive 0/1 values for the captured samples using FDwfDigitalInStatusData? I tried transmitting ASCII "a" but the result for each channel is different.
I expected and wanted a result of Binary (1000 0110) using ASCII "a", but the actual result that I got was different for each DIO channels.
Actual result using DIO #0 = (1)000 0(1)(1)0
Actual result using DIO #1 = (2)000 0(2)(2)0
Actual result usin
See the following code:
- Selects the 3rd device configuration for AD1/2 which allocates 16k digital buffer.
- Uses record mode with compression to capture more samples than the device buffer.
Function decodeUart(ByRef rgData() As Byte, ByVal cSamplePerBit As Integer, ByVal pin As Integer) As List(Of Byte)
Dim pData As Boolean
Dim fData As Boolean = True
Dim cSamples = rgData.Length
Dim rgUart As New List(Of Byte)