AzeoTech

Administrators
  • Content Count

    5,655
  • Joined

  • Last visited

Everything posted by AzeoTech

  1. AzeoTech

    RS485 hyperterminal connection

    Why are you doing readUntil(35)? ASCII 35 is the # mark and I don't see a hash mark in your input stream. You should be doing ReadUntil(10) which is the last character in your input string, a line feed character. You are getting Timeouts because DAQFactory is waiting for the # which never comes.
  2. AzeoTech

    RS485 hyperterminal connection

    There are a number of posts on this forum on how to do this, and it depends a bit on what the code is and what the response is. Here's one for example: If you can provide more detail about what you send and what you get in response I can better help.
  3. AzeoTech

    Ethernet TX but no RX

    You might just need to reinitialize the ethernet port. The easiest way is to simply open the configuration window where you set the IP, then click OK. Also, do you have DAQFactory setup as the client or an Ethernet server? Do you by chance have a DLL with that device that you could use instead of direct Ethernet?
  4. Sorry, did you send me the ctl doc? Its been 6 months so could you send it again?
  5. AzeoTech

    Graphing a virtual channel on X and Y axis

    Try auto-scaling. Also make sure your Bottom axis is set to Lin, not Date/Time. If those don't fix it, do a Save with History when you have some data, and post or email us the document at support@ so I can see what you have.
  6. 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?
  7. AzeoTech

    Configuration file at startup

    You had #2 done in the document you posted, so all I changed was #1.
  8. 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.
  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. 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.
  12. 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
  13. 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@
  14. AzeoTech

    User Graph Interaction

    You can try adding: yAxisFrozen = 0 xAxisFrozen = 0 to the OnPaint event for the graph. They'll still be able to pan / zoom, but then it will instantly jump back to the programmed scaling.
  15. AzeoTech

    Common script for similar component type

    If you select multiple components, both the Event and the Properties docking windows will edit values for all the components at once. It is one of the advantages of using the docking Properties window over the popup component properties, though some things are not accessible from the docking Properties.
  16. AzeoTech

    Thaw and Freeze Graph using code

    Yes, but it is a variable not a function: component.myGraph.YAxisFrozen = 0 will unfreeze the Y axis. Set to 1 to freeze it. There is a corresponding X version.
  17. AzeoTech

    MySQL error for logging

    Is your ODBC data source actually setup correctly? Judging by the error message, it seems like you created the ODBC data source called "FDB", but then didn't actually link it to the database.
  18. AzeoTech

    Asking password before setting a component

    Email us directly and I can get you a link to the beta.
  19. AzeoTech

    Asking password before setting a component

    There is in the next release, which will probably be in January. It's not quite "this" as that returns a pointer, but rather a string that returns the component name, called, appropriately, "ComponentName". So you can pass this to a common function, then use execute() or evaluate() to access the component by name.
  20. AzeoTech

    Asking password before setting a component

    First, you might want to check this post I made about using Edit boxes: https://support.azeotech.com/topic/3233-edit-boxes-in-hmi-software/ At present there is no way to make EntryDialog cover passwords. You'd really just have to create your own popup window with a password edit box and a nice function to call it. As for the first part, you might try using the OnChange event of the Edit Box.
  21. First, why are you using an export set and not a logging set? Export sets were originally designed to be run after acquisition is done, for saving data after the fact, while logging sets are designed for logging continuously, as the data comes in.
  22. AzeoTech

    Get Serial / RS232 Data

    OK, first the reason your x7 sequence didn't work is because you didn't declare x as a variable. You have to declare it as a global variable: global x = 7 or: global x x = 7 Next, use the query method, not the stream method. Using stream requires you to constantly service the buffer, otherwise you get old data (like you saw), or you get out of sync (like you saw the second attempt with purge()). Instead create a sequence that looks something like this: device.myDevice.purge() private string datain while(1) try device.myDevice.write("send net weight" + chr(13)) datain = device.myDevice.readUntil(10) weight.addValue(strToDouble(mid(datain,6,6))) catch() ? strLastError endcatch delay(30) endwhile I'm assuming you have the mid() correct, though if the output string is just + xx.x lbs, then you don't need the mid() at all, just: weight.addValue(strToDouble(data))
  23. Not sure where you are going with this. The Real Time Web feature only works with the DAQConnect service and their servers. You can't point it to your own computer as you don't have a DAQConnect server. How did you get the Object Not Found errors? What Help file were you trying to look at?
  24. AzeoTech

    Daqfacotry says file is corrupted

    Can you please send us the .ctl document to our "support at" email?