How to Load a Panel during run time from a CVI dll
Hi,
I want to execute/load a panel during runtime, from a CVI dll function.
my CVI dll "test.dll" has "READ_PAN" function. while executing this function from a Test Stand Action step i want Configure Panel (from FR_GUI.uir) to pop up.
can you please suggest me how can i do this from my "test" project of CVI.
int __stdcall __export RunFRConfig (CAObjHandle step,CAObjHandle thisContext)
ERRORINFO errorInfo;
char errMsg[1024];
int pan;
pan = LoadPanelEx (0, "FR_GUI.uir", READ_PAN, __CVIUserHInst);
DisplayPanel (pan);
RunUserInterface();
DiscardPanel (pan);
return 0;
Error:
// sprintf(FinalErrMsg,"Configure Error: %s",errMsg);
return -1;
Thanks for ur reply.
Hello Asad,
It is possible to maximize the run time previewer when calling reports from forms. U need to set a parameter named 'MAXIMIZE' to do that.
I m attaching a code sample for u. This is working in my production environment.
DECLARE
pl_id ParamList;
BEGIN
pl_id := Get_Parameter_List('setProposal');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('setProposal');
// This parameter is set to hide parameter form at run time
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
// This parameter is used to maximize previewer window at run // time
Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
Run_Product(REPORTS, 'sample.rep', SYNCHRONOUS, RUNTIME,
FILESYSTEM, pl_id, NULL);
END;
Feel free to contact me if u need anymore assistance.
Take care and bye
Similar Messages
-
In ABAP How to locate an Input file from a Directory during run time
I'm loading data from a flat file(text file) into SAP thru BDC programs. All my input files are present in Application server.How to locate an Input file in a directory during run time to process BDC programs programmatically. Are there any in-built functions?Provided me some sample code or any method of doing the same.
Hello Murali,
you should ask this question in the ABAP forum.
Regards
Gregor -
How to move control in front panel at run time
Hi,
I'm using LabVIEW 8.5. I want to move the control anywhere in front panel. For example in the attach file I want to pick up the pict control (with the help of mouse) and drop it anywhere in front panel. second thing I want to ask if I want to make it copy paste, means main control will b at its initial position and where the mouse moves the image moves and when I leave the mouse the image gets drops there. How to do it. Please help me.
- Thank You
Attachments:
track.vi 15 KB"Sonali" <[email protected]> wrote in message
news:[email protected]..
Hi, &
nbsp; I'm using LabVIEW 8.5. I want to move the
control anywhere in front panel. For example in the attach file I
want to pick up the pict control (with the help of mouse) and drop
it anywhere in front panel.
You'll need to use an event structure to respond to the mouse down, mouse
move and mouse up events. In the mouse down event of the control, set a
value in a shift register to true. In the mouse move event, when the value
is true, change the position of the control with a position property node.
In the mouse up event of the control, set the boolean in the shift register
to false.
second thing I want to ask if I want to make it copy
paste, means main control will b at its initial position and where the
mouse moves the image moves and when I leave the mouse the image gets
drops there. How to do it. Please help
me. &
nbsp;  
;
You can't copy paste controls during run time. It seems you want to make a
graphical application, where you can graphically drag and drop some
configuration or something like that. You should have a look at the picture
control. You can draw anything you want in this control, and catch mouse
down, move and up events in the same way. It is perhaps a bit difficult to
get to know it, but it is very powerful when you do.
Regards,
Wiebe. -
How to hide the Parameter field during Run time?
Hi,
How to hide the Parameter field during Run time?
I have a parameter field which behaves differently depending on the User logged in.
I am using reports 10G
For ex: I have 3 field created in JSP
CUSTOMER
PROVIDER
FROM DATE
END DATE
If the user = 'SUPER show all the parameter
CUSTOMER
PROVIDER
FROM DATE
END DATE
If the user is 'GATEKEEPER" Just show
PROVIDER
FROM DATE
END DATE
Can I do that?
Please help
Thanks.
KKhi, i'm not familiar much with JSP. but i think workaround is to create two window one which have 4 fields and the other which have 3. if user is SUPER then call the first screen otherwise if user is GATEKEEPER then call the second screen.
-
How to get the Title and Tcode of a Program during run time
Hello,
I am new to abap and I have this question please. Is the a way to get the title, Tcode and Author of a program during run time? I would like to get the name and title of a program or a view or an include during run time.
Using table TADIR, you can only get the object_name and the author. Is the a way for me to get the Title of the repository object and any Tcode if any is available for the case of a program?
I loop forward for your respond.
Thank you.
SabinaYou can get it by accessing SYST.
SY-TITLE for Title
SY-TCODE for Tcode
I don't think there is any field in SYST for the Author.
To get the author name you can use the TRDIR table.
Regards,
Naimesh Patel -
Opening Another Flash File during Run Time
I know, this is too easy. How do I open a Flash.exe file
during run time? I know the code below is wrong but some insert the
correction?
open_btn.onRelease = function () {
play("C:\Documents and Settings\GameOfficeFlow.exe");}
Forever in your debt,
Mikeplay() is a timeline command.
I don't think you can have Flash load/play an exe file, but
wait awhile and see if someone else knows better on that one. You
can have it load/play an swf version of a Flash file though. -
Update Indicator label during Run time
Hi all,
This is the situation, i have an Indicator to display Acceleration, Velocity & Displacement. I am using it a local variable in the 2 case structures.
Here is what i want to achieve:
I want to update the Indicator label for the respective Radio Button control. If the click on Acceration button, the label should be updated to Acceleration during Run time. Correspondingly for Velocity and Displacement button.
Can anyone help me how to go about this.
Excuse me if i am not clear about anything.
Thanks in advanceGenerally you should not change the label of a control, because this is often how the control is referred to from elsewhere in the program and it causes confusion.
Instead there is a Caption property. If you right click the control and select Visible Items->Caption, the label is hidden and the caption is displayed instead (with the same text).
In your block diagram, right click on the chart terminal and select Create->Property Node->Caption->Text. This creates a property node for the caption property. You will need to click on it to change it to 'Write' rather than 'Read' - you can then wire whatever text string you like and it will update on the front panel. -
Select serial comm port in sub vi during run-time
Hi, would like to be able to select the comm port (serial RS232) in sub vi to use in main vi during run time. How can I do this? Have tried and failed, for on startup an error occurs because I have not selected a port yet. An example would be invaluable! Thanks alot, Madri
Hi Madri !
What you could do is to intercept the com errors, and open a configuration vi either if there is an init error or if the user has pressed a "Change port" boollean (or menu...). Do not forget to close the previously opened serial port, and to open/init the new one. I have attached a small example of this idea.
Of course com errors can have various origins, and do not require always to change the serial port. So, you have some additional work to do.
Hope this helps
CC
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...
Attachments:
Select_port.vi.zip 12 KB
Com_with_serial_init_vi.vi.zip 13 KB -
Teststand error states that a vi failed to load in the Labview Run-Time Engine
I am getting an error in teststand that states that a vi failed to load in the Labview Run-Time Engine version '14.0.1'
If I look at the software loaded on my system with the NI Measurement and Automation Explorer I have Labview Run Time engines for version 2009, 2010, 2011, 2012, 2013, & 2014 on my system.
How do I get this VI to run on this system when it is called by test Stand?
Thank youThe RTE 14.0 was loaded as part of my deployment and after I ran this I got an update notice for the F1 patch which I also loaded.
I do not have labview loaded on this system, only the run time engines from running my deployment.
When I launch t he teststand sequence, when it calls the labview VI, I get the following error moessage:
Error: Failed to load VI 'C:\builds\RelayVoltageMeaure.vi' in the LabVIEW Run-Time Engine version '14.0.1'. LabVIEW: The VI is not executable. This error may occur because the VI is either broken or contains a subVI that LabVIEW cannot locate. Select File>>Open to open the VI and verify that you can run it. VI Path: C:\builds\RelayVoltageMeaure.vi[Error Code: -17600, Failed to load a required step's associated module. ]
I have attached the teststand sequence if this helps.
Thanks
Attachments:
QuantumDigitalBd.seq 13 KB -
How to create transparent image at run-time?
How to create transparent image at run-time? I mean I want to create a (new) transparent image1, then show other (loaded) transparent image2 to image1, then show image1 to a DC. The problem is - image1 has non-transparent background...
i'm not sure, but you can set the alpha value to 0 in all pixels which are 'in' the background..
greetz
chris -
Libjil.iso missing during run time?
Hi all,
I am new one to jes. I setup jes in Raspbian on Raspberry machine. libjil.iso is missing during run time. Please help me how to resolve the issue.
Thanks a lot.try to adjust ur repeating fram which prints ur data in ur report.
some of ur data overlaping that's y it cannot display . most of the time character mode reports generate this error. simply adjust ur repeating fram up and down where it fits u problem will solve.
tnx. -
Hi all,
Is there any restriction on Mac OS X 10.6/10.7 that binaries running from root directories like /usr/libexec/ cannot load dylib's at run-time using dlopen() or NSAddImage()?
I am trying to run a binary like "sample" from a directory inside /usr/libexec/ which tries to load a dylib like "sample.dylib" which is present in the same directory as "sample".
It resulted in a segmentation fault with the following error and stack-trace.
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000003430
0x0000000000003430 in ?? ()
Using gdb, I could find out that the program crashed inside dlopen() (the path passed to dlopen() being a simple filename like "sample.dylib").
The dlopen() at the top of the stack-trace pasted below gets called around 10 times; it does not crash during this 2nd level dlopen() any-time.
#0 0x00007fff81be9e93 in dlopen ()
#1 0x00007fff82838f7f in map_images_nolock ()
#2 0x00007fff82821bc0 in map_images ()
#3 0x00007fff5fc039b9 in __dyld__ZN4dyldL18notifyBatchPartialE17dyld_image_statesbPFPKcS0_jPK15dyld_imag e_infoE ()
#4 0x00007fff5fc0c839 in __dyld__ZN11ImageLoader4linkERKNS_11LinkContextEbbRKNS_10RPathChainE ()
#5 0x00007fff5fc04d48 in __dyld__ZN4dyld4linkEP11ImageLoaderbRKNS0_10RPathChainE ()
#6 0x00007fff5fc08f68 in __dyld_dlopen ()
#7 0x00007fff81be9ec0 in dlopen ()
#8 0x000000010002694f in AAA ()
#9 0x0000000100026730 in XXX ()
#10 0x0000000100026494 in YYY ()
#15 0x00000001000566a9 in main (argc=7, argv=0x7fff5fbff810) at ../../main.c:50
After this 2nd level dlopen() gets called 10-15 times, the stack will unwind from map_images_nolock () till __dyld_dlopen (). But when it tries to finish all the instructions inside __dyld_dlopen () and step out of it, the program crashes with the EXC_BAD_ACCESS signal.
Please find below the final stack-traces obtained during debugging when I put breakpoints for AAA() and dlopen() and went on stepping inside till the program crashed.
(gdb) bt
#0 0x00007fff5fc04d48 in __dyld__ZN4dyld4linkEP11ImageLoaderbRKNS0_10RPathChainE ()
#1 0x00007fff5fc08f68 in __dyld_dlopen ()
#2 0x00007fff81be9ec0 in dlopen ()
#3 0x000000010002694f in AAA ()
#4 0x0000000100026730 in XXX ()
#5 0x000000010002663c in YYY ()
#11 0x00000001000566a9 in main (argc=7, argv=0x7fff5fbff7f0) at main.c:50
(gdb) step
Single stepping until exit from function __dyld__ZN4dyld4linkEP11ImageLoaderbRKNS0_10RPathChainE,
which has no line number information.
0x00007fff5fc08f68 in __dyld_dlopen ()
(gdb) bt
#0 0x00007fff5fc08f68 in __dyld_dlopen ()
#1 0x00007fff81be9ec0 in dlopen ()
#2 0x000000010002694f in AAA ()
#3 0x0000000100026730 in XXX ()
#4 0x000000010002663c in YYY ()
#10 0x00000001000566a9 in main (argc=7, argv=0x7fff5fbff7f0) at ../../main.c:50
(gdb) step
Single stepping until exit from function __dyld_dlopen,
which has no line number information.
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000003430
0x0000000000003430 in ?? ()
To summarise:
For some reason, a user wants to install a product and its binaries under /usr/libexec/.
This binary tries to dynamically load a dylib using dlopen("sample.dylib", RTLD_LAZY | RTLD_LOCAL).
It looks like, the dynamic linker then opens dependent dylibs and runs module initialisers. Then crashes when returning (which sounds like a trashed stack).
Can anyone please tell me whether there is some OS-imposed restriction or OS bug which can explain this type of behaviour?
(Note: The crash does not occur if the binary and dylib are installed under a normal user's home directory and run from there.)
Many thanks,
VinayThe otool output for the binary and dylib are pasted below.
localhost:Latest dev$ otool -L /usr/libexec/Dipu/sample/sample
/usr/libexec/Dipu/sample/sample:
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.18.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
localhost:Latest dev$ otool -L /usr/libexec/Dipu/sample/sample.dylib
/usr/libexec/Dipu/sample/sample.dylib:
libProduct.dylib (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.18.0) -
How to change Crystal Reports XI database name at run time from ASP code using ADO
Dear All,
I need advises regarding to my problem below
I have two database in same SQL 2005 SERVER for TEST01 and LIVE01 Environtment, and I've created more than 100 reports with Crystal Reports 11 and call it from ASP classic page.
The problem is how can I change a database from TEST01 to LIVE01 at the run time from ASP code as I already using TEST01 database on Crystal Reports and I do not want to set a new database location inside crystal for each reports
Thanks and wait for your reply soon.
Below is my code, which has no effect to crystal reports although I've change the database from TEST01 to LIVE01:
<%
Dim oADOConnection, oRptTable, oADORecordset, sql
Dim struser, strpwd, strdriver, dblocation, dbname, strConnect
struser = "sa"
strpwd = ""
strdriver = "{SQL SERVER}"
dblocation = "SQL200501"
dbname = "LIVE01" ' Changed from TEST01 to LIVE01
strConnect = "User Id=" & strUser & ";"
strConnect = strConnect & "PWD=" & strPwd & ";"
strConnect = strConnect & "DRIVER=" & StrDriver & ";"
strConnect = strConnect & "SERVER=" & DBLocation & ";"
strConnect = strConnect & "DATABASE=" & dbName
sql="Select * from Employee"
Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11")
Set session("oRpt") = session("oApp").OpenReport("C:\REPORTS\RPT01.RPT", 1) 'USING TEST01 DATABASE
session("oRpt").MorePrintEngineErrorMessages = False
session("oRpt").EnableParameterPrompting = False
session("oRpt").DiscardSavedData
Set oADOConnection = Server.CreateObject("ADODB.Connection")
oADOConnection.Open (strConnect)
Set oADORecordset = Server.CreateObject("ADODB.Recordset")
Set oRptTable = session("oRpt").Database.Tables.Item(1)
oRptTable.SetDataSource oADORecordset, 3
session("oRpt").SQLQueryString = CStr(sql)
session("oRpt").ReadRecords
%>Did you ever find a solution to this problem? I have the same problem when moving reports from development to Test to Production environments. If the DBName is not the same the report ignores the name provided at runtime.
-
Changing data in the table control during run time of transaction F-28
Dear Experts,
in transaction F-28 of second screen of second column (Field Name: Assignment) currently the data is getting from BSEG table and populating this column of table control, now I have a requirement that the data should be get from the other ZTABLE and populate this column during run time instead of the data from BSEG table, please let me know your suggestions, if you guys feel it will be done using User Exit then please let me know the suitable exit for this.
Best Regards
VenkatHi Venkat,
Use the appropriate sort key in the GL to fill up the assignment field automatically.
U can create ur new sort key through OB16
Regards,
Kiran -
I have the following code to load in some images and
display/move them:
this.createClassObject(mx.controls.Loader, "myLoader", 1);
this.createClassObject(mx.controls.Loader, "myLoader2", 2);
this.createClassObject(mx.controls.Loader, "myLoader3", 3);
this.createClassObject(mx.controls.Loader, "myLoader4", 4);
this.createClassObject(mx.controls.Loader, "myLoader5", 5);
myLoader.scaleContent = false;
myLoader2.scaleContent = false;
myLoader3.scaleContent = false;
myLoader4.scaleContent = false;
myLoader5.scaleContent = false;
var images:Array = ["
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg"
myLoader.contentPath = images[0];
myLoader._x = 0;
myLoader._y = 0;
myLoader2.contentPath = images[1];
myLoader2._x = 320;
myLoader2._y = 0;
myLoader3.contentPath = images[2];
myLoader3._x = 640;
myLoader3._y = 0;
myLoader4.contentPath = images[3];
myLoader4._x = 960;
myLoader4._y = 0;
myLoader5.contentPath = images[4];
myLoader5._x = 1280;
myLoader5._y = 0;
This works great, but what I'm wondering is, can I load in
the images array variable at run time from an external file so I
could edit that file on the server in order to change images,
without having to re-publish the flash file? Thanks for any help.
BobAdrian,
Have a look at: http://www.oracle.com/technology/products/database/htmldb/howtos/howto_create_upload_spreadsheet_form.html
It's not 100% what you're looking for (as it requires you to cut & paste from the spreadsheet), but it may do what you're after.
Thanks,
- Scott -
Maybe you are looking for
-
I had my music stored on iTunes on my old laptop which is no longer working. I purchased an iPad 2 but don't understand why there is no way of connecting my iPod to my iPad to transfer my music over. Is there an app or something I can use to operate
-
WDTHEMEROOT works in one client but not another
I'm looking at using the WDTHEMEROOT application parameter to set a theme. I've set it to 'sap-chrome' in our development client and that works fine when I test the application. When I log into another client on the same system, however, the WDTHEMER
-
Sending escape sequences to control command line printing
Hello Java Community, I am interested in printing PDF files programatically by using a thread that used the runtime environment and the sending a command to print the file. I hava managed to print files directly to the printer using "cmd /c acrord32.
-
Hi Guru's, while reversing the contingent liability thru t.code F-20 , there is one entry against customer is not appearing the list of open items. we analysed that user has given the due date is 28.06.2207 instead of 28.06.2007, is it correct reason
-
How to protect my messages in iPhone with password lock
Hey pls help me to protect my messages alone . Even though there is a phone passcode in settings , I need to protect my messages alone . Please help