LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ao write buffer INDICES

I am using a pci-6711 to output about 40k lines of scaled data from a file on two channels at 200hz. I am using the ao buffer write in the regeneration mode with the buffer set to the exact line size of the data (40k). What I to do is compare the indices with the scaled data array and the output mark from ao write buffer using the index array. In trying this I noticed that the write mark starts at somewhere about at the 200 mark and increaments at about 20 marks during the 200ms while loop rate. Is there any way to start the write mark at zero and increment at my current ~20 marks?
0 Kudos
Message 1 of 5
(2,713 Views)
Hello p901,

The output mark value is returned by the driver so there is no way to actually change the value. However, if you are just worried about the 200 mark offset, you can always just subtract 200 from it in the loop and this will programmatically start the output mark at zero. Hopefully this is what you are trying to do, if not, feel free to clarify.

Thanks!
E.Lee
Eric
DE For Life!
0 Kudos
Message 2 of 5
(2,709 Views)


@E.Lee wrote:
Hello p901,

The output mark value is returned by the driver so there is no way to actually change the value. However, if you are just worried about the 200 mark offset, you can always just subtract 200 from it in the loop and this will programmatically start the output mark at zero. Hopefully this is what you are trying to do, if not, feel free to clarify.

Thanks!
E.Lee




Subtracting the offset does work.
What I what to achieve is pausing the generation at the last value in the buffer for several minutes before regeneration starts. Is there anyway to pick a value to pause at? Will the staging list in AO control work for my ao board?
0 Kudos
Message 3 of 5
(2,689 Views)
Hello p901,

Depending on why you are trying to pause the generation, the easiest thing to do might just be to do a finite generation, over and over again. Everytime you output the buffer, you would just stop the task. The AO circuitry will keep outputing the last value that you wrote to the channel. Then, you could just recreate the same task and run it again. If this is not a solution for your system, please give us some more information on why you are trying to pause the generation.

Thanks!
E.Lee
Eric
DE For Life!
0 Kudos
Message 4 of 5
(2,671 Views)
Thanks! I totaly forgot about the number of generations that can be selected. All I had to do is select one generation and restarting another generation after a lapsed time had expired.
0 Kudos
Message 5 of 5
(2,655 Views)