Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

problem loading datas into analogWaveform

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

Smiley Sad 

0 Kudos
Message 1 of 2
(6,397 Views)

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

0 Kudos
Message 2 of 2
(6,245 Views)