Dobbeljoe

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by Dobbeljoe

  1. I want to change the file name on a daily basis, using the date in the name, very much like example 9.10.6 in the DF User Guide.

    Based on the example I created the document as attached. The data is logged into the first file that I manually created in the logging set. At midnight the logging stopped because there was no file created in with the 'correct' name.

    image.png.f31a0faa5a41bc31e9255caaf607feab.png

    The new logging file (with the correct name/date) appears in the Logging set.

    image.png.aa7687c2de69f6061f64c44d08181d20.png

    But the data file is not saved. You have to do this manually using the 'Browse' and then 'Save' button. Then (I think) you have to stop and start the logging set in order to start the actual logging.

    According the example this should run fully automatically, so what is my mistake here?

     

    Klimaat laboratorium Daily Logging with wait until.ctl

  2. I have an absolute wire encoder that I want to connect to a U6 Pro Labjack (ID 6) in combination with DaqFactory.

    Channel A is connected to FIO0 and channel B to FIO1.

    The encoder works OK with the LJ Control Panel. The counts go up and down when I move the wire up and down.

    In Daqfactory I cannot get it to work. I created a sequence that (I think) is a copy of the Quadrature example in the Application Guide.

    However, I get an error message C1000 as shown in the attachment.

    What do I miss?

    Encoder text.jpg

  3. Dear, 

    I have a test set-up with 3 lasers to measure the distance between the lasers and an object.

    I want to measure the actual distance and also the change of distance over time. Therefore I want to zero the data of all three lasers.

    I use 'zeroPoint' for this. I would expect that I can create three 'zeroPoints' (e.g. 1,2 and 3), one for each laser.

    But it seems that I can use only one 'zeroPoint', meaning that the same value is subtracted from the data of all three lasers.

    How can I set the zero for each individual laser?

    Below is a screenshot of the page that is relevant (page 2).

    I also attached the prototype of the DF application so it is hopefully more obvious what I am trying to explain here. 

    image.thumb.png.f9df44b55f29e986f4c30f40d12cba9f.png

     

    Laser Kruiptest English v5.ctl

  4. Thanks for the support. I tried out the example you sent me.

    I have connected my top sensor to FIO0 and my bottom sensor to FIO1.

    When an object passes the top sensor, the time display stays at 0 seconds, which is good because the timer should now start at the falling edge produced by the top sensor.

    When the object passes the bottom sensor, the display shows a very low value, even if the object (in this case my hand) passes the bottom sensor seconds after it passes the top sensor (see figure).

    In fact, even if my hand only passes the bottom sensor, a value is shown (again a very low value). In this case the timer should not be started at all.

    It seems that the timer is started by the bottom sensor (FIO1) and also stopped by the same sensor. It looks as if the time duration of the falling edge (from high to low) is measured and displayed.

    image.png.8b11c3caa090857a95cd15bd5c0363be.png

     

  5. I have been experimenting with the Labjack U6. In the documents, the line-to-line measurement requires mode 14 for both timers. Unfortunately there are only 13 modes available in the mode menu of panel 'Configure Timers and Counters' of the U6 Test Panel.  The line-to-line measurement mode seems to be missing.

     

  6. Thanks for the fast reply.

    I plan on using a Labjack U6. I am happy to read that it should be possible to measure such short intervals. 

    I am going to try to follow the Labjack tutorials on this topic. At first glance it seems rather complicated. So far I have only limited experience with DaqFactory.

  7. I want to measure the speed of an object. The object passes two optical sensors, causing the output of the sensors go from high (~10 Volts) to low (~0 Volts) and back again.

    In order to measure the speed I would like to measure the time between the two respective falling edges of the signals coming from the two sensors. I want to start the measurement at the first falling edge and stop it at the second falling edge. In the worst case the time between the two edges is extremely short, i.e. some microseconds.

    I am thinking to measure/count the clock pulses between the two events, or perhaps count the number of data points, providing that I can measure and record at a very high sampling rate.

    Does anyone have an idea how to achieve this?

  8. On Page 1 of my application I have a table, a descriptive text and a button. This button is supposed to print the complete page.

    The action of the button (with the text 'PRINT') is set at 'Print Preview Page' with page 1 as input. When I push the button I get a page preview that shows only the descriptive text very, very small. The rest (table and button) are not visible at all.

    What do I do wrong?

  9. Hello Guru,

    It works.

    I have one new question, hopefully this is the last time I bother you.

    The program now works as required, meaning that when I push the button 'Take Sample' only one reading is captured. (this was not so well explained in my first message to you).

    At the moment my prototype looks as image 1. The software calculates the mean of 10 data captures using a (probably clumsy) expression as shown in image 2.

    This way, I am "stuck" to the number of 10 captured data points.

     I would like to improve this calculation such that the value shown in 'Mean' shows the running average. So if I capture just 1 data point it shows the mean of this 1 data point, if I capture 2 data points I get the mean of 2 data points and so forth.

    Is there a 'standard' expression/method for this?

    Prototype so far.JPG

    mean calculation.JPG

  10. Hello Guru,

    Thanks again.

    When using this script the Windows Explorer screen appears (as expected) where I can fill in the file to save the data to (see first image)

    However, the data is not logged to the file I input here. Instead it still keeps on logging to the file that is present in the Logging screen (see second image).

    Can you please help me out once again?

    image.png

    image.png

  11. Wow, thanks for the fast reply!

    The software works fine.

    Just one more question about writing to file: I want to log the data to file. Right now I manually set a file name in the DAQFactory Logging page and then start the logging with a button. How can I get the software to ask for the name of the file where to log to before starting the logging?

  12. I get data in on an analogue channel. I would like to have a knob that sets the data to zero (i.e. remove offset) as long as the knob is active.

    Then I would need (say 10) single datapoints that are collected (and logged/stored/exported)  whenever I push another knob. The datapoints should be shown in a table and finally the mean value of the collected datapoints should be shown.

    Has anyone some tips and hints on how to achieve this? I am completely new to DAQFactory (I did read the manual several times but not too successful until now)