LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 200284 occurred at DAQmx Read (Counter U32 1Chan 1Samp).vi:5

Hi everybody! I am using LabVIEW 8.0. I'm new to LabVIEW and the code that I'm trying to fix is actually made by some other person. (This is my first problem 😄 heheh)

Anyway, my program is supposed to start getting data continuously and writing it to file when hitting start. This works, but if I press stop and then start again it returns this error code: Error 200284 occurred at DAQmx Read. I have tried to read some other threads about the same problem but I haven't figured out a solution 😛 I hope someone could help me with this 🙂

I have attached the code here. I know it's quite big, I have cleaned it up a lot already, but this was the best I could do 😛 Well, I hope I gave enough information about my problem !

Maria
0 Kudos
Message 1 of 12
(5,255 Views)
Hi Maria,

The error that you are getting is a timeout error which means that samples are not being acquired. The DAQmx read VI is probably in the Read Counters for Initialize.vi. I was wondering if you were using a sample clock or a trigger in this acquisition. For the sample clock, if it is too slow it will cause this error. If it is waiting for a trigger and does not receive one, it will also throw this error. For more information you can check out this article. If this does not help, please attach the subVIs so we can see where the acquisition actually takes place. I hope this helps.

Regards,
Kent
Applications Engineer
0 Kudos
Message 2 of 12
(5,228 Views)
Hi Kent!

Thank you so much for replying. I have read the link you sent me already before and I have tried to make some changes but the problem still exists.. I'll attach the sub vis here, if you could take a look at them 🙂

Thank you once again for your help!

Maria
0 Kudos
Message 3 of 12
(5,204 Views)
Oh, I forgot the other subvis..

Maria
0 Kudos
Message 4 of 12
(5,197 Views)
Hi Maria,

I was wondering what signal you have connected to PFI36 on your device. This should be the external clock for the counter operations. If this clock is not present no samples will be acquired and it will timeout. Also, what PXI device is this?

Regards,
Kent
Applications Engineer
0 Kudos
Message 5 of 12
(5,158 Views)
Hi Kent!

The device is PXI-1031. And actually PFI36 isn't connected anywhere, so I guess that could be the problem..

Thank you very much for your help 🙂

Maria
0 Kudos
Message 6 of 12
(5,132 Views)
Hi Kent!

Thank you once again for your help! I think the error was indeed caused by the timing source and the fact is that there's nothing connected to it. But, I would like to ask you still something. Do you know what kind of external clock could be hooked up to this? I actually don't know what the writer of this code had been thinking but I was thinking that maybe you would have some kind of idea what it could be 🙂

Thank you!

Maria
0 Kudos
Message 7 of 12
(5,074 Views)
Hi Maria,

If the default values are correct, it seems that a 100kHz clock is required. You can either supply an external 100kHz TTL signal or use the 100kHz timebase from your DAQ card. You can check out this article more information on how to access this timebase.

Regards,
Kent
Applications Engineer
0 Kudos
Message 8 of 12
(5,048 Views)
Hi Kent!

Thank you for your advice. I tried to use the 100kHz timebase from DAQ card, but it gave me a new error (Error -89136) that says "Specified route cannot be satisfied, because the hardware does not support it."
We also took a look at the articles and tried to follow the instructions to do this. In addition we tried to route the 100kHz timebase to different PFIs. I don't know if this a right thing to do, but we were trying 😛
Could you give me more advice on this?
Thank you so much for your time 🙂

Maria
0 Kudos
Message 9 of 12
(5,040 Views)
Hi Maria,

I assume you are using a PXI-6008 counter card. If you want to use the internal clock over an external clock, you can find out what internal routes can be made by lookng at the device routes in Measurement and Automation Explorer (MAX). There is more information about that here. The only PFI pin that can be internally routed to the 100kHz timebase on the NI-6008 is PFI3. You can use the DAQmx Connect Terminals VI to route your timebase to the PFI pin. Let me know if this gets you further.

Regards,
Kent
Applications Engineer

0 Kudos
Message 10 of 12
(5,015 Views)