Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

keep last value between loops

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,

Brooks
0 Kudos
Message 11 of 12
(862 Views)

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

 

 

 

 

 

0 Kudos
Message 12 of 12
(849 Views)