boliva

Members
  • Content Count

    20
  • Joined

  • Last visited

Community Reputation

0 Neutral

About boliva

  • Rank
    Member

Recent Profile Visitors

1,152 profile views
  1. I am sampling many channels every second, some of which are temperature readings and others pressures and such. I want to take a group of the temperature readings (not all of them), and create another channel or variable that would be the average of that group, another that would be the max, and a third that would be the min of the group. Is that possible without an elaborate script?
  2. The printPDF feature is excellent in quality. Having the ability to use bold and italic font as well as using other font types would help make printed information with better appearance.
  3. boliva

    Report Creation

    Is there a way to change a variable value text on screen to a graphic for printPDF? Basically, I want some characters bold, but I can't seem to get printPDF to print bold characters. I tried changing the font used, but it always appears with the same font and nothing is bold...UNLESS there's a specific font that I SHOULD be using that will display bold characters in the final pdf created using the command or there is a switch that I should be using in the command to accomplish this?
  4. boliva

    Email multiple files

    Actually, The brilliant folks at Azeotech have updated the software to now include multiple attachments in a single email, so my problem has been solved. This was part of the release for version 16.1. I did not want any type of zipped file since that's one more step on the backend to download and uncompress, etc. This has allowed me to keep everything with the single platform rather than trying to incorporate multiple pieces of software to accomplish what I need.
  5. I am building a system that will email out csv reports that contain parameters for a period of 12 hours. The system will connect to multiple units and capture the data, then send out a csv report every 12 hours with the compiled files. I would like to handle everything from within DAQFactory, but need the email capable of attaching all files to a single email. I would like to request that DAQFactory add the capability to include multiple attachments into this single email. As always, Thanks!
  6. boliva

    Email multiple files

    Hi Guru, Any chance DAQFactory can now attach multiple files? If not, is this in the plans to add as a feature? I have to send an email via DAQFactory and would like to have up to 4 csv files attached and only have a single email, and not have to unzip the files once received as my outlook rules/script automatically downloads them as they arrive. Thanks in advance
  7. boliva

    Log Time Stamp

    Just to make sure I'm heading down the correct path... 1. Create an array with the channel names to be sampled 2. Create a variable for each channel. This will store the average value over the period determined. This will be an array at the end of a 12-hour period 3. Every 10 minutes (period determined), take the average of each channel and append this average to the back of the variable just created in 2 as an array of strings, with a "," after each value. The ", " will serve as the delimiter for the csv file when done, between values. When doing this, only write to the channels whose names are actually in the array to be sampled. 4. At the end of each 12-hour or 24-hour period, write the variables to a .csv file then change the file name to begin a new one for the next period Sounds right?
  8. boliva

    Embedded Daqfactory

    Guru, When putting on an embedded PC, I want to use fbwfmgr to write protect the hard drive so if power is lost without Windows properly shutting down, it will not corrupt the hard drive. In doing so, I will add exclusions for my log directory. What other exclusions would be needed for DAQFactory to operate properly?
  9. boliva

    Email & Queueing

    I just realized that when I was troubleshooting, I changed the second line in your function SendEmail(string message) sequence from: private emailOut = new(CEmailOut) to global emailOut = new(CEmailOut) AND emailQueue.addValue(emailOut) to emailQueue.addValue(1) With both of the above statements modified, it seems to work as expected. With the last statement modified, and emailOut left as a private variable, emailOut.initialTime never gets passed, so no matter how long of a delay is set, it always backs out thinking the time has elapsed. Can objects be passed using addValue? or is there something else to it that I'm missing. Thanks
  10. boliva

    Email & Queueing

    Thanks! I've been able to get this to work to an extent. I did what you said above and methodically stepped through the process of the functionality. I added some ? statements to see where it's getting in the process. Where I stand now, is if I have an internet connection, everything works as expected. If I don't, I go through the top two sequences, but the statement emailQueue.addValue(emailOut) does not truly put anything in the emailQueue global. Since it's a global, I added it to the watch window and never see it get populated. I changed that one statement by removing (emailOut) and replacing it with (1) and it all worked great. Did you mean to put emailOut in that statement in your original code above, or was that simply an oversight? If it's supposed to be there, I'll need to figure out why it still won't work.
  11. boliva

    Log Time Stamp

    The ultimate goal is to take an average of each parameter being logged every 10 minutes and at the end of a 12 or 24hr period, email a single csv file containing all of the samples that were averaged. At the end of the 12hr or 24hr period, it will rename the file and basically begin again. Would this be best accomplished with an export set? I want the long term logging, just want the time stamps to be at an even 10-minute period so all systems log the same from one machine to the next, regardless of when DAQFactory was started on the PC.
  12. boliva

    Email & Queueing

    I'm getting around to trying this setup and keep getting an error. I'm not a programmer, so it's taking me a bit to understand the above. First, do both of the functions above go in a single sequence, or should they be separated into two? I'm getting an error when calling sendEmail("TEST") for the line if(!sendEmailOb(emailOut)) stating that the channel or function is not defined. I've checked the syntax and cannot find any errors....any thoughts? Third, in the function you described, you have a line, private em = new(CEmail)...should this read private em = new(CEmailOut)? Lastly, is the em.body the correct way to set the body of the message or would it be similar to the actual email command where it's set as em.strBody? Thanks
  13. boliva

    Log Time Stamp

    I've created multiple channels that get sampled once per second. I have a log file that I would like to average 600 seconds and log that average. I have a sequence that waits until an even 10-minute period (6:00, 6:10, 6:20, etc) to start the log so that everything stays on the same period, but the log samples seem to correlate to the actual time that DAQFactory started. I've tried setting the timing of all of my channels to 0 then back to 1 in an attempt to reset this time, and also set the history of all channels to 0 then back to 1, but neither seem to force the logged time to begin at an even 10-minute interval, it always stays at 6:08 or whenever I start DAQFactory. Is there a way to accomplish this?
  14. I would like to be able to setup an email from within DAQFactory, have the software email out when a threshold is reached, and if the network connectivity is down for whatever reason (bad weather, lost connection, etc), keep the email in some sort of queue so that the system retries every x seconds. For instance: have a script that monitors myChan[0], and if it exceeds a value like 250, send email. If the email fails, wait 600 seconds and try again, and continue this loop for 24 hours, or whenever the email out is successful, whichever comes first. Is this possible and if so, could you give an example of how to accomplish this?
  15. boliva

    Re-Order Loggin Channels

    Is it possible, using a script, to reorder the channels to log in a logging file? I allow the user to select channels to be logged, but I always want the returned file in the same order, so if they select out of order, I'd like to have a way to sort the channels some way. Also, if I have my channels arranged in "groups", is there any way using a script to include an entire "group" in a logging file? Thanks.