Jump to content

rasmusvt

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by rasmusvt

  1. EDIT: This issue has been resolved using the solution mentioned in the question. Would be great if anyone could comment on whether or not this is a good way of solving this issue, or if there is a better way. I am writing a program that collects samples from two channels from a DAQ Board. In total it reads up to 5000 times per pixel, and records images up to 150x150 pixels. This means I get a problem with the buffer size, in that I get the error -200279 saying I have attempted reading data that is no longer available. I've been trying to find a way to flush the buffer after each pixel. Is there an easy way to do this? Would for example clearing the DAQ task and opening a new one for each pixel work?
  2. Hi everyone! I am currently designing a lab setup, where I need to take measurements from two devices simultaneously. I am dependent on polling one of the devices (a 1-axis stepper) for its position, while the other is a simple readout from a DAQ-board. My problem comes in the form of a low sampling rate. I have included a control that (is supposed to) enable users to set the sampling rate. I then pass the reciporcal of this as the argument for a time delay within a while loop that takes one measurement (polls the stepper and reads a single value from the DAQ board and writes to a spreadsheet file). However, the sampling rate is quite limited, and over the course of 15 seconds, it takes about 600 samples when setting the sampling rate to 1000 S/s. This doesn't seem to change when setting the sampling rate to other values. Does anyone recognize an obvious limitation to my way of implementing this? Am I using the timer wrong? Is there an obviously better way of implementing this? Thank you!
  3. Thank you,this achieved exactly what I was looking for!
  4. Hey! I am pretty new to LabVIEW, and have just encountered a problem I am looking for a simple solution to. I am collecting samples from two channels on a NI-DAQ-Device. The DAQmx Read-VI outputs a 2D array, where each row represents one channel. I want to write this data to a file in the following format: sample 1 from ch1; sample 1 from ch2 sample 2 from ch1; sample 2 from ch2 etc; etc Is there an easy way to do this? Thanks!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.