LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 200288 in Loop

Hi all,

 

I am trying to do scanning with a trigger, so created three channels with three waves generating at the same time. This program works well if it only run once, but get an error-200288 (atttemped write a sample before the final sample generated) in loop.  I think I should put some flag to make sure all the sample generated before writing, but I do not know how to do this. Or this is wrong?  Can anyone help?

 

The VI is attached.

 

Thanks,

Mei

0 Kudos
Message 1 of 5
(2,076 Views)

Hi,

maybe the following link can help you:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019O31SAE

 

Regards,

Kevin

0 Kudos
Message 2 of 5
(2,017 Views)

Hi Kevin,

 

Thanks, I tried according to this link before, but it does not work, maybe I misunderstood the explanation, can you explain more clearly?

 

Thanks,

Mei

0 Kudos
Message 3 of 5
(1,999 Views)

Hi,

 

I think the error occurs, because the loop ends, although the DAQ action isn't finished yet.

I haven't worked too much with DAQ, you could try to add something like a 'stop routine' (when stop is pressed, stop the entire DAQ action)

 

Regards,

Kevin

0 Kudos
Message 4 of 5
(1,977 Views)

If you are trying to continuously output a voltage, then your timing mode should be Continuous Samples.  I would also unwire the Number Of Samples input to the DAQmx Timing VI since you usually limit your buffer when you do wire it up.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(1,964 Views)