10-13-2014 09:20 PM - edited 10-13-2014 09:26 PM
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.
10-16-2014 12:49 AM
up