Forum Replies Created
-
AuthorPosts
-
manjey73ParticipantIs it available in China https://dzen.ru ?
In Russia, because of problems with Youtube, too, many are switching to something elseIt’s probably easier for the developer to overload everything there.
manjey73ParticipantUpdate the module, this is a bug on version 6.3.0 when using the module from 6.2.1
manjey73ParticipantWhat kind of resources are we talking about?
If you do not want to use the Auto-Control Module, then you can simply enter the desired number. Or make yourself an enumeration command of several colors
manjey73ParticipantWEB ports are configured in IIS on Windows or in nginx settings on Linux
manjey73ParticipantChart Pro falls on the string variable – a white screen 🙂
manjey73ParticipantSomething is not working to display the number in binary form. It shows
!!!on the graph, in the table---
manjey73Participant
manjey73ParticipantFormat Channel – String
Data Type = ASCIIpublic string BitsView(double number)
{
byte[] data = BitConverter.GetBytes(Convert.ToUInt16(number));
uint N = BitConverter.ToUInt16(data, 0);
string bits = Convert.ToString(N, 2);
return bits;
}Make a calculation channel with the specified parameters. Use the specified formula. Displaying a string in the channel, but only for a byte. In order for the whole number to be displayed correctly, the formula needs to be refined.
manjey73Participant00000010 is a binary display of bits of a number, I don’t even know if there is support for such a display in the system. I wrote some kind of formula for this and displayed it as a string
manjey73ParticipantSet the HEX format in the channel, perhaps this will be enough for you.
There is a choice there
Hexadecimal
Hexadecimal 2 digits
Hexadecimal 4 digits
Hexadecimal 8 digits-
This reply was modified 2 years, 3 months ago by
manjey73.
manjey73Participant00000010 in the bit representation is the number 2 in the decimal representation. Do you need to see the number in some other format?
manjey73ParticipantGetAnyBits(Val(1080), 3, 7)
Val(XXX) – Where is the XXX number of your channel00000111 is the number 7 in the bit representation
When you need to select 3 bits in a value, you need to make a logical AND with the bits you need, and depending on which bits from the beginning you want to compare, you need to shift the bits you need so that they turn out to be starting from the zero bit00001111 is the number 15, which will correspond to four consecutive bits
00000011 is the number 3, which will correspond to two consecutive bits
01010110 – Your certain number for checking 3 bits. You need to shift this representation to position 0 (n = 2) 00010101 and make AND with the number 7 (00000111)
manjey73Participant00111000
The 0th bit is on the right. You need to shift by 3
GetAnyBits(Val(XXX), 3, 7) like this
-
This reply was modified 2 years, 3 months ago by
manjey73.
manjey73Participantpublic double GetAnyBits(double val, int n, int mask = 1)
{
ulong ulVal = (ulong)val;
return (ulVal >> n) & (ulong)mask;
}I haven’t checked, but the mask should work by default. The mask is 1. Which fully corresponds to the getBit formula
You can set 3, 7, and so on.
n is the offset
manjey73Participantpublic double GetThreeBit(double val, int n)
{
ulong ulVal = (ulong)val;
return (ulVal >> n) & 7ul;
}Here the number 7 (00000111) is used as a mask
-
This reply was modified 2 years, 3 months ago by
-
AuthorPosts