09-09-2025 06:26 AM
Hello all,
When I press the "python" button on a page such as the one below, I would expect to see a piece of Python example code. This doesn't happen (on brave and microsoft edge). Could someone from Diadem fix this please?
https://www.ni.com/docs/en-US/bundle/diadem-api-ref/page/comoff/chnconverttimetonumeric.htm
In the offline help documentation it does work properly.
Many thanks!
09-24-2025 09:53 AM
Does anyone have any ideas for this?
Many thanks!
09-30-2025 01:30 PM
Same for me.
10-15-2025 08:01 AM
Hello,
The online documentation uses dynamic JavaScript to switch code examples.
Some browsers (especially Brave, which blocks scripts and trackers by default) may prevent the code toggle from working.
Edge may also block certain scripts depending on privacy settings or extensions.
| Option | How to Do It |
|---|---|
| Use Offline Help | Open DIAdem, go to Help > API Reference. The Python toggle works here. |
| Try Chrome or Firefox | These browsers are less likely to block the script. |
| Disable Shields/Extensions | In Brave, turn off “Shields” for ni.com. In Edge, disable privacy extensions. |
| View Page Source | Sometimes, the Python code is present in the HTML and can be found manually. |
Souha
10-17-2025 09:22 AM
Thanks! I'll give it a try.
The question behind the question is actually that I've noticed that Python in DIAdem works together quite poorly with AI chatbots. My suspicion is that this is so because of the lack of online python Diadem examples and documentation. So i was thinking if we can expose the DIAdem Python syntax better (by fixing this issue with the button), that would also improve the interaction with AI bots. However if it's because of script blocking (and the Python code is actually already there so that an AI bot can see it) then this wouldn't really make any difference.
If anyone has found another way to deal with this I would be very interested to hear!