Are There Macro SCPI Commands Available for the NHR 47XX Systems?

Updated Nov 6, 2024

Issue Details

The built-in touch panel for the NHR 4760 has an option to program macros but when reviewing the SCPI programmer's reference manual for this hardware, I don't see any macro commands listed.  Are there macro commands available in SCPI for this device?

Solution

There are SCPI macro commands available for NHR 47xx systems, but these are not fully supported by NI which is why they're not present in the SCPI manual for the NHR 47xx product line.  We do provide the commands below along with an example sequence of commands that you can use at your own discretion.

 

Macro Commands:

[SOURCE]:MACRO:MODE OFF|INITIATE|RUN|LOOP
[SOURCE]:MACRO:PWIDTH <NRf>
[SOURCE]:MACRO:WTRIGGER

To use:

1. Set Macro mode to "INITIATE" [SOURCE:MACRO:MODE INITIATE]
2. Set each step in this order:
  a. Pulse width (dwell)
                [SOURCE:MACRO:PWIDTH <seconds>]
  b. Slew Rate
                [SOURCE:CURRENT|POWER|RESISTANCE|VOLTAGE:SLEW <rate>]
  c. Set Point
                [SOURCE:CURRENT|POWER|RESISTANCE|VOLTAGE <amplitude>]
  d. Wait for trigger (if desired)
                [SOURCE:MACRO:WTRIGGER]
3. Run macro
                [SOURCE:MACRO:MODE RUN|LOOP]
4. To stop loop:
                [SOURCE:MACRO:MODE OFF]

 

Additional Information

Below is an example sequence of SCPI commands that is set up to initialize with a current output of 7.75A and then loop between 5A and 7.75A, switching every 10 seconds:

// Initial setup
CURR 7.75
CURR:MODE ON

// Program macro - 2 steps
SOURCE:MACRO:MODE INITIATE    // Macro programming begins here
SOURCE:MACRO:PWIDTH 10
SOURCE:CURR 5
SOURCE:MACRO:PWIDTH 10
SOURCE:CURR 7.75

// Run macro continuously
SOURCE:MACRO:MODE LOOP  // Macro programming ends here

The example code above is provided as-is and is not fully supported by NI.