Example Code

Synchronizing Multiple FGEN Arbitrary Function Generators (NI-TClk)

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Modular Instrumentation

    Software

  • LabVIEW

    Driver

  • Other

Code and Documents

Attachment

Overview

This code shows how you may synchronize multiple Arbitrary Function Generators with NI-TClk.

 

Description 

When you want to synchronize multiple SMC - Based devices it is important to use NI-TClk to ensure proper synchronization.  In the shipping examples there are examples for arbitrary waveform generators.  However, there are no examples that synchronize multiple arbitrary function generators like the 5402, 5406.  The following example demonstrates how one can modify those examples to be compatible with an arbitrary function generator. The example is a modified version of the 'FGEN ARB Synchronize (TClk).vi' example program. The only difference is the use of the "nifgen configure standard waveform.vi' instead nifgen create waveform (DBL).VI.  Once this change is made the 5402/6 will no longer throw an error and should be synchronized as desired.

 

Requirements

Software:
    Labview 2012 (or compatible)
    NI-Fgen driver which is compatible with your hardware and version of LabVIEW
Hardware:
    NI Fgen device

 

Steps to Implement or Execute Code

1. Select the name of function generators

2. Configure the sampling rate
3. Run the VI

 

Additional Information or References

Block Diagram:

132.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

Charley Dahan

Global Account Manager

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Ujjval
NI Employee (retired)
on

hi,

is this example supported by 5404?

5404 is a non-smc device and hence, it doesnt support tclk

i tried using this example with 5404 but tclk apis throw up an error of 'invalid sessions'

CharlesD
Active Participant
Active Participant
on

You are in fact correct the 5404 is not suprted by tclk as it is not an smc device this was an error when the example was first written.  As such the above example does not apply.  We will modify this example to ensure it is correct.

Sorry for the inconvenience,

Charley Dahan

Global Account Manager
Ujjval
NI Employee (retired)
on

thanks for making the necessary changes