1. ncConfig ("CAN0", 8, {0x80000007,0x80000006,...}, {0x0007A120,0x00000001,...})
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:03.718 Call Duration: 00:00:00.071
Status: 0 (VI_SUCCESS)
2. ncOpenObject ("CAN0", 53412120)
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:03.799 Call Duration: 00:00:00.030
Status: 0 (VI_SUCCESS)
3. ncConfig ("CAN0::STD0x720", 7, {0x80000016,0x8000000F,...}, {0x00000001,0x000007D0,...})
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:10.378 Call Duration: 00:00:00.010
Status: 0 (VI_SUCCESS)
4. ncOpenObject ("CAN0::STD0x720", 53412456)
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:10.388 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
5. ncConfig ("CAN0::STD0x728", 7, {0x80000016,0x8000000F,...}, {0x00000000,0x000007D0,...})
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:17.358 Call Duration: 00:00:00.010
Status: 0 (VI_SUCCESS)
6. ncOpenObject ("CAN0::STD0x728", 53412784)
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:17.368 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
7. ncWrite (53412456, 8, "../c....")
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:46.100 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
> 8. ncWaitForState (53412784, 1, 2000, 18)
> Process ID: 0x00000DDC Thread ID: 0x00000B7C
> Start Time: 12:10:46.100 Call Duration: 00:00:00.000
> Status: 0xBFF62021
9. ncWrite (53412456, 8, "../c....")
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:46.100 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
10. ncWaitForState (53412784, 1, 2000, 3)
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:46.110 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
11. ncRead (53412784, 16, "IN..La..0.......")
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:46.110 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
12. ncWrite (53412456, 8, "!.......")
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:46.110 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
13. ncWaitForState (53412784, 1, 1000, 3)
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:46.110 Call Duration: 00:00:00.100
Status: 0 (VI_SUCCESS)
14. ncRead (53412784, 16, ".b..La..../r....")
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:46.210 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
15. ncWrite (53412456, 8, "!.......")
Process ID: 0x00000DDC Thread ID: 0x00000B7C
Start Time: 12:10:46.210 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
> 16. ncWaitForState (53412784, 1, 1000, 0)
> Process ID: 0x00000DDC Thread ID: 0x00000B7C
> Start Time: 12:10:46.210 Call Duration: 00:00:01.002
> Status: 0xBFF62001
etc......
My visual basic code is
i=0
Do
Status = ncWrite(HandleNameTX, Len(Transmit1), Transmit1)
Status1 = ncWaitForState(HandleNameRX, (NC_ST_READ_AVAIL), 2000, State)
If Status1 = 0 Then
Status2 = ncRead(HandleNameRX, Len(Receive1), Receive1)
If Receive1.Data(0) = 48 Then
j = 0
Do
Status = ncWrite(HandleNameTX, Len(Transmit2), Transmit2)
Status3 = ncWaitForState(HandleNameRX, (NC_ST_READ_AVAIL), 1000, State)
If Status3 = 0 Then
Status = ncRead(HandleNameRX, Len(Receive2), Receive2)
End If
j = j + 1
Loop Until (Receive2.Data(0) = 16 Or j > 10) = True
'Status = ncWrite(HandleNameTX, Len(Transmit1), Transmit1)
End If
End If
i = i + 1
Loop Until (i > 10) = True