CallumSamuels

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by CallumSamuels

  1. Hi, Apologies, I am new to programming and DaqFactory (although I must say I think its great!) I am trying to get the reading from my Druck PACE1000 barometer via ethernet, but I must admit I am not sure what I am doing. I have configured a device with the IP address; however, I am unsure of the port number or the protocol to use. Upon reading the manual for the barometer I believe the protocol is SCPI but it is not listed. Also, the socket port address is 5025? I simply just want a channel that will read the atmospheric pressure at the same rate my other channels take data. Could you give me some guidance? Thanks in advance! Regards, Callum I have attached the manuals from the device. PACE Ethernet Communication App Note Rev A (1).pdf K0470 Rev D User Manual.pdf
  2. Hi, Thanks for the information and the help. Problem solved. Greatly appreciated Callum
  3. Hi, Thanks again for the prompt reply. I believe I have traced it back to my start up sequence. As soon as I run it the timing lag issues begin. I have pasted the code below: global Offset = 0 using("device.labjack.") include("c:\program files (x86)\labjack\drivers\labjackud.h") AddRequest(0, LJ_ioPUT_CONFIG, LJ_chAIN_RESOLUTION, 12, 0, 0) AddRequest(0, LJ_ioPUT_AIN_RANGE, 0, LJ_rgBIP0.1V, 0, 0) AddRequest(0, LJ_ioPUT_AIN_RANGE, 10, LJ_rgBIP5V, 0, 0) AddRequest(0, LJ_ioPUT_AIN_RANGE, 11, LJ_rgBIP5V, 0, 0) AddRequest(0, LJ_ioPUT_AIN_RANGE, 2, LJ_rgBIP10V, 0, 0) AddRequest(0, LJ_ioPUT_AIN_RANGE, 3, LJ_rgBIP10V, 0, 0) AddRequest(0, LJ_ioPUT_AIN_RANGE, 4, LJ_rgBIP5V, 0, 0) AddRequest(0, LJ_ioPUT_AIN_RANGE, 5, LJ_rgBIP5V, 0, 0) AddRequest(0, LJ_ioPUT_AIN_RANGE, 6, LJ_rgBIP10V, 0, 0) AddRequest(0, LJ_ioPUT_AIN_RANGE, 7, LJ_rgBIP10V, 0, 0) GoOne(0) What I am trying to do here is set the range of the channels and specifiy certain ones as differential (as in Ch0 + and Ch1 is the -). Is seems the issue is with the following line: AddRequest(0, LJ_ioPUT_CONFIG, LJ_chAIN_RESOLUTION, 12, 0, 0) Can u spot anything wrong? I am using a LabJack U6-Pro. maybe the line isn't needed or I am setting the resolution wrong. Thanks as always!
  4. Hi, Thank you for the prompt reply. I was quite sure your answer would solve the problem; however, unfortunately is hasn't I have changed my conversions - the ones that reference other channels/variables I have added a [0] there. I have installed the latest drivers from LabJack and ensured no other processes involving the LabJack are running. I created a new file with just one channel and tried to get a timing of 0.5; however, the same issue appeared. Could this be a hardware problem? Thanks Callum
  5. Hi all, I am experiencing the following error when trying to set my sampling rate to less than 2 seconds: "C1038 Timing lag, data acquisition stalled." I don't believe I am using excessive channels so unsure why I am getting this issue. I understand it cannot receive information in time but I don't think my setup is overly complex so perhaps something else is causing this? I have attached the file to this post. Any help would be greatly appreciated. Regards, Callum Wafer Interface.ctl
  6. Hi All, I have a button that when clicked records a value and saves it in a test channel (D to A). I was wondering if I could have a separate button that I can use to remove the last entry? If so, how would I go about this? Thanks a lot Callum
  7. Thank you for the reply. I am still a little confused. When you say to calculate the means on that data at the same time how would you go about this? Would that be in the expression in the export set or as a sequence file after? I am sorry I am really new to this. I want to click a button which takes say 5s seconds of readings, averages them and saves the mean value as maybe a global variable? that I can use to plot on a graph. I want to do this 5 times with i guess 5 seprate buttons to produce a graph.
  8. The first thing I am trying to do is read the values from my export set file and save them in an array variable that I can then use in pages I have tried using File.Open and File.ReadDelim to access the column but its too code-y for me 😢
  9. Hi all, I apologize now I am a complete beginner with this software and data acquisition in general. I have exported two sets of mass flow rate data using an export set (10seconds worth) which is great; however, what I want to do now is use the data and find the average of each set of mass flow rates and store it so I can plot them against each other - the intention is to then incrementally increase the mass flow rate to build a plot of the relationship between the two sets of data and use linear regression to get a discharge coefficient. My plan (perhaps others have a better idea): 1. use a button to begin a sequence that triggers the export set to record for 10s. 2. use another button that begins a sequence to read the data in the export set and calculate an average for each mass flow rate sets 3. average value is then plotted on graph 4. increase the mass flow rate at the wall and repeat procedures 1-3. 5. when I have values for a range of mass flow rates, use a sequence and linear regression to determine the discharge coefficient, d_c (mfr_1 = d_c mfr_2) 6. discharge coefficient then saved as global variable to be used going forward. Does this sound like right workflow and simplest way to do thing? I am not very good at programming/code heavy stuff so hoping someone can help. At the moment I am stuck at step 2. Thank you all for your time Callum