Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-Sync Python API availability for PXIe 6672 Synchronization module

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

0 Kudos
Message 1 of 3
(643 Views)

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.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 3
(587 Views)

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

Message 3 of 3
(564 Views)