05-27-2008 08:20 PM
05-29-2008 09:23 AM
06-02-2008 03:39 AM
06-03-2008 12:28 PM
Hi Tom,
Thank you for your reply. I'm sorry about the description of the question. If you check my .txt file you can see that the first two samples are 4.xxx (high), but on the front panel I set the DO as "10......" but not "110...", and the rest are correct. Thus I thought the first sample is not correct, which was the previous amplitude of the DO (in the previous run, the amplitude of DO was 1). Or say, there was an extra sample. And I just wanted to solve that problem. I tried your first advice but it seemed not work. I didn't try the second one because I haven't got a generator at the moment. But I'll try it ASAP. Thank you again.
Regards,
Bo
06-04-2008 10:10 AM
06-06-2008 10:41 AM
Hi Tom,
Thank you for your advice. I ran the code but it seemed not work. I got several samples before the expected samples. Any way, I tried your another advice to remove the first samlpe by adding a case function in the loop. And the reresult is OK now. Thank you for your patience.
Best wishes,
Bo
06-06-2008 10:46 AM
06-06-2008 10:57 AM
Hi Tom,
I set the data of the front panel as "1 0 1 0 0 1 0 0 0 1 0 0 0 0 1", teh frequency was 100Hz, and the samples to read is "-1" which as default. I connected DO0 to AI1, and here is my data:
"0.010791
4.973658
0.011758
4.976235
-0.000160
0.011758
4.972369
-0.000160
1.156492E-6
0.011919
4.977040
1.156492E-6
0.000806
1.156492E-6
0.011436
4.982838
4.977201
0.011275
4.975430"
You can see that the first sample is still extra, and I hope I didn't misunderstand something. Thank you for your reply.
Best wishes
Bo
06-06-2008 11:20 AM
06-09-2008 05:31 AM