Hi,
what routing statements are you using?
Marcel
Hi,
what routing statements are you using?
Marcel
Hi, thanks you for the compliment.
Luis has just changed some code in the image generation. Can you pick up the new dgate64.exe and wadoseriesviewer and wadostudyviewer.lua from Hit and see if this helps?
Marcel
e.g. ... F:\myApp\processSeries.lua "%u|%m"
print(command_line)
local s=split(command_line, '|')
print(s[1], s[2])
Hi,
I typically concatenate the paramaters with a '|' and use a split function to unpack them:
function split(str, pat)
local t = {}
local fpat = "(.-)" .. pat
local last_end = 1
local s, e, cap = str:find(fpat, 1)
while s do
if s ~= 1 or cap ~= "" then
table.insert(t,cap)
end
last_end = e+1
s, e, cap = str:find(fpat, last_end)
end
if last_end <= #str then
cap = str:sub(last_end)
table.insert(t, cap)
end
return t
end
Marcel
Hi,
The arguments are passed as a single string "command_line"
Marcel
Hi,
The (ancient ;->>>) code is in dgate.cpp.
A string is made containing the converter and selection in function prefetch_queue (at line 12257, called from line 6154). This string is passed into function into_queue_unique. The fact that your log shows both entries means that into_queue_unique returned true, i.e. entering succeeded.
So likely something goes wrong when processing the queue. The queue is handled by prefetchprocess (line 12195) which calls WinExec() at line 12236.
What you can do to test is replace your two batch files by two lua files, and see if it fails in the same way. This would exclude a problem in WinExec itself. In lua the parameters are in command_line.
regards
Marcel
Hi, I am sorry,
it processes and deletes anything it finds, this is the mechanism by which it knows it is done. Ignoring files would lead to endless retries.
Marcel
Maybe you can convert you order string into an accession number e.g. by hashing. You have control over this item in the MWL.
Marcel
Try:
ifequal "%m","DX";lua/process_us_images.lua
if the script is in the lua folder.
Marcel
try:
dgate64 "--modifystudy:,[[SIUID]],lua:Data.AccessionNumber=[[12345]]"
The quotes "" are needed for the OS. [[12345] is a form of lua string.
Marcekl
From extensions:
Hi,
best pass the required level and window to the convert to jpeg command, rather than let it be done automatically.
Marcel
Sure,
I think you can add the script to set accessionnumber directly to --movestudy: Quoting strings is usually the most difficult part. If you use lua: you can use [[string]] to avoid needing extra quotes.
Marcel
On windows GUI try 'modify this study' and put:
Data.AccessionNumber = '12345'
in the code box.
Marcel
That is correct,
we used the mechanism in our own software as follows:
[Application]
AE=W%IP%;666
Can you use a script to set your AE title? Or can you use C-GET to retreive images?
Marcel
Hi,
you can use something like
V* * 1234 un
This means that once an AE find this line, the remaining letters after V e.g. V127.0.0.1 will be used as IP address. Your clients need to be call V followed by their IP address.
Hope this helps.
Marcel