Can I call a regular LabVIEW VI from my C# application without first creating a DLL in the application builder?
I am writing a C# application and have LabVIEW 8.2 and the Application Builder. I want the application to call different standard VIs included in LabVIEW. One way to solve this is to create a blank VI, insert the desired standard VI, have the Application Builder create a DLL and then let the application call the DLL. Something tells me there must be a shortcut to this, is there? Aren't all standard LabVIEW VIs really DLLs underneath the surface? Can I somehow call those DLLs directly?
arnold_w wrote:
Aren't all standard LabVIEW VIs really DLLs underneath the surface?
NO, LabVIEW is a programming language and contains a lot of primitives. Some VIs are wrappers for DLL's but even calling these from C(#) might be a problem.
You can exploit the LabVIEW ActiveX interface to perform all the actions you want.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Similar Messages
-
Can you call these regular US numbers from Skype? ...
Can you call these regular US based number's from Skype without being blocked why or why not?
Number's are from (removed).
They are considered "free telephone chat line's" only long distance or regular fee's would apply.
So are these allowed by the Skype system etc?
Some example's of the phone number's incase you can't visit the site are: (removed)
Thanks in advance.playdoughfigure wrote:
1. They are considered "free telephone chat line's" only long distance or regular fee's would apply.
2. So are these allowed by the Skype system etc?
Hello,
I've made a test call to one of these #s.
1. Yes. That statement is correct.
2. Yes they are allowed.
I've had to edit your post a little as we don't allow third party sites being posted.
TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
I recommend that you always run the latest Skype version: Windows & Mac
If my advice helped to fix your issue please mark it as a solution to help others.
Please note that I generally don't respond to unsolicited Private Messages. Thank you. -
Calling a separate BSP Page from a Web Application Builder BPS page.
I have been creating a basic BPS application for manually entering data into BW.
We are allowing users 2 options:
1. Manual Data entry via a web Page created in the Web Interface Builder.
2. Via a Flat File using the process described in the "How To" Guide on how to load a flat file into BPS Web Page. This was done in the Mime repository via a BSP application (transaction se80).
I want to incorporate both method on a single web page (or group of linked pages) so that the user can choose which method that they want to use.
My question is: How can I call the flat file loading screen (created in se80) from the Manual data entry screen that was created in Web Interface Builder?
Thanks,
AdamAdam,
You dont have to create a new tab also. You can incorporate the newly created BSP page
below the Manual Entry layout. Do the following step
1. Create a text element below the layout in web application builder. Choose Edit long text
2.insert this code
<iframe id="Text86" border="true" name="upload4" src="/sap/bw/mime/bex/icons/pixel.gif" width="580" height="65"></iframe>
<script language="JavaScript" type="text/javascript">
var frame = document.getElementById( 'Text86' );
var url = '/sap/bc/bsp/sap/z100bps001/upload_hours.htm';
// set source attribute of iframe to new URL
frame.src = url;
</script>
Now you should be able to the see the newly created BSP page below your layout.
Coming to your other question on "hard coding" the answer is you shouldnt specify the absolute url, just specify the relative URL and system will take care of the rest.
Eg. - '/sap/bc/bsp/sap/z100bps001/upload_hours.htm'
Let me know if you need any help.
Thanks,
Praveen
PS.Dont forget to reward points -
How can I call a SAPME web service from MII such as PlaceFutureHold?
Dears,
How can I call a SAPME web service from MII such as PlaceFutureHold?
By using MII, I would like to develop some logic to check some values which query from SAPME database, if the value is out of spec, it needs to send a emal to inform user ans also hold the SFC.
Thanks!With Web service action block you can view all ME available services
in I.E
https://sapme:5000/manufacturing-services/ProductionServiceService?wsdl you could see your FutureHold service
To do that in MII, you need Web Service action block. Have you work with MII transaction before?
(saw your post in MII) -
Using ios 7.0.4 can a group email be sent either from icloud or iPhone by a means other than selecting the individual Contact, ie; can the group be selected and then an email composed that will send the message to all group members.
Hi Richard,
Thanks for the reply - I think I've sorted it though and there isn't actually an issue.
The whole group wasn't receiving the NDR, only the group manager which I setup a few weeks prior. This is a new feature so it complies with certain RFC's, basically the group manager will recieive the NDR to let them know there is a problem.
Something to do with mass mailing and unsolicited mail.
Ta
Ian -
I have created an Apple ID for my daughter with her own gmail address as the primary email address, but I want her Apple ID and primary email address to be an iCloud email address. How can I do this? I can't set up an icould email address for her without first creating an Apple ID right?
I'm not good with computers so please explain in simple way...:)
I also wonder what the best way is to set up accounts for children in a family. I dont want them to be able to purchase apps etc through the parents accounts, also some things we like to share as a family and others we don't want to share. Is there any good. clear, simple explanation from Apple Support about these issues? Or best to go to Apple store and go to genius bar or one to one advise?
thanksYou can set up an iCloud account which makes the iCloud email address you choose the Apple ID and thus the login for it:
https://discussions.apple.com/message/22283348#22283348
though I have to say I think it's more sensible if the ID is another address, both for security reasons (so people don't know what the login is) and as a contact address from Apple if the account were to stop working and they needed to contact you. So personally I would to to System Preferences, enter the GMail address which is an ID, and then choose a nerw @icloud.com address.
If she has her own iCloud account she will need either her own computer or her own user account on your Mac to be able to make use of it. You should note that under Apple's terms of use Apple IDs are only available to children of 13 and over.
As to purchasing apps, this is nothing to do with iCloud: it's iTunes, and the login can be different. So you can all sign into the same iTunes account but have different iCloud accounts. Or she can have her own iTunes account if she is of suitable age (credit card needed for purchasing apps).
If you have other children you should be aware that any one Mac or device can create only three iCloud accounts - this is tied to the serial number, not the user account, and once reached cannot be bypassed. You can of course sign into an iCloud account created on another device. -
Why can't I open some of my documents on Pages even though I created them all on the same IPad with the same Pages ap?
I think I know the problem because I've had it myself. I didn't upgrade iWorks on my iPad, but after Apple made changes to iCloud (concurrent with Mavericks) any docs passing through it were modified and made unreadable. Even though, as you say, they were created on my iPad using the previous version of iOS Pages, which I didn't upgrade.
iCloud is the culprit, if your iPad settings had iCloud>Documents & Data enabled, the docs were modified and disabled in the cloud.
I made a further mistake. After I saw this happening, I didn't think to turn off auto updates, and Apple pushed the new version of iOS Pages onto my iPad. The result was that ALL my docs disappeared from the iPad, and from iCloud.com also. I have not been able to recover them.
I've been talking to the Pages engineering team about it. If they come up with an answer, I'll post it here. Meanwhile, get those older files backed up somewhere safe if you can. -
Can I call a dynamically loaded subvi from a subvi inside a library?
I have an application that uses a .lvlib, this library has many subvi's. From my executable, I can dynamically load subvi's within the library using the "open reference.vi" and passing in just the name as long as the subvi's being called are listed in the "always included" list of my build specification. What I want to do now is load an external subvi (external to the library) using the same method. But when I try to do this, LabVIEW cannot find the external subvi even when it is included as part of the executable. It seems the Paths are getting messed up. Here is what is happening:
Lets say I have Mylibrary.lvlib as my library in the following path C:\MyProject\Mylibrary.lvlib,
and internal.vi as my subvi within the library in the following path C:\MyProject\MySubVis\internal.vi,
and external.vi as my subvi outside of my library in the following path C:\MyProject\external.vi
This is all in the same project.
I'm using the "Open VI Reference.vi" from internal.vi to call external.vi, and I'm including both internal.vi and external.vi in my executable (MyEXE.exe for illustration purposes). When I run this part of my code I get an error and LabVIEW reports the path of my external subvi as: C:\MyProject\MyEXE.exe\MySubVis\external.vi which is really the path for my library subvi. Why?
Either way, when I hard code what is supposed to be the correct path to my external subvi: C:\MyProject\MyEXE.exe\external.vi, LabVIEW can't seem to find the file, its' almost like an access scope problem because I'm trying to access something outside of the library. Is there such thing? If the file is part of my exe why can't LabVIEW find it??? How can I call my external.vi BY NAME from my internal.vi??
Any help is appreciated.Your hardcoded path is incorrect. How do you have the build configured? Are you using the new executable structure or the pre-8.2 structure.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
How can I call a pop up window from a java class ?
Hi,
I am developing a web app. I would like to call a windoz pop up from a java class.
How can i do that ?
Thanksuser504072 wrote:
It was possible to do it in ASP .NET even from the server side with the method Page.ClientScript. What do you think what Page.ClientScript stands for?
I's an encapsulation for the JavaScript code required and hides the separation between frontend and backend. There was a reason why so many developers stick to the MVC-pattern wich ist violated here.
I did not know it is not possible to do the same thing in Java.I'ts not a task of the backend to layout the user interaction GUI.
bye
TPD -
How can I call a ABAP proxy class from BADI? PLease help
hi Experts,
I have a scenario where I have to call a ABAP proxy class from a BADI. How can I do this? Does anybody has sample code for the same?
Please help.
Thanks
GopalHi,
You can call a method of a class from BADI. Here are the steps.
1) In the BADI implementation create a object for the proxy class.
2) Call the Execute_Synchronous method.
You can define a BADI by using SE18 and you can implement it by using SE19.
Sample code...
================================================
METHOD ZIF_EX_VBADI~CONVERTUPPER.
DATA: OBJ TYPE REF TO ZTESTCLASS.
DATA: IT_DATA TYPE ZIN_MT,
IT_RES TYPE ZOUT_MT,
SEXCEPTION TYPE REF TO CX_AI_SYSTEM_FAULT.
TRY.
CREATE OBJECT OBJ
EXPORTING
LOGICAL_PORT_NAME = 'TESTPORT'.
CATCH CX_AI_SYSTEM_FAULT INTO SEXCEPTION.
ENDTRY.
ENDMETHOD.
================================================
Thanks,
Vivek LR -
Can we call a FM in ECC from BI
Hello,
We have a requirement where in we need to call a FM in ECC from BI transfer routine, Can some help me in achieving this.
This requirement is for a real time cube, so will there be any performance impact at the time of report execution?
Thanks,
NaveenCalling a remote function is performance issue and you are using it with the remote cube...
It is possible but the performance may be very bad.. in the transformation, you can call the remote function. so this will be done once... calling the FM at the field level will be result in bad performance -
Can we call a Java Stored Proc from a PL/SQL stored Proc?
Hello!
Do you know how to call a Java Stored Proc from a PL/SQL stored Proc? is it possible? Could you give me an exemple?
If yes, in that java stored proc, can we do a call to an EJB running in a remote iAS ?
Thank you!For the java stored proc called from pl/sql, the example above that uses dynamic sql should word :
CREATE OR REPLACE PACKAGE MyPackage AS
TYPE Ref_Cursor_t IS REF CURSOR;
FUNCTION get_good_ids RETURN VARCHAR2 ;
FUNCTION get_plsql_table_A RETURN Ref_Cursor_t;
END MyPackage;
CREATE OR REPLACE PACKAGE BODY MyPackage AS
FUNCTION get_good_ids RETURN VARCHAR2
AS LANGUAGE JAVA
NAME 'MyServer.getGoodIds() return java.lang.String';
FUNCTION get_plsql_table_A RETURN Ref_Cursor_t
IS table_cursor Ref_Cursor_t;
good_ids VARCHAR2(100);
BEGIN
good_ids := get_good_ids();
OPEN table_cursor FOR 'SELECT id, name FROM TableA WHERE id IN ( ' | | good_ids | | ')';
RETURN table_cursor;
END;
END MyPackage;
public class MyServer{
public static String getGoodIds() throws SQLException {
return "1, 3, 6 ";
null -
How can we call a OSB proxy service from a BPEL process?
Hi,
I want to call a OSB proxy service from a BPEL process. Can you please explain me the procedure?Get the wsdl of the OSB proxy service and create webservice parnerlink in BPEL based on this wsdl to invoke the service
To form the wsdl url, copy the Endpoint URI configured to the proxy service(just click on the proxy service in the console) from the sbconsole - /ATHGPUM_GlidePathService/ProxyService/ATHGPUM_GlidePathProxyService
Pre append <<protocol://OSB Hostname:OSB Port>> - http://localhost:8000/ and post append with ?WSDL
The final WSDL url look like - http://localhost:8000/ATHGPUM_GlidePathService/ProxyService/ATHGPUM_GlidePathProxyService?WSDL
Regards
Albin I -
Can I Call method on one JVM from another through a dll?
Let me explain.
I have this java jar file that I can only have one instance of running at any given time. I'm using a shared data segment in a dll to store a bool indicating whether the program is already running or not. If it's already running, I have to not run the second instance and give focus to the current running instance.
The jar file calls a native method "canInstantiate()" on a dll to see if there's already an app running. If there isn't, the env and obj are stored in the shared data segment of the dll and we return true. If there is already an instance of the program running, I want canInstantiate call a function on the current instance of the jar (like a callback) to tell it to request focus. It's not working. Can someone tell me if my code is right?
The .h file
#include "stdafx.h"
#include <jni.h>
#include "CardServer.h"
#pragma data_seg("SHARED") // Begin the shared data segment.
static volatile bool instanceExists = false;
static JavaVM *theJavaVM = NULL;
static JNIEnv* theJavaEnv= NULL;
static jobject instanceObject = NULL;
static jmethodID mid = NULL;
static jclass cls = NULL;
#pragma data_seg()
#pragma comment(linker, "/section:SHARED,RWS")
jdouble canInstantiate(JNIEnv *env, jobject obj);
jdouble instantiate(JNIEnv *env, jobject obj);
jdouble uninstantiate(JNIEnv *env, jobject obj);
void grabFocus();
</code>
The .cpp file:
<code>
#include "MyFunctions.h"
#include <string.h>
#include <stdlib.h>
#include "stdafx.h"
#include <iostream.h>
jdouble canInstantiate(JNIEnv *env, jobject obj)
printf("In canInstantiate!!");
if (!instanceExists)
printf("No instance exists!!");
return (jdouble)0.0;
else
printf("An instance already exists!!");
grabFocus();
return (jdouble)1.0;
jdouble instantiate(JNIEnv *env, jobject obj)
printf("**In CPP: Instantiate!!\n");
cout << "At start, env is: " << env << endl;
cout << "At start, obj is: " << obj << endl;
if (instanceExists == false)
instanceExists = true;
theJavaEnv = env;
instanceObject = obj;
theJavaEnv->GetJavaVM(&theJavaVM);
cls = (theJavaEnv)->FindClass("TheMainClassOfTheJar");
if (cls == 0) {
fprintf(stderr, "Can't find Prog class\n");
exit(1);
mid = (theJavaEnv)->GetMethodID(cls, "grabFocusInJava", "(I)I");
if (mid == 0) {
fprintf(stderr, "Can't find grabFocusInJava\n");
exit(1);
printf("About to call grabFocusInJava\n");
grabFocus();
printf("CPP: After the grab focus command in instantiate!!\n");
cout << "At end, env is: " << env << endl;
cout << "At end, obj is: " << obj << endl;
return 0.0;
else
printf("CPP: Finished Instantiate!!\n");
return 1.0;
jdouble uninstantiate(JNIEnv *env, jobject obj)
printf("CPP: In uninstantiate!!\n");
if (instanceExists == true)
instanceExists = false;
theJavaVM = NULL;
instanceObject = NULL;
printf("CPP: Finishing uninstantiate!!\n");
return 0.0;
else
printf("CPP: Finishing uninstantiate!!\n");
return 1.0;
void grabFocus()
printf("In CPP::GrabFocus!!\n");
instanceObject = theJavaEnv->NewGlobalRef(instanceObject);
cls = (theJavaEnv)->FindClass("CardFormatter");
if (cls == 0) {
fprintf(stderr, "Can't find Prog class\n");
exit(1);
printf("Got the cls id again!!\n");
if (cls == 0)
printf("IT'S INVALID!!\n");
mid = (theJavaEnv)->GetMethodID(cls, "grabFocusInJava", "(I)I");
if (mid == 0) {
fprintf(stderr, "Can't find grabFocusInJava\n");
exit(1);
theJavaEnv->CallIntMethod(instanceObject, mid, 2);
printf("Called grabFocusInJava\n");
</code>
thanks in advanceCan I Call method on one JVM from another through a dll
...The rest of your question merely expands on your title.
And the answer to that question is no.
When you call a method you are executing a "thread of execution." A thread of execution exists only in a single process. It can not exist in another process.
If the dll is doing some interesting things then you could call a method that sets a flag. Data can move between instances. But you would then have to have a thread in that different process monitoring that flag. And sharing data in a dll is not a normal process, so it would have to be coded appropriately.
If all you want to do is set the current focus to the existing application, then that can be done with existing windows functionality. You don't need to do anything special in your dll. You can probably search these forums to find the exact code. If not there are countless examples in windows repositories (like MSDN) on how to do that. -
Can we call Swing Utitlies.Invoke Later from Swing worker
Hi
I know The worker thread is to run as a seperate thread for time consuming process.i.e non GUI stuff.
But my question is Can we call invokeLater from SwingWorker
Thanks
RahulcodingMonkey wrote:
rahulm_32003 wrote:
Hi
yes it is correct.But my question to know whether can we call InvokeLater from Swing worker.What happens if we do like that.Does it make any problem IN GUI
ThanksTry it.Of course you can try to do that. But why do you want to? Why do you insist on doing something silly?
Post an example SwingWorker where this makes sense to do.
Maybe you are looking for
-
What should the default program be for downloading this type of file? How can I get Firefox to download these without asking me which program to use?
-
I am trying to sync my phone to my car, any suggestions?
I am trying to sync my phone to my car, any suggestions?
-
Hello, not sure if anyone can help me with my problem, but here it is.. I stream 4 live video camera's to a remote host 24/7 and record to HD using Adobe Media Encoder. The encoder and the saved flv. files have always worked great, no problems here.
-
Ipod 5th Gen is stuck on the apple logo with the loading bar not moving
So I recently decided to restore my iPod 5th gen to factory settings, because I plan on selling it to a friend. When I chose the option to erase all data and reset settings, the iPod turned off, and then came to the black background with the apple lo
-
How I can audit users? Is there any way. I want to see users activities user has performed. -- Amer