LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer Waveform(DBL) Array to .NET

Hello,

I'am using .NET to call a LabVIEW  Interop Assembly. The LabVIEW  Interop Assembly collects Waveform signal, then transfer  signal to .NET.

When the data type is Waveform(DBL) it runs well and .NET can receive the data. However, when the data type is replaced by Waveform(DBL) Array (multi-channel) .NET can not receive the data. A error occur as follows,

System.AccessViolationException
Message="尝试读取或写入受保护的内存。这通常指示其他内存已损坏。"

(In English"Try to read or write protected memory.This usually indicates other memory has been damaged")

The code in .NET used to receive the data is here,

data type: Waveform(DBL)

      DoubleWaveform x1;

      LabVIEWExports.WaveformOut(out x1);

data type: Waveform(DBL) Array    

      DoubleWaveform[] x2;
      LabVIEWExports.WaveformOut(out x2);

Is the code is wrong or something else? Hope you can help me. Thank you.

0 Kudos
Message 1 of 2
(2,355 Views)

up

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