03-12-2009 12:42 PM
03-12-2009 02:37 PM
03-16-2009 05:52 AM
03-16-2009 05:57 AM
03-16-2009 06:58 AM
03-16-2009 07:02 AM
03-16-2009 07:29 AM
03-16-2009 07:31 AM - edited 03-16-2009 07:34 AM
1) In your analog input task, you've added 20 channels. So, the order of the data in the array is simply the order in which you added the channels. Is what you have not working?
2) Since you are using numerics as display (not graphs), you don't need to use the Wfm datatype, and thus have all that coercing going on. I would setup the Sample Clock after your AI Task and wire it to Continuous Samples, "rate" of 1000, and set the polymorphic Read to 2D DBL NChan NSamp, and pick the data out of the resulting 2D array. Each row is a channel. Average the row to get a simple DBL value.
3) You don't have to wire a number to each of the Index Array inputs if you expect to get the data sequentially. When you drag the Index Array, LabVIEW assumes you want to get the data sequentially. (that was covered by Dennis as I was typing)
edit: yeah, You should not use the word "real time" and have a 1000mS loop! 🙂
03-16-2009 07:33 AM