All Activity

This stream auto-updates     

  1. Today
  2. That depends a little. What data rate are you hoping to achieve? How many channels? Are you connecting over USB or Ethernet? What sort of math are you going to do?
  3. Sorry for my ignorance in advance. We have a requirement where we intend using the LabJack T7 (or similar) to acquire analogue input data and the fastest possible rate. The incoming raw data needs to be need to be processed through some fairly simple math computation, and stored. The storage period could range for a few minuets to 15 minuet blocks. Now, while the LabJack can manage the acquisition. My question relates to how fast the DAQFactory application can process and store that data. The graphic update is one thing, but we need to be sure that we are not loosing blocks of data due to a slow scan rate in the DAQFactory software. I'm keen to get your feedback? Cheers
  4. Last week
  5. AzeoTech

    Configuration file at startup

    You had #2 done in the document you posted, so all I changed was #1.
  6. txturbo

    Configuration file at startup

    Thanks, it's working now. 1. I got rid of the local debug = 2. I changed the file open from this private handle = file.Open(rootDirectory + "\Settings.json",1,,,1) private handle = file.Open(rootDirectory + "\Settings.json",,,1,,1) to this private handle = file.Open(rootDirectory + "\Settings.json",1,0,0,1) private handle = file.Open(rootDirectory + "\Settings.json",0,1,0,1)
  7. AzeoTech

    Configuration file at startup

    The problem is the second line in your class declaration: local debug = That is invalid. You either need to give it an initial value or don't include the = sign.
  8. txturbo

    Configuration file at startup

    I have been trying to get this to work but I get an error. I changed the attributes on file open to replace the blanks from the example above with "0" but that did not seem to help. I tried to set up global variables to match the locals from the class as well. I created a test file. I set up a sequence named createClasses with this: class CSystem local debug = local string rootDirectory = "c:\daqfactory" local mySetting = 5 local AnotherSetting = 6 local string AStringSetting = "Some string" function saveSettings() try private string out = toJson() private handle = file.Open(rootDirectory + "\Settings.json",,1,,1) file.Write(handle, out) file.Close(handle) catch() ? strLastError endcatch endfunction function loadSettings() try private string in private handle = file.Open(rootDirectory + "\Settings.json",1,,,1) in = file.Read(handle) file.Close(handle) fromJson(in) catch("F0002") ? "Settings not found, creating new file" saveSettings() endcatch catch() ? strLastError endcatch endfunction endclass Then I run a start up sequence with this: createClasses() global gSys = new(CSystem) gSys.loadSettings() I get this error: C1000 Channel or function not found: startup Line 3 - Uncaught error in sequence startup sysloadtest.ctl
  9. I'm not quite sure what you are doing, but as an alternative to the Set To action you can use a quick sequence and the system.EntryDialog() function. Something like: private datain = system.EntryDialog("Enter some data:", minVal, maxVal) if (!isempty(datain)) outputVar = datain endif minVal and maxVal are optional.
  10. AzeoTech

    Time since restart

    %j is day of the year. There is no 0th day of the year, so it always starts at 1. To do it you'd need to split it: "D: " + floor((SysTime() -(v.time_of_last_restart[0]))/86400) + FormatDateTime(" H:%H M:%M S:%S",SysTime() -(v.time_of_last_restart[0]))
  11. txturbo

    Time since restart

    I am trying to display the time since last restart but I get a day added to my result: I set a value at restart then display this: FormatDateTime("D: %j H:%H M:%M S:%S",SysTime() -(v.time_of_last_restart[0])) How do I avoid the offset?
  12. Is it possible to use an inline if to enter one of two possible values within a variable value component action? So for example I have a variable value component that I use an inline if to select display of one of two values. I would like to be able to use the action side to enter the value as the same variable selected in the inline if statement used within the main expression. I tried to use the set to selection and enter the iff in the action channel but it's not writing the expected result. Can I write a sequence that will take the output of the popup box and use the quick sequence action? Sort of like using the value part of a conversion?
  13. LabJackSupport

    I2C Questions

    We discussed this issue today as a group and noticed one other potential issue. It doesn't look like you properly define your "numWrite" or "array" variables. There is a chance that you could be instructing DAQFactory to write no bytes to the device instead of two. You can easily test this by modifying the line: AddRequest(ID, LJ_ioI2C_COMMUNICATION, LJ_chI2C_WRITE, numWrite, array, 0) to be: AddRequest(ID, LJ_ioI2C_COMMUNICATION, LJ_chI2C_WRITE, 2, array, 0)
  14. Earlier
  15. LabJackSupport

    I2C Questions

    It looks like your device isn't receiving an "ACK" from your I2C slave sensor so the I2C packet is failing. Can you double check the slave address and make sure that you have pull-up resistors installed? In our I2C app-note we recommend 4.7k resistors. If you haven't already tried switching to the EIO0 and EIO1 ports, please do that as well.
  16. The latest build of DAQFactory (but I'm not sure about the latest release) adds several options to the HTTP.Get() function. That function now looks like: response = HTTP.Get(URL, [remote path], [port], [extra headers], [secure], [get headers]) URL is the URL without HTTP:// and without any path, so for example "www.azeotech.com" Path is the path on the server, and defaults to "/" Port defaults to 80 extra headers is a string with any extra headers you want to add. They'll need to be formatted as if they were in the actual header as I believe they are just injected into the default headers. Windows handles this. Secure = non-zero does an SSL connection (https://). If 0, it is a straight HTTP connection If [get headers] is supplied and non-zero, then response is a 2 element array. The first element is the response content, the second element is the headers for the response. If [get headers] is 0, or not supplied, then response is just a string with the content.
  17. AzeoTech

    Page Draw Lag-High Latency

    Any chance you can either post your .ctl document or email it to us at support@ along with which page is causing you the troubles? I should then be able to quickly find the culprit
  18. 466/5000 hi, I have problems with a SCADA that has been developing, in a certain screen the "Page Draw" gets too high reaching figures of up to 15000ms making it impossible to use the SCADA on that screen, this only happens on a single screen, in the rest I have latencies between 50-100ms. I've been looking at your documentation but I can not find a reference to the reasons that can raise that latency (Page Draw). I hope your help, thank you and happy day.
  19. AzeoTech

    Install fails on Windows 7

    Hmm, that is very odd. No direct ideas. Any chance I can remote into your system at some point and see? Just email us direct at support@
  20. chrisp

    I2C Questions

    I am trying to interface with a STM microcontroller via Labjack, I know the I2C works due to testing with an Aardvark. However when I try to send data over the Labjack I am unable to send the data payload. There must be something wrong with my code, but browsing the limited docuemntatyion on the matter yielded little fruit. Any help would be apprictated. Thanks! My Code: using("device.labjack.") try include("c:\program files (x86)\labjack\drivers\labjackud.h") catch() include("c:\program files\labjack\drivers\labjackud.h") endcatch global ID = 0 ePut(ID, LJ_ioPIN_CONFIGURATION_RESET, 0, 0, 0) AddRequest(ID, LJ_ioPUT_CONFIG, LJ_chI2C_ADDRESS_BYTE, 0x62, 0, 0) AddRequest(ID, LJ_ioPUT_CONFIG, LJ_chI2C_SCL_PIN_NUM, 0, 0, 0) AddRequest(ID, LJ_ioPUT_CONFIG, LJ_chI2C_SDA_PIN_NUM, 1, 0, 0) AddRequest(ID, LJ_ioPUT_CONFIG, LJ_chI2C_OPTIONS, 1, 0, 0) AddRequest(ID, LJ_ioPUT_CONFIG, LJ_chI2C_SPEED_ADJUST, 0, 0, 0) GoOne(ID) numWrite = 2 array[0] = 0x07 array[1] = 0xd0 AddRequest(ID, LJ_ioI2C_COMMUNICATION, LJ_chI2C_WRITE, numWrite, array, 0) AddRequest(ID, LJ_ioI2C_COMMUNICATION, LJ_chI2C_GET_ACKS, 0, 0, 0) GoOne(ID) Scopeshot of the resulting transaction
  21. Today I tried to move a project to a new computer and I can't seem to install DAQFactory. The computer I want to use runs Windows 7 pro. I downloaded the latest DAQFactory installer, DAQFactoryInst_17_1.exe When I try to run it the installer splash screen comes up and I get an error "DAQFactory requires administrative privileges to install." The user account has administrator privileges on that computer. I tried to right click the installer and run as administrator but I get the same thing, splash screen then privileges error. I tried to right click, go to file properties, Compatibility, and set the file Privilege Level to "Run this program as an administrator." Same error. I moved the installer file to a directory C:\temp that is set so all users have full access to read, write, or modify. Same error. I don't really know what to look for in the log file. Near the end of the log file I see this (where xx:xx: is the timestamp): Action xx:xx:xx:LaunchConditions. Evaluating Launch Conditions Action start xx:xx:xx: LaunchConditions. DAQFactory requires administrative privileges to install MSI(c) (24:14) [XX:XX....] Product: DAQFactory -- DAQFactory requires administrative privileges to install. Action ended xx:xx:xx: LaunchConditions. Return value 3. MSI(C) (24:14) [xx:xx...] Doing action: FatalError" Any ideas why this is happening? Is there some other way to set administrator privileges? What is LaunchConditions 3 and does that tell me anything beyond the privileges error? Thanks
  22. I have a device which I would like to pull XML data from with GET. Going via a browser works fine but through DAQ is not so fortunate as it requires authentication. With http://user/pwd@ both depriciated and considered an invalid URL I am unable to easily pull information. Is there experience and/or examples on the forum using headers to pass authentication that would complete this task? Thanks
  23. Hemendra

    2018 Update?

    excellent, eager to see
  24. TheNovice

    Asking password before setting a component

    I missed your comment. I'll email you right away. Thanks!!
  25. Hi, 1. I am using edit box component and I am using OnChange event to ask password which is working fine. But I was testing the same by creating local channel and I found out that the value is set on the click of the set button instantly, which means asking password and stuff makes no sense as the value is already set. Is there any way or event which I can run before the channel is set via edit box? 2. I can do it other way around if I had like 2 or 3 edit box component in my file, but I have like 50 edit boxes and I just want to find a uniform way of doing it instead of writing 50 different events. Also, I can't wait till January update, or else I could have used 'this' keyword thing. Any help would be much appreciated. Thanks.
  26. HI, This might be a stupid question. I having multiple channels in daqfactory file, which reads and write to KEP server via opc connection. Currently I am using Edit box component to set value to those channels which eventually writes to Kep server. So, if i try to write a channel eg: Blower(Channel name) = 1(value) via Daqfactory sequence or component event will it still perform the same as edit box and write to kep server? Let me know if the question is not clear. Thanks!!
  1. Load more activity