Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Generation interrupted

Hello!

 

I have trouble when I generete signal with Analog output.The Daqmx that i'm using is NI-USB-6229 and i'm programming in VisualStudio .NET 2003

 

I'm generation non periodical signal in the four channels, and a digital signal that represent the cross over zero of one of the Analog channels. I had created the two task. The rate of the system is Fs=24000 Hz, and the length of each AO buffer is 2400. Basically in a loop i do

 

While (1)
                Me.ComputeAnlSignal

                Me.ComputeDigSignal
                DgWr.WriteMultiSamplePort(False, DigWave)
                AnWr.WriteMultiSample(False, DS)
End While

 

Using an osciloscope, the signal are generated ok. The idea of the app is to test one equiptment under development, and this equiptment has an interface with the PC. 

 

When I open the program interface of the equiptment, the generation of the signal stop, and an error appear, the text of the error is the following:

 

    >Message    "Measurements: Some or all of the samples to write could not be written to the buffer yet.

    >More space will free up as samples currently in the buffer are generated.
    >
    >To wait for more space to become available,
    >use a longer write timeout. To make the space available sooner, increase the sample rate
    >
    >Property: NationalInstruments.DAQmx.DaqStream.WriteRelativeTo
    >Corresponding Value: NationalInstruments.DAQmx.WriteRelativeTo.CurrentWritePosition
    >
    >Property: NationalInstruments.DAQmx.DaqStream.WriteOffset
    >Corresponding Value:
    >
    >Task Name: Digital
    >Status Code: -200292"   

 

I had tried to put de thread in the highest priority and set realtime to my App and the problem continues. Even more, if I open the Word, the generation stop too.I tried to generate the signal in an asyncrhonics methods,but the problems continues.

 

So, i don´t know how to solve it. Any ideas?

 

Thanks

 

PS:Sory for my english

 

0 Kudos
Message 1 of 2
(3,431 Views)

Hi Gonzalo,

 

Please, feel comfortable to type in spanish.

 

Cuál versión de driver estás utilizando? Ya has intentado actualizarlo? Si no, por favor, intente hacerlo utilizando el siguiente link:

 

https://www.ni.com/en-us/support/model.usb-6229.html

 

 

Espero que eso ayude, sino, por favor, envianos otro post.

 

 

Eric Milaneze

Applications Engineer

National Instruments

0 Kudos
Message 2 of 2
(3,357 Views)