Hi Zhibang,
I don’t understand what the problem could be. It works fine for me. Here is a screen shot:
Note that I entered the FilePath using forward slashes “/” just as you did. Because I did not enter a final “/” the plugin added a backslash “\”, which is what
it should do, and it did this for you as well.
I don’t get any error, it is working OK for me to save files.
The only thing that looks unusual to me is that in your error message it seems to be replacing C: with a Chinese character. I don’t know enough about how Windows
handles other languages to know if this might be a problem. Perhaps the areaDetector code is not treating such characters correctly. Is it possible to try some other location that would not have a Chinese character in it?
Please send a screen shot of your screen.
What version of ADCore are you using?
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of shenzb--- via Tech-talk
Sent: Tuesday, March 2, 2021 3:46 AM
To: tech-talk <tech-talk at aps.anl.gov>
Subject: Mistaken code problem of file path in plugin NDFileTIFF
I am developing my areaDetector driver for detector Minipix on windows-x64. Here is a problem that when I tested setting FilePath in plugin NDFileTIFF,
a write error always came up. The beginning of the path string was wired. Like when I set the path "C:/Users/ihep/Desktop", it reported:
2021/03/02 17:27:07.396 NDFileTIFF:openFile error opening file
塁:/Users/ihep/Desktop\testTiff_000.tif
2021/03/02 17:27:07.396 NDPluginFile::openFileBase Error opening file
塁:/Users/ihep/Desktop\testTiff_000.tif, status=3
I tried caput and medm both, but neither worked. I don't know if there is any specical setup that I missed when I install areaDetector or something else.
Can anyone help? Thanks in advance.