Output a ROI Descriptor to a file
What is the best way to export an ROI Descriptor to a file such that it can be read at a later time during a test. I would like to export a number of ROI descriptors to say a txt file, excel file, or some other choice if there is a better option.
Thanks,
Wade
Solved!
Go to Solution.
I did this in a recent project using my own XML utilities
The file looked like:
<ROI_List>
<ROI>
<GlobalRect>
<Left>0<\Left>
<Right>0<\Right>
<Top>0<\Top>
<Bottom>0<\Bottom>
<\GlobalRect>
<Contours>
<Contour>
<Type>....
<ID>.....
<Coordinates> 0, 1, 2.......
<\Contour>
<\Contours>
<\ROI>
<\ROI_List>
This worked great for me, I used my own schema but it did require a moderate amount of work.
XML captured the nested nature of the data nicely.
I would start with the ni schema, much less readaable but no work to implement.
There are some free and for pay toolkits but I wrote my own and like it so I have not explored the other options out there.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Similar Messages
-
How to create a ROI Descriptor using controls?
Hi All.
Does anyone know how to create a ROI DESCRIPTOR. Using numeric controls. I have the controls LEFT TOP RIGHT BOTTOM and DEGREES, how to put it in a ROI DESCRIPTOR. I'm trying to overlay a ROI on and Image Window, The
coordinates I want to show i have it in a .txt file can read if but how to put it in a ROI DESCRIPTOR.
Thanks
Reynaldo Lima V.
Test Software Engineer.
Ing. Reynaldo Lima Villarreal
Ingenieria Electronica (I N G E L)
Reynosa, Tamps. México
Cel: +52 899 160-52-59
Email: [email protected]Hi. Michael...
I have in mind to draw this VI, I have vision applications and i have to deal with the ROI, the solution is to displace the ROI any way then save the new settings, some times i would be easy to displace the ROI instead of making a new template. I'm not sure is this is what are you talking about...
Unfortunatly i have more proyects to complete before this VI...
Best Regards..
Reynaldo Lima.
Ing. Reynaldo Lima Villarreal
Ingenieria Electronica (I N G E L)
Reynosa, Tamps. México
Cel: +52 899 160-52-59
Email: [email protected] -
Procedure to save the output of a query into excel file or flat file
Procedure to save the output of a query into excel file or flat file
I want to store the output of my query into a file and then export it from sql server management studio to a desired location using stored procedure.
I have run the query --
DECLARE @cmd VARCHAR(255)
SET @cmd = 'bcp "select * from dbo.test1" queryout "D:\testing2.xlsx;" -U "user-PC\user" -P "" -c '
Exec xp_cmdshell @cmd
error message--
SQLState = 28000, NativeError = 18456
Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'user-PC\user'.
NULL
Goel.AmanHello,
-T:
Specifies that the bcp utility connects to SQL Server with a trusted connection using integrated security. The security credentials of the network user,
login_id, and password are not required. If
–T is not specified, you need to specify
–U and –P to successfully log in.
-U:
Specifies the login ID used to connect to SQL Server.
Note: When the bcp utility is connecting to SQL Server with a trusted connection using integrated security, use the
-T option (trusted connection) instead of the
user name and password combination
I would suggest you take a look at the following article:
bcp Utility: http://technet.microsoft.com/en-us/library/ms162802.aspx
A similar thread regarding this issue:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b450937f-0ef5-427a-ae3b-115335c0d83c/bcp-connection-error-sqlstate-28000-nativeerror-18456?forum=sqldataaccess
Regards,
Elvis Long
TechNet Community Support -
How to write the output of a mapping into a file (OWB10.2
Hi
I am using Oracle 10.2.0.1 version of OWB.
the task is to write the output of a mapping into a File (Flat File).
Please help me out!
Regards
AbiHi,
Create the file format thru OWB and mention the location in OWB. Deploy the file and it will be ready to use for target load. Make sure the connection to the target loc is available.
Regards
Bharadwaj Hari -
Is there a way to create multiple BQY output to one of the Job File ?
Hello,
I am using EPM11.1.2.3.501 version.
BQY report due to the large amount of data, it is difficult to use a WebClient.
So will share on a quarterly basis.
However,
If modifications are to occur,There are difficulties must modify each file.
For example,
Register 2014 1Q, 2014 2Q, 2014 3Q, 2014 4Q BQY Job file.
When you run the job, the output of the job file is created.
If the job file is changed, you must modify all four files.
This will be only grow ations.
Is there a way to create multiple BQY output to one of the Job File ??
Please help me.
ThanksIt is not possible to have multiple BQY outpu into a job file.
Thanks,
KK -
How to download alv grid output(with field catalog) into excel file format
Hi all,
How to download alv grid output(with field catalogs) into excel file format and same file has to download to application server.
Please help.
Regards,
Satya.Hi,
On list where alv is displayed, select export icon( green color -> ),select spread sheet.
This will display records in Excel sheet. -
Output array elements to a .dat file
I've written a program that creates two arrays, each containing 999 pseudorandom numbers. Now, I need to output these numbers to a .dat file containing two columns of data (one column for each array). How do I do this?
Never mind, I figured it out on my own!
-
Output of SQ01 Query to a file in background
Hello,
I have created a SQ01 query for a certain specific outpur from my SAP system. I need to get the output of this query to a file. While i have tried executing this report from the frontend; it works smoothly, and based on the variant it creates the output and writes to a file at a remote location. But while i am trying to process the same query using background job, it creates a spool request and doesnt export the data to a file.
Can someone please help me in getting me right in case i am doing anything wrong.
Regards,
VHi,
SAP have created a standard program RSTXPDFT4 to convert your Sapscripts spools into a PDF format.
Specify the spool number and you will be able to download the sapscripts spool into your local harddisk.
It look exactly like what you see during a spool display.
Please note that it is not restricted to sapsciprts spool only. Any reports in the spool can be converted using the program 'RSTXPDFT4'.
Regards,
Pavan -
Ant ; how to move nonjava files to the output folder whn i comile java file
Hi when i compile my java file using javac ant task, i want to move non java file to the same output folder where the dot class file are stored. example if a package has 2 java file and a .properties file, when i javac task compile that package .properties file should move where the .class files are moving. can anyone help me please
An ant target can carry out multiple tasks. You need to put the <javac> and <copy> tasks in the same target in your ant file.
-
AS3: outputting trace() content to external txt file
the question's in the title. ive got a swf but i've gotta run
it on a nokia n800, which means trace() content will be lost and -
boy! - do i need it!
so how can i set my swf up to output its trace content to an
external txt file?hello kglad
well, not 'lost' thats misleading, sorry. i mean: the swf
will be running on a browser outside the flash authorising
environment so the output window won't be accessible, therefore i
need a way of printing out the trace() output to another source.
the help files say that trace() can output to the output window OR
to an external txt file. only it doesnt actually go on to say quite
HOW you can output to said external txt file, rather
irritatingly.. -
We want to use the IMAQ read LCD to read the screen on a digital thermometer. We need a ROI descriptor but we do not know what is suitable for that. PLEASE HELP!
Thank youHi F.N,
I hope you are well.
One of the easier ways of creating a Region of Interest (ROI) descriptor is to use the IMAQ Construct ROI VI as it allows you to select the ROI convieniently as it saves time creating code to perform the same task.
Essentially a dialog box will pop up allowing you to select the Region that you are interesting in analysing.
More information can be found here:
http://zone.ni.com/reference/en-XX/help/370281P-01/nivisionlvbasics/define_regions_of_interest/
and
http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_constructroi/
Kind Regards,
Aidan H
Applications Engineer
National Instruments UK & Ireland -
NOOB Question - Cannot seem to get the output in a text or CSV file - Please help!!
I was able to put together a script which finds members of a certain AD group, filters down the users, and then calculates the number of days till a password reset is needed. I am able to get on screen exactly what i am looking for, but cannot seem
to figure out how to get the same data to a file. What i am doing wrong? two goals here:
1. Create a spreadsheet with a list of users whose password is about to expire.
2. Down the line automate an email to users whose password is about to expire.
Here is my code:
## Get List Of Users in Password Change Lockout that do not have an expired password or a password that never expires
$Names = (Get-ADGroupMember -Identity "Password Change Lockout" -Recursive |`
Get-ADUser -Properties * |`
Where-Object {$_.PasswordNeverExpires -eq $False -and $_.PasswordExpired -eq $False} |`
Sort-Object name |Select-Object -ExpandProperty SamAccountName)
## Get Password last Set values for all
Foreach ($Name in $Names)
$VAR1 = (Get-ADUserResultantPasswordPolicy -Identity $Name).MaxPasswordAge
$VAR2 = (Get-ADUser $Name -Properties *).passwordlastset
$VAR3 = (Get-ADUser $Name -Properties *).name
$DTPC = (New-TimeSpan -Start (Get-Date) -End ($VAR2 + $VAR1) | Select-Object -ExpandProperty Days)
Filter users to those who need to change thier password in 15 days.
If ($DTPC -lt 15)
No matter what i try between the {} after the If statement, I cannot get the output to a file. However, if I use a Write-Output I get exactly what i looking for. I feel like i am forgetting some basic concept and could really use some help. Thanks.
Matt
Matt DillonHi Matt,
I generally create an empty array (something like $out = @()) at the top of the script and then use $out += $desiredOutput inside of the foreach loop.
Outside of the loop, you can then pipe $out to Out-File or Export-Csv, depending on your needs.
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing) -
How to set input/output "use" attribute in the WSDL file of BPEL process?
Hello,
I have a BPEL process that I want to deploy it as an RPC web service. I want to access it from a Java module (via an automatic generated Java stub from the WSDL file exposed by the BPEL process).
I wrote manually the corresponding WSDL file for my BPEL process, where I stipulated for the operations exposed by my process ( in <soap:binding> tag) the value of the attribute "style" to "rpc". Also, for each <input> and <output> of the operations (inside the <operation> tag), I set manually the attributes "use" to the values "encoded". Something like this:
<operation name="getCustomers">
<soap:operation style="rpc" soapAction="getCustomers"/>
<input>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
</input>
<output>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
</output>
</operation>
The issue is that, when the BPEL process is built and deployed, the WSDL file generated automatically by BPEL (based on the one manually writen) set the values of the "use" attributes to "literal". This is what is generated:
<operation name="getCustomers">
<soap:operation style="rpc" soapAction="getCustomers" />
<input>
<soap:body use="literal" namespace="http://acm.org/samples" />
</input>
<output>
<soap:body use="literal" namespace="http://acm.org/samples" />
</output>
</operation>
Is there any chance to keep the original values (written by hand) for the "use attributes?
Many thanks in advance!
Regards,
MarinelI am not sure I understand your question. If you want all your BPEL service to be rpc still by default, you can change the templates: C:\eclipse\plugins\bpelz_0.9.XXX\templates.
The BPEL PM engine support both style of invocation.
I hope this helps. -Edwin -
Make the output of the BI report rtf file some fields non editable
Hello All,
I want to make some fields in the output of the BI report as editable and some non editable. Any output format is fine (PDF, RTF or HTML) Please let me know if anyone knows how to do it.
Thanks in advance..
AnuYou can add RTF to active allowed output type list (provided that your reporting system supports it) by going to CustomerReportExtensions.xml file and adding the following node right after ParameterTypes node:
<ActiveReportOutputTypes configChildKey="key">
<ActiveReportOutputType key="RTF" value="RTF" extension=".rtf"/>
</ActiveReportOutputTypes> -
Output Binary data to browser as file
I know this has been covered a thousand time, but every
example I am given does not work.
I am accessing a Java WebService to get a document (in this
case PDF). This WS has no WDSL, so I am hitting it through CFHTTP.
The WS returns me a hashmap with error codes etc. One element is a
Binary string.
I have done everything imaginable and the most I can do is
get the raw text to display. Unfortunately, saving a temp file then
using CFFILE is not an option for security reasons; however, if I
try this the file is corrupted and will not open. When I use
CFHEADER I get a complaint about java.lang.String. However,
ToBinary gives me a CF error with garbage text and no real error,
and BinaryDecode always whines about input and output encodings not
matching.
This is what I use the call the service:
<CFHTTP URL="HIDDEN" METHOD="GET" RESULT="testFN"
CHARSET="ISO-8859-1"></CFHTTP>
And these are somethings I have tried:
<cfheader name="Content-Type" value="pdf">
<CFHEADER NAME="Content-Disposition" VALUE="inline;
filename=my.pdf">
<CFCONTENT TYPE="application/pdf"
VARIABLE="#BinaryDecode(testFN.Filecontent, "Base64")#">
<cfscript>
context = getPageContext();
context.setFlushOutput(false);
response = context.getResponse().getResponse();
out = response.getOutputStream();
response.setContentType("application/pdf");
response.setContentLength(arrayLen(testFN.Filecontent));
out.write(testFN.Filecontent);
out.flush();
out.close();
</cfscript>
<cfcontent type="application/pdf; charset=ISO-8859-1">
<CFSCRIPT>
writeOutput(toString(testFN.Filecontent));
</cfscript>
None work. I either get a blank page, a CF error, or plain
text. Other Java application use this same WS without issue, so any
complaints about the WS have been ignored.
I need help badly. I am not sure what else to try.Thanks for the reply.
I have had problems using BinaryDecode. It states the input
and output are not the same not matter what I use as the
binaryencoding. I can get a pdf binary object sent to the browser
by using this:
<CFHEADER NAME="Content-Disposition" VALUE="attachment;
filename=#fileNAME#.#fileEXT#">
<CFCONTENT TYPE="*/*"
VARIABLE="#ToBinary(ToBase64(docBINARY))#">
ToBinary nor ToBase64 work on their own (I get an error about
ByteArrays), but they seem to work together. However, now I get a
12 page PDF with 1 blank page and all the other pages generate
errors in the Adobe Reader. I have confirmed that the document
comes up fine in the Java applications that do basically the same
thing, but it is like ColdFusion does not understand the data type.
Unfortunately, our DEV and UAT systems are not exposed for me
to give you access. The Web Service I am consuming will never be
available externally, which is why I am building a CF passthrough
to display the documents to public users. The internal system will
output private contracts, so there are privacy issues related to
opening it up. Our prod deployment is very strict, so I cannot even
put up public pages for testing until all involved sign off on
functionality.
Obviously, the CFDUMP exceeds the text limit, so I cannot
post it either. :(
Edit: Also, I found out that the first byte of object is a
status code. I have parsed that off (why you now see docBINARY),
but I only see this as a square and have not been able to convert
this to the number code I should be getting.
Maybe you are looking for
-
Problems syncing the iPod touch
My iPod Touch synced fine at first, but now all I get is an error message "The iPod (xxx)cannot be synced. The disk could not be read from or written to." What am I doing wrong? I have tried resetting it, restarting it. Now tempted to 'relocate' it i
-
It connects to internet fine. I have tried restoring back to factory condition and hard wire update by connecting it to my Mac mini . The date and time won't set. And won't acknowledge my Apple ID and password......... I am usually tech savy but this
-
hi guys; kindly, can any one tell me : is it possible to use Labview installed on desktop pc to show up statistically the main performance key features between mutlicore systems and single core systems but with (two versions, embedded and general pur
-
Error message exporting large picture file from Aperture 3.5
Recently I took a large panaramic comprised of 165 pictures using Gigapan Epic Pro and stitched together using software provided with Gigapan. I exported the stitched file into Aperture to perform final edits. When I go to export the final version I
-
How do i get back my 800gb of lost (free space)
i have a new imac and it has a 3tb fusion drive. i used paralells to port my old computer over to it. the conection went down slightly in to the transfear and now i am left with 800GB of free space on my drive. i can not seem to reclaim this. if i tr