Programming x9c103 digital potentiometer to get a fixed output resistance

Is here anyone who can tell me how to program a x9c103 digital potentiometer to get fixed output resistance. I have tried everything but couldn't find its solution. There are some example codes available online related to x9c103 but all of them used a for loop which increments or decrements the resistance and this is not what I want.
If anyone knows the solution or knows about any other digital pot which can perform this task then please let me know and share it with me. Thanks in advance!!

There are some example codes available online

If you post an example, maybe we can help. If the example writes increasing and/or decreasing values it should not be too hard figure out how to write a constant value to the pot. Do the examples compile and run on your setup? Can you post a schematic of your setup?

Read the how to use this forum sticky to see how to post code. See #7.