Log Bit Status
Posted: Mon May 06, 2024 4:50 pm
Hello Dear TOM
I added a checkbox in "ToolSetupTPPage". When it is active, I want to print the status of virtual bits between 1024-1120 to the "Z:\\OILOG.bin" file once a second as 96-bit data, for example: If bits 1024, 1029,1120 are active, they are 96-bit. The data should output like out.txt:
So the first bit represents 1024, the 2nd bit represents 1025, the 3rd bit represents 1026.... 96 bits represent 1024.
Note : I could not edit the data from the GetVirtualBits command so that the first bit represents 1024 and the last bit represents 1120.
Can you help me with the code, good work.
I added a checkbox in "ToolSetupTPPage". When it is active, I want to print the status of virtual bits between 1024-1120 to the "Z:\\OILOG.bin" file once a second as 96-bit data, for example: If bits 1024, 1029,1120 are active, they are 96-bit. The data should output like out.txt:
So the first bit represents 1024, the 2nd bit represents 1025, the 3rd bit represents 1026.... 96 bits represent 1024.
Note : I could not edit the data from the GetVirtualBits command so that the first bit represents 1024 and the last bit represents 1120.
Can you help me with the code, good work.