Forum Home › Forums › Communicating with Devices › SNMP Device – Value return a comma
Tagged: snmp;comma;commas
- This topic has 8 replies, 3 voices, and was last updated 4 years, 1 month ago by Mikhail.
-
AuthorPosts
-
February 7, 2020 at 2:32 pm #6503ErwanParticipant
Hello,
I am a beginner in the use of RapidScada and I have just added my first SNMP line !
The communication seems to work, but the value returned by the SNMP driver contains several commas which gives me problem.https://zupimages.net/up/20/06/r8r9.png
Is it possible to delete the commas present in the returned result?Thank you!
- This topic was modified 4 years, 1 month ago by Mikhail.
February 7, 2020 at 3:32 pm #6505MikhailModeratorHello,
The screenshot is not available. Please upload it again.
February 7, 2020 at 3:35 pm #6507ErwanParticipantHello,
Please excuse me, I just uploaded my screenshot 🙂
URL : https://image.noelshack.com/fichiers/2020/06/5/1581089654-commas.pngFebruary 7, 2020 at 8:08 pm #6508manjey73Participantin appearance, this is like a number, the separators depend on the regional settings of the PC
If this is string data, it is unlikely to work without changing the driver…. formulas are useless, since you will only have the first 8 bytes
- This reply was modified 4 years, 1 month ago by manjey73.
February 7, 2020 at 8:45 pm #6510ErwanParticipantThe regional settings of my PC are currently set to “FR_fr” which does not use a separator.
Is it possible that the use of the comma separator is defined at the level of the KpSNMP.dll driver?
February 7, 2020 at 8:54 pm #6511manjey73ParticipantHow is the resulting number displayed in the Scada database?
Yes, you can define regional settings in the code. But I did not study this driver.
- This reply was modified 4 years, 1 month ago by manjey73.
February 7, 2020 at 9:07 pm #6513ErwanParticipantThe number stored in the database contains no commas.
Unfortunately, with no knowledge in development I would not have the capacity to change the driver.
February 8, 2020 at 5:02 am #6514manjey73ParticipantDo not pay attention, in SNMP, the variable itself is most likely still text with a label that it is a number. The Communicator displays it probably before sending it to the Scada database. Use the number format in the table to apply the correct multiplier
February 10, 2020 at 6:30 am #6522MikhailModeratorCommunicator works as system user, so it uses culture settings for “system”. I don’t recommend to change it, it may cause side effects. It’s just displaying that doesn’t affect real data.
You should open Administrator – Tools – Language and set fr-FR to apply culture settings to Rapid SCADA GUI and web interface. But currently the language pack doesn’t contain French. So settings affect date and number formatting. If you decide to create a translation to French and share it, I will assist you.
-
AuthorPosts
- You must be logged in to reply to this topic.