AzeoTech

Administrators
  • Content Count

    5,672
  • Joined

  • Last visited

Everything posted by AzeoTech

  1. AzeoTech

    Logging Data issues

    You can actually do this just by using techniques built in to Windows / Windows Explorer for addressing network drives. You can of course map a network drive to a drive letter in Explorer and then it appears just like any other harddrive. But you can also skip this by using double backslash notation. For example if you have a network drive at 192.168.0.20, you might put: \\192.168.0.20\myDrive\dataFiles As for cloud storage, that depends on the service. Many will have similar type notation to make it accessible from Explorer. All this works in Runtime.
  2. Any chance you could send me the .ctl document. You can email to support @ if you don't want to post it.
  3. Does this happen often, or did it just happen once? Do you have auto-updates disabled? In WIn10 it is kind of tricky to do.
  4. It refers to any non-magnetic drive. As I said, newer systems have better wear leveling. Older style ones didn't and so if you rewrote to the same place on the disk over and over you could very quickly kill that part of the disk. While newer ones work better, they are not completely immune.
  5. Sure. If you aren't going to log it in a logging set, probably the easiest is to use a V channel, and in the expression calculate those values. For mean, you could calc it in one step on your own, but max and min are more involved, so its probably best to use concat() for all three. mean(concat(a[0], b[0], c[0], d[0])) max(concat(a[0], b[0], c[0], d[0])) Note that concat() is limited to 20 parameters, so if you have more you'll have to nest it: mean(concat(concat(a[0], b[0], c[0], d[0]),e[0], f[0], g[0]))
  6. AzeoTech

    Missing data from CSV file.

    I would personally take some data, then switch the system into Safe Mode. Then look at the time stamps for the channels and see how much variance there is. You can use the table view in the Channel View (click on each Channel in the workspace).
  7. It looks like the alignment of the data is just off. You probably want an alignment threshold of .9, or actually maybe even 1. It's hard to say without a time stamp with milliseconds in it. You might try a run with DF time instead of custom time. As for sig figs, it is important to understand that sig figs is different what we call "Precision" in variable value components. Precision is the number of digits to display to the right of the decimal place. Sig figs is actually just that, significant figures, though DAQFactory automatically adds 1 to the sig figs, basically to avoid have your least significant figure rounded. So, when you specify 2 for figs, you'll get three non-zero digits. So: 123.4567 becomes 123 but: 1234567 becomes 1230000 and: 0.000123456 becomes 0.000123 Its more digits because of the leading 0's, but that is needed. The 0's aren't significant so don't count. Note that 102.345 becomes 102. The zero is significant because it has a non-zero digit to its left. Likewise 123000.567 becomes 123000. The zero's aren't significant, but are required to actually write 123 thousand.
  8. Yeah, that's the problem with DDE and Resources. It doesn't matter if you are running the fastest workstation money can buy. DDE is so antiquated, that Windows never really updated it to take advantage of new technology. It's kind of like running a 32 bit app on Windows x64. You can put 256 gig of memory into the machine, but the app is still only going to be able to use 4 gig. Except of course that DDE is much older, almost no one uses it anymore (unlike 32 bit apps which are 99% of apps out there), and the problems aren't as obvious. Now I'm not saying you shouldn't use DDE, as it is common to use antiquated technology in this industry, I'm just trying to explain why the machine doesn't matter. Why don't you email us directly on support @ and I'll see about adding a reset command to the DDE driver so you can reset the connection from within DAQFactory. Then you may just be able to reset the connection every hour to keep things fresh.
  9. I'd be curious if restarting the other side, the software that DAQFactory is communicating with over DDE resolves the issue. DDE is ancient technology of Windows that actually uses windows (note lower case w) to allow for interprocess communications. Because it uses windows (among other reasons), it uses "Resources" (note upper case R because I'm talking about something specifically named Resources), another somewhat ancient concern that rarely appears nowadays. Basically applications are allocated a limited amount of Resources and creating windows takes away from this. Once you run out of resources, you can no longer create new windows. Your latest debug data point tells me that you are somehow running out of resources, and that by not opening 6 extra windows it leaves just enough space for DDE to keep running. Resources are not the same as memory and have nothing to do with what video card you are using. I, truthfully, don't know what Windows calls it now as it generally never causes a problem. You may be able to track your Resource use in Task Manager by showing these columns: Handles, USER objects, or GDI Objects. I'm not actually sure which will line up, but you may see one of these steadily rising as your program runs.
  10. Certainly. A loss of power can cause all sorts of problems even outside DAQFactory. I once lost power during Windows boot and had to reinstall the OS (this was a long time ago....) These problems don't crop up often because systems typically are only writing to disk a very small percentage of operating time, but they do happen. That is why you should always have a UPS in place with a connection to the PC so that Windows can gently shut things down if there is a sustained power loss. A laptop achieves the same thing, but of course they tend not to be rugged.
  11. AzeoTech

    Missing data from CSV file.

    This almost certainly is due to the alignment parameter of the logging set and differences in the time stamp. If you are taking data once a second and generally all data at the same time, you'll want the align threshold at something like 0.7 or so.
  12. Your best bet would be to use a service such as DAQConnect.com to do this. With that product you'd have to create separate HMI screens for the web, but they will work more efficiently and across all devices. Alternatively, you could program DAQFactory to take screenshots of pages, then upload them to a webserver. Sending commands back to DAQFactory would be slightly harder, but is best implemented using a pull mechanism, meaning DAQFactory queries the server at some interval to see if there are commands to perform. You do not want to open up the system running DAQFactory to the Internet as that is just asking for security problems. Not because DAQFactory is more insecure than anything else, but because opening up the system to the Internet exposes the system to attacks on all levels, the most likely being on the OS and probably DoS type attacks (even if they are unintentional).
  13. DAQFactory uses a rolling buffer file for persist files. That means that when a data point is added to the persist file, only three 8 byte chunks are actually written to disk. 16 bytes is the new data, and 8 bytes is used as a pointer to the most recent data. While that is fine for the 16 bytes as that is always a new place on the disk, the 8 byte pointer is going to be the same place on the disk always. Newer SSD drives should wear level and this should not cause a problem, however, it does mean that if this pointer is corrupted then things go to hell. So: 1) probably some disk failure on your system. The first thing I would do if it happens again is see if the files are all still the same size as reported by the OS. 2) not really unless you want to try and read each of the headers and validate them. You could write a script to do this for sure, but is probably not worth it unless it happens again. 3) probably. If the problem is the header, you could probably rewrite it with correct data. For sure, you could write script that loads from your log files and then recreates the persist data by adding the log data back into the channel. Just remember, persist files aren't meant to be a replacement for logs. Important data should always be logged. Persist files are just for rapid, easy access to historical data. You could also not use persist and instead access historical data from logs. The easiest way to do this would be to log to a MySQL database and perform queries on the data as needed. It won't perform quite as fast, but should be more than adequate if you use db.queryToClass()
  14. AzeoTech

    Multi Color LED

    Actually, the quickest way is to display the Event panel (View->Events), select each LED, then select the OnPaint event. Let's say the variable is called myVar, and the first LED shows state 0 and 1, and the second 2 and 3. So, the On Paint event for the first LED would be: visible = myVar < 2 while the second LED would be: visible = myVar > 1
  15. AzeoTech

    Upload file

    You should use the File. functions, specifically File.Open() to open the file, File.ReadDelim() to read the file into memory, and File.Close() to then close the file after reading. Once it is in memory you can do anything with it. ReadDelim() should read the file in one step into a multidimensional array.
  16. AzeoTech

    Multi Color LED

    There are several ways. First, you could use a symbol component. Create 4 rows, one for each color. Then in Symbol Factory find an LED symbol you like, change it to the various colors, and paste each into a row. Give each row a different threshold, say 0, 1, 2 and 3. Then assign a variable to the Expression. Then when you change the value of the variable, the different symbol will be displayed. You can also do it from script by changing the background color of a symbol component, or even a panel component. But then it will be a square LED. For a more shaped LED, you need to use the method above. You also could do it using two LED components on top of each other, one that does state 1 and 2, and the other that does 3 and 4. Then in script make it so only one of the LED's are visible. If you wanted to reuse this, you could group the components and do everything through the group.
  17. That really depends on the web server. Are you going to use DAQFactory as a webserver or send data to another webserver? By far the easiest method is to use DAQConnect (daqconnect.com)
  18. AzeoTech

    License recovery

    Please contact us directly via email for licensing issues.
  19. AzeoTech

    Upload file

    Upload where? Do you mean load it into DAQFactory memory for display? Or upload it to a webserver? Or something else?
  20. Assuming you are seeing the proper voltage swing, to convert from Volts to Amps you would use a Conversion. Click on CONVERSIONS: in the Workspace, then Add a new conversion. Give it a name, like "HallEffectCurrent" or something. The Expression in your case would be: Value / 5 * 60 - 30 Of course you can reduce that if you want, but showing it unreduced makes it more obvious what was done. So Value/5 takes 0-5 and converts it to 0-1. * 60 converts it to 0-60 (amps), then the -30 converts it to -30 to +30 amps. Finally, go to your input channel and select the new Conversion and Apply.
  21. AzeoTech

    Report Creation

    Unfortunately you will almost certainly have to use the Acrobat Distiller and printPage. If you are having problems with printing the page, you might need the latest build. Please email us directly and we can provide you with a beta. It does printing a lot better than older releases.
  22. This really only applies if you are running continuously without powering off the LabJack (which resets the counter): I believe that the LabJack M counter is a 32 bit counter. So, once you reach 4.2 billion counts or so, its going to reset to 0. So every so often (like once a month) RawCounts[0] is actually going to be less than RawCounts[1]. So, you have to adjust: if (RawCounts[1] < RawCounts[0]) counts = RawCounts[0] - RawCounts[1] else counts = RawCounts[0] + 2^32 - RawCounts[1] endif Just FYI: you can do this two other ways in a single line of script, which is more efficient for the computer, but harder to understand by humans: counts = iif(RawCounts[1] < RawCounts[0], RawCounts[0] - RawCounts[1], RawCounts[0] + 2^32 - RawCounts[1]) or even better: counts = RawCounts[0] - RawCounts[1] + (2^32) * (RawCounts[0] < RawCounts[1]) The last one is probably 100 times faster than the original if/else, and maybe 20 or 30% faster than the iif(), but I''m guessing at that.
  23. You are right. I got that backwards. I was thinking about a regular delta. The folks at LabJack will need to address the DIO# issue. But the problem with using this method is that you can lose counts while the counter is being reset. This probably isn't an issue at low count rates, but at high ones, it can be significant. That said, at high rates, you also have to change the expression I gave you to account for counter roll over.
  24. Create a second channel, Device Type "Test", I/O type D to A. Call this one, say "Counts", and call your actual LabJack counter channel "RawCounts". Expand CHANNELS in the workspace, and select RawCounts. Then select the Event tab. In the event type the following: Counts = RawCounts[1] - RawCounts[0] The Counts channel will now hold the difference in counts between two consecutive readings. To get 10 second counts, set the Timing for the RawCounts channel to 10.
  25. AzeoTech

    AscA not working as expected in execute()

    Actually the problem isn't with asca(). The problem is that string concatenation doesn't support arrays. So even: ? "array: " + {1,2,3} + " end array" will print: array: 1 end array The problem is that DAQFactory doesn't really know how you want to present the array. Do you want a comma delimited list? With brackets or without? Space after the comma? Etc. Plus, beginners often really only want [0], especially when using channels, but forget to do so. So: "My Value: " + myChannel will do the same as: "My Value: " + myChannel[0] So, in your case, what you really need to do is keep the asca() in the quotes: execute(ChannelName + ".AddValue(asca(" + strArg + "))") that way the concatenation doesn't involve the array. But then, why are you pulling out strArg anyway? Remember, execute() runs in the scope of the call script, so you should be able to reference strArg from within the string: execute(ChannelName = ".AddValue(asca(strArg))")