取消
显示结果 
搜索替代 
您的意思是: 

Error 200457

I have aattched the Vi in which I am giving a ramp function to a laser diode and getting the data from 2 photodiodes. But I get the error 200457 and then it shows the error at add.vi that waveforms have different dt values but I am giving the same sampling frequency(500000) and number of samples(1000) for both the waveforms. How can I resolve this error.

 

Also I am running this vi for 500 iterations so based on fs of 500000 and no. of samples of 1000 I get the total time scan of 1s. But when I give run.vi and stop.vi inside the for loop total time scan increases to 3s. What is the reason for that ?

0 项奖励
1 条消息(共 27 条)
4,232 次查看

One difference between you two tasks for reading data I've noticed is that one DAQmx read is set at 1Chan NSamp mode, while the other is set at 1D Wfm NChan NSamp.  Is it for some reason neccessary that these be different?  My guess is that these differences is what's causing the error when you try to add them. 

 

In reference to the second part of your question, your loop slows down when you add more things to be done within it, as the loop cannot re-iterate until all tasks inside are done.  So adding another vi or anything, even a something like a math function within the loop will cause the loop to run slower.  But a side note--why are you using the start.vi--is it neccessary for your program?  And why do you have the start.vi (whether neccessary for your particular program or not) for one task before the for loop, and one after?  The one after the for loop does you no good--you've already gone through all your loop iterations in which you are reading from that device before you get to it.

 

Hope this helps.

0 项奖励
2 条消息(共 27 条)
4,205 次查看

IN my vi the chaneel set at 1chan1samp is DAQmx write and other one is DAQmx read ( N channels for is for multiple inputs). I don't think that is the reason for that.

0 项奖励
3 条消息(共 27 条)
4,194 次查看

I apologize--I didn't look close enough at your vi to see that one was write and one was read.  That wouldn't be the problem.  Adding indicators to the data wire before one of the waveform additions and one right after that addition, it does appear you are ending up with a larger dt after the addtion process for some reason.  You get 0.001 dt before, and then 1.00 dt after.

0 项奖励
4 条消息(共 27 条)
4,184 次查看

How do you set the indicators ?? If you run the vi with highlight execution on, you will see that it first shows the error at DAQmx write.

0 项奖励
5 条消息(共 27 条)
4,179 次查看

What error are you getting at DAQmx write--and does it show up the first iteration?  I was getting an error on the first iteration, and so changed the clock used for the write sample clock.  I just figured you had a different clock source that I didn't have--such as that on your device. 

0 项奖励
6 条消息(共 27 条)
4,174 次查看

It doesn't pop up the error as it does in sum.vi. But it shows -200457 error on second iteration

0 项奖励
7 条消息(共 27 条)
4,172 次查看

You are generating waveforms that have a Frequency of 500,000 Hz for 1000 samples.  You feed that into the Feedback node initializer terminals.  Then you do a DAQ read which is based on 1000 samples per second.  So your dT's do not match when you try to add together the newly acquired data to that in the feedback node.

0 项奖励
8 条消息(共 27 条)
4,169 次查看

I have specified 1000 for samples per channel in DAQmx read. It is not samples per second. So shoudn't it be correct as I have set the no. of samples as 1000 everywhere else. Even then I removed that value but getting the same error.

0 项奖励
9 条消息(共 27 条)
4,159 次查看

I tried replacing your feedback nodes with shift registers and got the same error. 

0 项奖励
10 条消息(共 27 条)
4,156 次查看