Forum Replies Created
-
AuthorReplies
-
Thanks Jim. That’s exactly what I was looking for.
Thanks Jim.
Does the Cloverleaf engine have a limit to the number of FTP’s it can send out at 1 time? I ask because we had a process that was FTP’ing records to a remote system. I resent messages that will be FTP’d to the same remote system. My messages didn’t start processing until the previous messages being FTP’d were finished. Just wondering if it where to start looking, on the CL engine or the remote system?
Corey
Thanks Chris. I will give that a shot.
So here is my IF statement…
IF
0(0).DSP(%s3).#3(0).[0] ct =CULTURE &&
!(0(0).DSP(%s3).#3(0).[0] ct =NO GROWTH &&
0(0).DSP(%s3).#3(0).[0] ct =NEGATIVE &&
0(0).DSP(%s3).#3(0).[0] ct =PENDING)
So that should get me any DSP segment with the word CULTURE and anything that is not NO GROWTH or NEGATIVE or PENDING.
SO this DSP Segment…
D S P | | | C U L T U R E 2 + S T A P H Y L O C O C C U S A U R E U S
would drop into my IF criteria, correct?
And this DSP Segment would not drop into the IF.
DSP||| CULTURE NO GROWTH 2 DAYS PRELIMINARY, FINAL RESULT TO FOLLOW
Correct?
Jim,
Thanks for the reply. I thought of doing that but wasn’t fond of having an IF that didnt’ do anything just to get the else. Something that goes back to my RPG days.
So here is my IF and my next question:
0(0).DSP(%s3).#3(0).[0] ct =NO GROWTH ||
0(0).DSP(%s3).#3(0).[0] ct =NEGATIVE ||
0(0).DSP(%s3).#3(0).[0] ct =PENDING
Would the else get anything that is not equal to NO GROWTH or NEGATIVE or PENDING? I think it would but still not sure.
Or would 3 seperate IF/ELSE statements be the way to go?
Bob,
Thanks for the reply.
I found what I was looking for. Turns out if you select the ALL_THREADS option on the source input box, it will only page 1 time, not once for each thread listed.
Thanks
Corey
Max,
That worked superbly. Thanks for you help.
Corey
Thanks for the help Jim and Levy, I got the results I was hoping for. I had to create a variable and add to it for each OBX segment after the segment with the multiple OBX:5’s. So if I had 3 values in the OBX:5, my variable starts at 4 and that gets moved into a %f variable and that is used on my outbound ODS segment.
I have everything back to where it creates my 3 ODS segments based on the number of values that are attached to my OBX:5.
I know what my dilema is but I can’t think through it. I have 2 OBX input segments, for the first OBX input, I have created 3 ODS segments.
2(0).0(0).ODS(0) : >|D||^Dysph1|testing<
2(0).0(0).ODS(1) : >|D||^NoCarbonatedBev|testing<
2(0).0(0).ODS(2) : >|D||^NoHotBev|testing<
So my itereate goes back around and reads the 2nd OBX input statement. This contains my Dietary Fluid Restriction value of 2000mL. So my OBX segment variable is sitting at 2, so the copies for that particular value are going in my 2nd ODS segment resulting in the below.
2(0).0(0).ODS(0) : >|D||^Dysph1|testing<
2(0).0(0).ODS(1) : >|D||^2000mL|testing<
2(0).0(0).ODS(2) : >|D||^NoHotBev|testing<
So how do I get my segment variable to read the right OBX but then create the next ODS segment? Could I use a counter and use that as a variable on the ODS output?
Not sure if I am making any sense.
Levy, I made some changes and I am getting better results. However, I am now getting my ODS segments like this:
2(0).0(0).ODS(0) : >|D||^Dysph1< 2(0).0(0).ODS(1) : >|D||^2000mL< 2(0).0(0).ODS(2) : >|D||^NoHotBev< However, I have 3 values in my first OBX:5 – Dysph1~NoCarbonatedBev~NoHotBev. Also I am not sure why my Dietary Fluid value (2000ml) is sliding in between my types. I appreciate everybodies help. Still learning how Cloverleaf works.
Jim, The ODS segent does repeat. I have attached 2 screen shots. The first is the iterate and following copy statements that I am checking the OBX:5 field and the second is the iterate for the OBX segment.My issue is I have to create an ODS segment for each value I get in the OBX:5. [/img]
So the help is showing me this:
TIME – This defines the duration between executions of the Tcl procedure. Be sure the value is not smaller than the global polling interval (by default, this is every five seconds). This is optional. When not defined, the Tcl procedure will be executed each polling pass (by default, every five seconds).
If the On Start checkbox (optional) is not selected on the Select Tcl Alert Source dialog, the Tcl procedure does not run until the first TIME duration has expired.
The TIME value has the option of being specified with a count n time value. This value is a one-based value which indicates that the Tcl function should be executed once every n polling passes.
For example, a Tcl alert type source with the following time value:
{TIME {count 30}}
will execute its Tcl function every 30th polling pass. This means that it will be executed roughly every two minutes with the default global polling interval.
My question is where do I put that {count 30} on the alert? I tried entering it on the Polling Period field, but that only lets me enter numerics. What I would like is to have a tcl proc fire once a day around 10am and send a message to our paging system. We like to know that our alerts are working.
Any thoughts?
So what we, meaning a co-worker found out was, with 5.8 the the monitor daemon needs to be cycled when the alert config is changed.
I am fairly new to TCL and Cloverleaf. I am just excited when I get the code to work, so I don’t question whether or not it’s the most logical way to do it.
With a little help, I was able to replace the proc with just the fmtclock command.
I appreciate the responses.
-
AuthorReplies