Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

warp mode

How to work "warp mode" (PCI-6133) in C++ or Delphi??
0 Kudos
Message 1 of 2
(2,948 Views)

 

Hi John28,

 

Have you seen the following document regarding warp mode?

 

Implementing Warp Mode on NI-6120 and NI-613x Devices

 

This addresses the topic in LabVIEW, but it should be exactly the same for C++.

 

You will need to perform VISA Writes to the device’s registers in address space 12 using the viOut16 and viOut8 functions.  These can be found in the VISA documentation.

 

ViStatus viOut16(ViSession vi, ViUInt16 space, ViBusAddress offset, ViUInt16 val16)

ViStatus viOut8(ViSession vi, ViUInt16 space, ViBusAddress offset, ViUInt8 val8)

 

You will need to specify the following parameters:

 

To Disable Warp Mode

viOut16

address space: 12

offset: x24

value: x3

 

viOut8

address space: 12

offset: x1D

value: x10

 

To Enable Warp Mode

viOut16

address space: 12

offset: x24

value: x5

 

viOut8

address space: 12

offset: x1D

value: xC

 

Keep in mind that when using warp mode, the first data point should be discarded.

 

I hope this helps.  Post back if you have further questions.

 

Ed W.

Applications Engineer

National Instruments

 

0 Kudos
Message 2 of 2
(2,935 Views)