Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200288 occurred at DAQmx Write

Hi all I get this error

Error -200288 occurred at DAQmx Write

Possible reason(s):

Attempted to write a sample beyond the final sample generated. The generation has stopped, therefore the sample specified by the combination of position and offset will never be available.

Specify a position and offset which selects a sample up to, but not beyond, the final sample generated. The final sample generated can be determined by querying the total samples generated after a generation has stopped.

Attempted to Write Sample: 5001
Property: RelativeTo
Corresponding Value: Current Write Position
Property: Offset
Corresponding Value: 0

Task Name: Output

 

whe i write the second time a wafeform to the analog output

How can I fix this problem ?

Any help

 

Jürgen

 

PS

LabVIEW 2009 SP1

0 Kudos
Message 1 of 7
(6,098 Views)
0 Kudos
Message 2 of 7
(6,094 Views)

Hi Jürgen,

 

what hardware are you using? What are your channel settings in MAX? And what is your value for the control "Zeit ( sec )"?

Please have a look at the code I attached.

 

Stefan

0 Kudos
Message 3 of 7
(6,085 Views)

Thanks for your help

It brought me on the right track

Now it is working with small problem

when I start the waveform a second time with the same time nothing is happend but when I change the time a bit then it works again fine

 

Zeit are in secund

 

I am using LabVIEW  2009 SP1

USB 6215

I define the task in my INIT.VI

 

Jürgen

0 Kudos
Message 4 of 7
(6,072 Views)

Can you show your updated code and explain what "change the time a bit" means?

Tim
GHSP
0 Kudos
Message 5 of 7
(6,043 Views)

Hi See the attachment

 

Call the VITest.VI and run the VI

Press the button "Messung dynamisch"  motor is running

then press the button again mot is doing nothing and no error

then change the in the control "Zeit (sec) " the time to 5 and press the button "Messung dynamisch" motor is running again

 

So when you change the in the control "Zeit (sec) " then the motor is running

 

I hope that's explain it

 

Jürgen

0 Kudos
Message 6 of 7
(6,018 Views)

One thing that I see is that you need to change the tunnel on the read analog task to a shift register. Connect the task on both sides.

 

 

In the top loop the wait is not required since you are using the event structure.

 

19261i67EAF2B6692C1655

Tim
GHSP
0 Kudos
Message 7 of 7
(6,006 Views)