05-19-2009 02:05 PM
Hi, I'm a new user to Measurement Studio for VC++. I want to plot array of doubles using a AnalogWaveform class, then when I try to load the datas into AnalogWaveform class they dosn't appear.
This is my code
int SampleCount = 20;
System::DateTime time;
array<double,1> ^data = gcnew array<double,1>(SampleCount);
for(int i = 0;i<20;i++)
{
data->SetValue(i*i,i);
//meus_pontos->SetValue(i,2,i);
}
NationalInstruments::AnalogWaveform<double> ^my_wave = gcnew NationalInstruments::AnalogWaveform<double>::FromArray1D(data);
my_wave->ScaleMode = NationalInstruments::WaveformScaleMode::CreateLinearMode(2,0);
my_wave->Timing = NationalInstruments::WaveformTiming::CreateWithNoInterval(time);
I'm very disappointed
07-07-2009 09:33 AM
Hi Aliberto,
Wich Visual C++ version are you using? Wich Measurement Studio version? Is this the Enterprise or the Express package? Does any error appear when you run the program? Wich errors?
Eric Milaneze
NI Brazil