Code Comments
Programming Forum and web based access to our favorite programming groups.Hi guys, using the following VI, I'm unable to write 1k samples/second in my measurem ent file, it ends up with little more than one sample/second. Changing the t ime delay in the while-loop to a lower value helps nothing, I get less data points then. To be more exa ctly, I get more points but most of them contain zero values and are unusabl e. I specifically talk about the 3th and 4th flat frame, the first one is allri ght because it has different requirements. Thanks in advance Messapplikation.vi: http://forums.ni.com/attachments/ni...sapplikation.vi
Post Follow-up to this messageHi ReBoot, have you tried with setting the "number of samples" count for tho se "DAQmx Read" operations? Usually you shouldn't need the "Wait" function a s the DAQmxRead will have to wait for the number of samples... Messapplikation.vi: http://forums.ni.com/attachments/ni...sapplikation.vi
Post Follow-up to this messageSo I'd have to get the user input for the run time and multiply that by 1000 to get the number of samples? Will try that tommorow (I have LV only at wor k and I'm at home now).
Post Follow-up to this messageUsing the Read VI itself to time the measurement (numberofsamples=samplerate *desiredtime) is good, thanks! Where do I rate?
Post Follow-up to this messageHi ReBoot, you may rate once you have a minimum of 50 posts to the forum...
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.