12-07-2011 04:31 PM
Hello, All,
Iam using NI6351. The sample clock was generated at the Ctr0,the PFI12 was connected to PFI0 which means the sample clock source from PF0. I wrote different data (1D Boolean array to 1D digital waveform) to port0/line0 and line1. Now I want to read the data I wrote to line1 from line2 (line1 and line2 are wired in hardware). The read task share the same sample clock with the write task. There're some data can be read back but they're not the same as I wrote. For example, I wrote 10 true and 15 false to the line 1. It should read back from line 2 also 10 true and 15 false. But actually I only probably got 5 true and 20 false. I think this difference induced by the sychronization between write and read tasks. Does anybody have any idea about how to sychronze the write and read tasks in my case? Any help and any idea or example will be greatly appreciated!
Fang
12-08-2011 05:22 AM
Please; i really need help. I spent a lot of time on this issue, but I couln't find the solution so far. I already read some solutions in forum, but they're not working in my cases. The attachment is my code.
Thanks a lot! Any help will be greatly thankful!
Fang