Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML file not created #438

Open
2 of 4 tasks
eli-osherovich opened this issue Oct 20, 2023 · 2 comments
Open
2 of 4 tasks

XML file not created #438

eli-osherovich opened this issue Oct 20, 2023 · 2 comments

Comments

@eli-osherovich
Copy link

Describe the Issue
I am following the FAQ instructions to dump camera's XML file, but it does not work

To Reproduce
Steps to reproduce the behavior:
See the code below. After running it, there is nothing in /tmp/xml

Sample Code
I can show a piece of code that demonstrates the reported phenomenon:

  • Yes
  • No
(venv38)$ HARVESTERS_XML_FILE_DIR=/tmp/xml ipython
Python 3.8.18 (default, Aug 25 2023, 13:20:30) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.12.2 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from harvesters.core import Harvester

In [2]: h = Harvester()

In [3]: h.add_file("/opt/mvIMPACT_Acquire/lib/x86_64/mvGenTLProducer.cti")

In [4]: h.update()

In [5]: h.device_info_list[1]
Out[5]: {'access_status': 1, 'display_name': 'Specim FX17e(70:f8:e7:b0:01:ae)', 'id_': 'FX17e(70:f8:e7:b0:01:ae)', 'model': 'FX17e', 'parent': <genicam.gentl.Interface; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::TLInterface > *' at 0x7f85ec252570> >, 'serial_number': '076900035629', 'tl_type': 'GEV', 'user_defined_name': ' ', 'vendor': 'Specim', 'version': 'Version 0.3'}

In [6]: ia = h.create(1)

In [7]: ia.remote_device.node_map.DeviceTemperature.value
Out[7]: 45.4375

Expected Behavior
According to my understanding of the FAQ, an XML file should have been created in /tmp/xml

Screenshots
If applicable, add screenshots to help explain your problem; Note that it is not necessary to put everything as a screenshot! If the source is a text just paste the text because that is much helpful for us.

Configuration

  • OS: Debian (testing)
  • Python: 3.8
  • Harvester: 1.3.8
  • GenTL Producer: mvIMPACT
  • Camera: Specim FX17

Reproducibility

This phenomenon can be stably reproduced:

  • Yes
  • No.

If applicable, please provide your observation about the reproducibility.

Actions You Have Taken

Additional context
Add any other context about the problem here.

@eli-osherovich
Copy link
Author

Update: after upgrading to Harvesters 1.4.2 the above folder is removed by harvesters...

@Yasirsmb
Copy link

Now using current version of harvesters how can we create xml file and save it in local directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants