04-09-2009 02:57 PM
Hello Steve and Diane,
I have a new update.
I began reading about the the DAQmx Read properties, to see if I can monitor something.
I put an indicator for the "Total number of samples acquired" property. The context help for this does not clearly explain what this is, but I found out that this contains the accumulated value of all samples acquired since the VI started running.
This value keeps increasing, even after the VI stops saving data to file. I checked the increase in number of this property, and it matched perfectly what I expected.
So the DAQ board still is acquiring, and the counter is still generating the pulse train correctly, but for some reason the "available number of samples"property that I use to control the case statement does not function correctly anymore.
Is there a possible bug in LabView 7.1?
Regards,
Victor
04-09-2009 03:07 PM
So what happens to the "available number of samples" value? Is it stuck at 0? Stuck at some other number? what does it do when you stop writing?
P.S. Since you don't use a shift register, you're appending that "available number of samples" value to an empty array every time. Not a useful plan. But that's nothing to do with your problem.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-09-2009 03:26 PM
Hi Steve,
Thanks for getting back to me and helping out !!
Yeah, that array you're talking about is something I just added a few moments ago. I did not get a chance to check it's operation yet. I just stuck that in there to see what info I can gather. So you're saying I'm not appending the "available number of samples" value correctly to this array?
"the "available number of samples" value? Is it stuck at 0? Stuck at some other number?"
Apparently it's stuck at zero, at least that is the number I see displayed on the indicator all the time.
"what does it do when you stop writing?"
What do you mean? Sorry, I did not understand your question.
Regards,
Victor
04-09-2009 03:47 PM
So you're saying I'm not appending the "available number of samples" value correctly to this array?
Well, your code takes an empty array, appends one value, and displays it.
The next time thru, you start with an empty array, append one value, and display it.
You're not appending to the array you're displaying, you're appending to an empty array. Every time.
"what does it do when you stop writing?"
What do you mean? Sorry, I did not understand your question.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-09-2009 03:52 PM
Thanks Steve,
I fiixed the array building. I now use a shift register. Will this create a new problem for me? cause it's adding a value to the array every 50mS. will the VI run out of space?
I'll turn on the highlighting next time it stops saving, and let you know.
Victor
04-09-2009 04:12 PM
I fiixed the array building. I now use a shift register. Will this create a new problem for me? cause it's adding a value to the array every 50mS. will the VI run out of space?
Blog for (mostly LabVIEW) programmers: Tips And Tricks