LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200284 by starting the measurement a second time

Hi everyone.

I have a question. We use Labview 7.1 and have a PCI6220 in combination with an a/d converter.

My program runs good. When i start, there is a whileloop that runs continuously and shows the data (after daqmx read) in  a chart.  I created one task with two signals.
Then if i put a button another measurement starts, and the first one is closed. When this measurement finished, the first loop runs again.  (hopefully somebody understand it ;S )
But then there is a problem. If i try to put the same button for the second measurement again, nothing happens. I only see the error -200284. How could it be, if in the first time works everything so great??
I read allot about the error, but in my case it has nothing to do with sample rate or timeout etc. I checked allot.
Both measurements start with "start" and stop with "stop". I use a high buffer and so on...

For the second measurement i use a triggersignal for start the data aquisation. . Could this be the problem?? The signal comes from a moving-table. But why doesn´t it work if  i put the button the second time?
I read something about external clock? Do i need this in my case? And if yes how  do i create on. Where is the place... at the timer vi ?

I hope so much that somebody can help me or give me some ideas to check.

Thank you very much.

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

Hi Anni,

do you create the task at the second run again? Can you show us some code?

Mike

0 Kudos
Message 2 of 5
(3,046 Views)
Hi.

I just create the task only one time at the beginning. In front of the loops. Both loops use the same route.
I have a really big and complex programm and i am not allowed to send it. But i will make some pictures.
Hopefully they help.

0 Kudos
Message 3 of 5
(3,044 Views)
Here are two pictures. The external loop is running when i start labview ( i need no triggersignal).
If i put a button at the frontpanel the internal loop is running ( i need there a triggersignal from my table). It is a continuous measurement. So  if there are enough points the loop stops and the external is running again. But when i want to start my internal loop again i receive the error "-200284".

I am so sorry for the disarrangement.  But i was in a hurry.
Download All
0 Kudos
Message 4 of 5
(3,040 Views)
Hello.
After a few tests maybe I know where is the problem. But until now i can´t solve it.
The internal loop has a trigger configuration. When i put the trigger off everything works fine. When i put it to Start - Digital Edge the internal loop runs only for one
measurement. This measurement is ok, there is data aquisation. Buf if i start the measurement a second time... there is a problem and no data aquisation.
Could it be, that i have to choose another configuration for the trigger and if yes what should i take?
The trigger signal comes from a moving table. It is a normal rectangular funktion.
What is when the table send the signal only one time or to an unfortunatly time??
How long is the "start" vi waiting for a signal and when does it search for the trigger?

Thank you very much for your help.

0 Kudos
Message 5 of 5
(3,004 Views)