Is there any reason why you can't just use the "GotoTime" dialog or jump to
the time of an event marker and then snapshot the image by hand? Normally,
you would just simply "jump" to that specific time and then do a screenshot
by hand. Does your window need to run for a long time in order to build up
some calculation or otherwise?
There is a way to invoke a Save Image, but it involves creating a VB
script.... I just wanted to make sure we aren't checking the easiest routes
first.
Jim
--------------------------------------------------
From: "Sherman, Paul" <pshe...@smartronix.com>
Sent: Wednesday, January 25, 2012 10:12 AM
To: <ia...@googlegroups.com>
Subject: [IADS] Triggering "Save Image" from configuration file
> --
> You received this message because you are subscribed to the Google Groups
> "IADS" group.
> To post to this group, send email to ia...@googlegroups.com.
> To unsubscribe from this group, send email to
> iads+uns...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/iads?hl=en.
>
________________________________
There are a number of semi-automated functions that may do what you are
describing.
You can directly execute a screen image save by pressing Ctrl+Shift+F1.
Also to get the exact time range you want into a strip chart go to the Test
Points Logs and select the Clock with an Arrow icon "Goto Time Of Selected
Row then Advance to Next Row."
That will adjust the range of the strip chart to the start and stop time
found in the test point. Then press Ctrl+Shift+F1 to Save the image.
Adam Chant
Symvionics, Inc.
IADS Application Engineer
(661) 273-7003 x 210
________________________________
Another option could be to export all of the time slices as CSV, copy them
to 1 continuous CSV, then import them into the PTDS as a single continuous
stream. Time would be irrelevant (as it would be inaccurate), but you could
show all the data on the stripchart by selecting the "all" button in the
Analysis window. Then a print capture of that would produce your intended
results.
Another question.
Does this captain want this tool for the control room (real-time) or in post
test? Likewise, Is there a reason why he doesn't want to use the Iads client
and just grab the scrollbar on the AnalysisWindow and scroll back into the
time range?
Iads was specifically designed to go back in time at any point in the test.
So, as you can see, we're all very curious why he wants this capability,
because it's already an integral part of the Iads client (and as simple as
moving a scrollbar). I keep thinking we're missing something obvious.....
Perhaps he simply wants a printout like the old style paper stripcharts and
he doesn't prefer to use the client to review data? Or maybe he's trying to
send the data to someone that doesn't have the Iads client?
We could do this with a script, but the output will be rather sloppy and
won't line up nicely as a continuous scrolled printout/capture... I just
want to make 100% sure that we're not missing something obvious (again)
before we start building a script. If we knew the background of why he
wanted the script, we might be able to suggest a better (cleaner) solution,
Jim
My bad. I didn't see the "print them out and place them end to end creating
an old fashion strip chart". Ok, now I understand ;)
Here is a VB script that will almost accomplish what you want. The missing
part is the GUI portion, but I think Adam can help you in this area. He's
found out how to build forms in VB script. Adam, can you help Paul? See the
portions of the script that say "TODO: Need to query this string from a XXX
element"
Basically, just copy the script below into a file named
SequentialSnapshot.vbs (whatever.vbs) and double click on it. Before you
double click on the file and execute it, modify the StartTime.TimeString =
"001:00:10:00.000" and EndTime.TimeString = "001:00:10:30.000" to be the
time range desired in the format DDD:HH:MM:SS.MS. Choose a fairly small
range or this thing will fill up your hard drive quickly!
Adam can help you build a GUI so the user can input the Start/Stop time
strings... and you also might be able to convert the bmp files to jpg after
saving to disk to keep the footprint low, etc.
I hope this helps,
Jim
''''''''''''''''''''''''''
'Connect to Iads
Set Iads = CreateObject( "Iads.Application" )
'Get the currently active AW (the window with focus)
Set Aw = Iads.ActiveAnalysisWindow
'Assuming the StripCharts are set to length of 120mm (default), compute the
'amount of time displayed in a StripChart based off the chart speed of AW
ChartLengthInSeconds = 120.0 / Aw.ChartSpeedMMPerSecond
'Create an Iads time object and set it to the start of the time range
'TODO: Need to query this string from a gui element
Set StartTime = CreateObject( "IadsTime.IadsTime" )
StartTime.TimeString = "001:00:10:00.000"
'Create an Iads time object and set it to the end of the time range
'TODO: Need to query this string from a gui element
Set EndTime = CreateObject( "IadsTime.IadsTime" )
EndTime.TimeString = "001:00:10:30.000"
'Create a directory for the output bitmap files
OutputPath = "C:\IadsSnapshot\"
set filesys = CreateObject("Scripting.FileSystemObject")
If Not filesys.FolderExists(OutputPath) Then
Set newfolder = filesys.CreateFolder( OutputPath )
End If
'Create a snapshot of the window at even time intervals between start/stop
Num = 1
While ( StartTime.IsLess(EndTime) = True )
'Direct the AW to jump to the directed time
Aw.CurrentTime = StartTime
'Create the snapshot bitmap name
Name = OutputPath & "IadsSnapshot" & Num & ".bmp"
Num = Num + 1
'Snapshot the AnalysisWindow
Aw.SaveAsBmp Name, False
'Debug MsgBox "Snapshot of Time " & StartTime.TimeString
'Advance the time to the next frame based off of our chartlength
calculation
StartTime.AdvanceTime 1, 1.0/ChartLengthInSecondsWend
''''''''''''''''''''''''''''''
--------------------------------------------------
From: "James Bretz" <j...@iads-soft.com>
Sent: Friday, January 27, 2012 9:29 AM
The last couple of lines of the script should be:
'Advance the time to the next frame
StartTime.AdvanceTime 1, 1.0/ChartLengthInSeconds
Wend
If you plan to do more scripting, you might want to invest in a program
called VBSEdit. It makes building VB
scripts easy and saves a lot of time,
Jim
________________________________
Thanx for the extra info ;) It makes sense.
Just FYI, Iads is a commercial product available worldwide.... so if the
other groups ever wanted to have the same capability as you do to review the
data (or even play it back like a simulated mission), just point them to our
website at http://iads.symvionics.com/
Adam is working on the GUI aspect of the script right now. It shouldn't be
long,
Jim
--------------------------------------------------
From: "Sherman, Paul" <pshe...@smartronix.com>
Sent: Monday, January 30, 2012 10:43 AM