11-27-2007 02:52 AM
11-27-2007 03:07 AM
Hello,
Your code will sum the values of all elements in the array. To get the number of elements in the array you could instead use an array size function.
11-29-2007 07:12 AM
11-30-2007 05:57 PM
What previous samples are you referring to if you are reading N Samples? Are you setting your VI to run continuously? If so, this is the incorrect way of doing things? From the above statement, it sounds like you want to acquire continuously. This requires a while loop. You can continually update the Sum by using shift registers to add the old Sum value to the sum of the newly acquired data.
show the teacher how many singals it generate in a certain period
Do you mean how many samples in a given period? How many DAQmx read operations? Could you please clarify on this. I attached an example image that may give you a good start on ideas of where to go next. Thanks