06-02-2024 09:55 PM
Hi,
I can control the routing using the test panel on NI Maxx, but I was wondering if there is a ni-sync module available to use in python or a .dll that I can wrap into python. I can't find either or. This is for a test automation program that currently uses the nidcpower module available.
Any advice is appreciated. Thanks in advance
06-04-2024 06:59 AM
When you install the NI-Sync Software (possibly having to make sure to also install C development support when you get to the selection screen of what you want to have installed), you should end up with a folder under <Program Files>/National Instruments/NI-Sync which contains a NI-Sync C API Reference.chm manual.
This documents the various C API functions and constant definitions.
You also should find the according header file under <Program Files>/National Instruments/Shared/ExternalCompilerSupport/C/include.
Together with the knowledge that the according functions are from niSync.dll, you should be able to create a Python module that imports the necessary functions through ctypes.
niSync.dll should be automatically installed in your system directory when you install the NI-Sync software, so you should not need to try to find it at all but can simply specific to import the functions from niSync.dll.
06-05-2024 10:04 AM
Hi,
At the moment, there is not an official Python API for NI-Sync. But, I do have some sample code for Python which I attached below.
I hope this helps,
-Tyler