04-10-2008 12:22 PM
Hello lcdos,
I've tested out the above program on an M Series board (PCI-6251) and the digital lines retain the last value I wrote to them even if I stop and or clear the task. The only time they reset this value is if the card loses power. I will get a PCI-6534 to test this out, but I suspect the behavior should be the same. Can you take a look at the data you're writing to the card and make sure that the last value is the one you're expecting? If you're using an array from a control its possible you have trailing zeros in your array that you need to remove to avoid writing them to the digital line--this could make it look like the line is getting reset.
I'll post back when I've had time to test it out on the PCI-6534.
Cheers,
04-10-2008 02:30 PM
Hi, Brooks,
I can not express enough how thankful I am to your help. I had given up before seeing you latest reply. Your experimentation suggested me to have another look again at my code and I found my mistake. I did add trailing zero to make the total length to be multiple of 4, which this card requires. I never thought of this part could lead to the problem.
Thank you very very much!
chen