Use of dot Net operators in LabVIEW
Anybody know if there's a way to use .Net operators in LabVIEW? In particular, I have a situation where it would be useful to use typeof(). I know that I can call GetType() on an object, but I don't want to instantiate an object just to get a class type.
Hi,
Yes you can, see code below.
Regards,
Greg H.
Applications Engineer
National Instruments
Attachments:
NETGetType.png 14 KB
Similar Messages
-
Dot net dll and touch panel module
Hi all,
Is there any possibility to use a dot net dll with the touch panel module on LabView 2011?
Thanks in advance...This appears to be related to this:http://forums.ni.com/t5/LabVIEW/call-dll-function-on-Windows-CE6-0-Device/m-p/2092170
Since you already know that the device would be running Windows CE or Windows Embedded Standard, the question is really can Windws CE or Windows Embedded Standard use .NET? Not sure why you are asking this on a National Instruments forum, since it's a Windows question. I do know that .NET compact is available. Have no idea how well it works. -
DES Encryption compatibility between Microsoft dot Net and Java
Hi,
I have a situation that a Secret key is shared between two components like Core and the Customer. The customer encrypts a particular data using DES algorithm using the shared secret key. The customer uses Microsoft dot Net framework to do this. The encrypted data comes to core part which has been developed in Java. I want to know whether it is possible to decrypt the data value using DES algorithm which is coming from Dot Net platform. By the way I am getting different values. I want to know whether the byte[] in Java and Dot Net are same. Please provide me relevent answers to this question. Is it possible to make interaction with the cryptography between two differnet environments like Java and Microsoft Dot Net. I mean only DES algorithm.DebadattaMishra wrote:
Hi,
I have a situation that a Secret key is shared between two components like Core and the Customer. The customer encrypts a particular data using DES algorithm using the shared secret key.Yuk! That is what SSL is for.
The customer uses Microsoft dot Net framework to do this. The encrypted data comes to core part which has been developed in Java. I want to know whether it is possible to decrypt the data value using DES algorithm which is coming from Dot Net platform. Yes though there are many pitfalls. The devil is in the detail of the .NET code. I would not tackle this without access to the full .NET encryption code.
By the way I am getting different values.This is not surprising since, as I said above, there are many pitfalls. The.NET documentation is poor at best and in some cases is very very misleading. Some of the .NET methods involved in key generation have obscure semantics and only after a very careful reading of lots of MS documentation did I start to understand the semantics.
I want to know whether the byte[] in Java and Dot Net are same. You should compare the 'bits' of each byte and not the numeric values since Java uses signed bytes.
Please provide me relevent answers to this question.This is not your call. Anyone is free to post answers as long as they follow the forum code of conduct.
Is it possible to make interaction with the cryptography between two differnet environments like Java and Microsoft Dot Net. I mean only DES algorithm.Of course! -
Labview communicate with ABB robot through dll Dot Net
Hi all,
Currently I need to use labview to do the communicate with dot net, for example to read and write RAPID data, Get execute status from robot. I'm able to read from RAPID but can't manage to write. Does anyone have an idea how to do? Please advice. ThanksHi,
The NI OPC Server supporting device and drivers are here. Labview and third party device communication through OPC Server web cast avalable on here.
Datasocket/OPC Server Example avalable on following link. \Program Files\National Instruments\LabVIEW 2009\examples\comm\datasktx.llb
Siva
Sivaraj M.S
CLD -
Using Dash board in Dot net Page
Hi,
I am using OBI dashboard. I have made my dash board looks fine.
But what i want to do is I want to integrate this dash board in dot net page.
I just want to show my dashboard in a dot net web page any code sample and any link
will be helpful.
I found a pdf at
http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31769.pdf
It is a long pdf and i have little knowledge about dot net.
i just want to show my dash board on my web site.
Thanks
UmeshUse urls like:
http://server/analytics/saw.dll?Dashboard&PortalPath=/shared/ABC/_Portal/ABCSummary&Page=PageName&NQuser=username&NQpassword=password&Action=Navigate&P0=2&P1=eq&P2=Time.Year&P3=1+2007&P4=eq&P5=Time.Month&P6=1+4 -
Printing problem using Dot Net - fields are drifting off specified co-ords
Hello
I am writing a crystal report that requires exact positioning of data to fit preprinted stationery.
I have achieved this satisfactorily in design mode (CR XI) and the report prints according to requirements from design mode.
I have loaded the report into our Dot Net app and printed the same report from there and the x,y cordinates of the output is slipping more and more both across and down the page.
e.g the differences vary on the x co-ord from 5mm to 13mm working left to right and 1mm to 10 mm vertically from top to bottom.
This error is evident in both preview and printing via Dot Net but is perfect in design mode.
I am using CR12 merge modules from the dot Net app.
I have tried locking fields and size and unlocking them - it makes no difference.
I hope there is a simple solution for this as I have been tearing my hair our trying to solve this problem.
Thanks in anticipation.
RichardUsing Crystal 2008, I can explain the fundemental problem that I have with the drifting of the output, even from design mode.
1) Create a brand new report.
2) In page setup, zeroise all margins.
3) On the design tab place a text box on the report with contents "XXXX" in it.
4) Format Field options - add top and left margin line
5) Duplicate the field
6) First field - right click and choose "size and position" and set to X : 15 (cm) Y : 25 (cm)
7) Second field - right click and choose "size and position" and set to X : 2 (cm) Y : 2 (cm)
8) Print the report
The boxes on the report actually print at :-
Box 1 : X 2.35 (cm), Y : 2.5 (cm)
Box 2 : X 14.7 (cm), Y : 24.4 (cm)
Now, this problem only seems to have started happening since moving up to 2008 merge modules for our Dot Net app, but this issue appears to originate in design mode too, although I have not written any of our reports in CR 12 as yet.
I really need some help with this as this could cause issues in 500 reports already written in CR XI.
I hope someone has a very simple solution for me
Regards
Richard -
Used a XI web service in dot net, but cannot access the message types .
I have created a web reference in dot net for a XI web service. In the front end i have a form which has 4 fields these are the fields of my request msg in XI. But when i compile the project, i get an error 'Reference to a non-shared member requires an object reference.' I'm not able to create a object of the request and response classes.
Need help.Hi,
Please check on this blog:
/people/sap.user72/blog/2005/10/21/xi-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send -
Hi all,
We are in the process of integrating dot net applications with SAP.
Can you please let us know the process to do SSO with the dot net applications which uses
1.Integrated windows based authentication.
2.Basic authentication
Regards,
Shyam.Shyam,
You could refer to these threads.
.Net to SAP Portal (SSO)
.Net SSO with SAP
Reward points for handy posts!
Cheers,
Sandeep -
Getting Error while creating the proxy generator in Dot Net Connector 2003
Hi,
While creating the proxy generator in Dot Net Connector 2003 i am getting following error: I am successfully able to login into the SAP system and able to select the SAP tables but during the final step of proxy generator wizard i am getting following error:
<b>----
Error in Proxy-Generator
To create a proxy directly from a SAP system, you must install a Java VM from JavaSoft
Inner error was:
Object reference not set to an instance of an object.
OK
</b>
I have already installed the Java JVM on my machine its version is as follows:
<b>java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)</b>
Regards,
Ravi ShahHi Amit,
I doing good!!!! Thanks for the response.
I uninstalled the earlier version of JVM and installed the latest version of JVM i.e. jre-1_5_0_09-windows-i586-p.
I got the proper entries under registry mentioned below:
<b>Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_09]
"JavaHome"="C:
Program Files
Java
jre1.5.0_09"
"UseJava2IExplorer"=dword:00000001
"HideSystemTrayIcon"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.5"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5]
"JavaHome"="C:
Program Files
Java
jre1.5.0_09"
"RuntimeLib"="C:
Program Files
Java
jre1.5.0_09
bin
client
jvm.dll"
"MicroVersion"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5.0_09]
"JavaHome"="C:
Program Files
Java
jre1.5.0_09"
"MicroVersion"="0"
"RuntimeLib"="C:
Program Files
Java
jre1.5.0_09
bin
client
jvm.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"Country"="IN"
"PostStatusUrl"="https://sjremetrics.java.com/b/ss//6"
"EnableJavaUpdate"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start]
"CurrentVersion"="1.5.0_09"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_02]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_03]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_04]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_05]
"Home"="C:
Program Files
Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_01]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_02]
"Home"="C:
Program Files
Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.5.0_09]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"</b>
After installation I opened the Dot Net connector proxy client wizard . I followed the series of step during Dot Net connector configuration:
1. selected the SAP connector.
2. The next screen 'Enter Logon Information' comes where i entered the following information System as 'custom', host='IP address', Id='00' but by default it turns to '0' , client='800', user='user id' and password ='password'.
3. After clicking on Next button i am successfully logon into the SAP system.
4. The next screen in the wizard is 'selectall the remote function modules that you want to be part of your proxy object'. After selecting the SAP tables and clicked on Next button I am getting following error
<b>
Error in Proxy-Generator
To create a proxy directly from a SAP system, you must install a Java VM from JavaSoft
Inner error was:
INFO: using logging implementation "AII Logging"
Exception in thread "main" com.sap.aii.upload.api.LoginException$WrongPassword: Invalid user/password combination
at com.sap.aii.upload.sap.SAPConnection.connect(SAPConnection.java:94)
at com.sap.aii.upload.sap.SAPConnection.<init>(SAPConnection.java:38)
at com.sap.aii.upload.tool.RFC2WSDLTool.getWSDLforRFCs(RFC2WSDLTool.java:81)
at com.sap.aii.upload.tool.RFC2WSDLTool.main(RFC2WSDLTool.java:196)
OK
</b>
Thanks and Regards,
Ravi Shah -
Consuming XI webservice in Dot net application.
I have created a Xi webservice and hosted it on a server.Now I want to consume this webservice in a dot net application. But while consuming it I get a binding error from the webservice.Does anyone has a solution fron this. Do I have to do some XI settings while creating web service.
have you used the WSDL created in XI - u can find it from http://<server>:<port>/wsnavigator/enterwsdl.html
Also use the link in soap:address location for your test purposes.
If proxy is involved in your network you will have to consider tht too and finally u sud use a XI user id to connect. -
Oracle 11 g connection with asp dot net in visual studio 2008
Hi to all,
My application is using oracle 11 g as database in an asp dot net project . this was basically a project in asp dot net with sql server as a database . but now this need oracle 11 g as database . I have complete the db work, but i m getting the connection problem in visual studio (2008) with oracle 11 g .
I know for this it need a driver oracle.data.access ,, i do nt know which version it need ?
I have this dll . but version of it may be earlier. thats why it is not working properly
i have 11 g installed on the server computer , and we can only use it only on browser , I have a global.asax as a file in my dot net project in which connection string is written but i m getting error , something like ora10cc .
first i do not know , which odac version i have to download i have a link for this ,
http://www.oracle.com/technetwork/database/windows/downloads/index-101290.html
but which version exactly , this page is so confusing, for oracle 11 g, and visual studio 2008 which version will be perfect
and then where the dll will be there. after getting the setup, Is i need to install that setup?
one more confusion , where i have to install that odac , on my computer system . or on the server side system , I just need that dll file ,,
One more thing , Is there any error in my connection string ,,
my connection is as follows
"Persist Security Info=False; User ID= system; Initial Catalog=LabTrack;Server=Comp-34;Data Source=192.168.1.61\oracle11g;Password=abcd1234; DBA Privilege=normal;"
192.168.1.61 is ip addres of system, where my oracle 11 g is install ,
and comp-32 is my user name
labtrack is my db name
Is there any need of provider name ?
sumbody pls help me
i m getting problem in at from 3 days
If u can then contact me , on [email protected] , otherwise reply me here
thanks in advance
regards Nimish GoelThe file at the top of that link should work fine with Oracle 11g.
I would start trying to get the client to work outside of Visual Studio, first. That way you can localize your issues.
Once you get the Oracle client connected to the Oracle server, then uou can start working on Visual Studio.
As for where to install it, I'd say start with your computer. I'm not sure how you do your development, but that would probably be a good place to start.
You may want a different download for the web server as I assume you wouldn't need the special Visual Studio tools on it. But yes, it will need whichever Oracle provider you choose installed on it as well. -
Calling Stored Function from DOT NET
Hi,
I am trying to call a stored function "PKG_MIS_USER_MASTER.ADD_USER(userid varchar2, password varchar2) return NUMBER" from my DOT NET application.
Everything works fine within TOAD. Can anyone please help me in writing the C# code for calling a stored function along with its return value.
Thanks in Advance.You can (as of 15-JUL-2005) get chapter 5 and chapter 7 of my book from the ODP.NET homepage, which is located here:
http://www.oracle.com/technology/tech/windows/odpnet/index.html
The link is at the bottom of the page.
The direct link is:
http://www.oracle.com/technology/books/pdfs/dotnet_ch5_7.pdf
Chapter 5 covers using PL/SQL from .NET.
- Mark -
Can you call a SAP java Portal Service from the Dot Net code?
Is there a link to a document or snippet of code to call a customized Portal Service in a Dot Net code?
Hi Steve,
yes.,u can call a java portal service in .net.,the only thing what u need to do is to establish that portal service as web service and use that web service in ur code..
Regards,
Vinoth -
Crystal Reports 9 and Dot Net 2 SP2
We have a VB6 application that uses Crystal Reports 9 and makes a call to DB2. When we patched the Windows 2003 server it runs on to Dot Net 2 SP2, the call to DB2 would hang. If we removed the patch, the problem goes away. Microsoft said this is a Crystal issue not a dot net issue so they referred me to this site. Has anyone seen anything like this or have any suggestions as to how to get around this? Our Infrastructure Admins would like to get Dot Net 2 SP2 on ths server so I can't leave it unpatched indefintiely. Thanks
Hi Brian,
Moved your post to the Legacy SDK forum.
Which report engine are you using in your app?
Cr 9 is end of support long time ago so nothing we can do to fix this other than to upgrade to CR for .NET components. Or possibly CR XI R2 and the RDC if that is what you are using.
What error do you get?
Don -
Calling Dot Net program From oracle Database
Hi
is there any way to call DOT NET program Like C# from oracle database, i mean is there way to call it from pl-sql stored procedure or trigger ..etc
I read that is possible with java , C, C++, but is it possible with C#
Best RegardsIf your Oracle database is running on Windows and is a reasonably recent version (I believe 10.1 or later), it has the ability to create .Net stored procedures just like you have the ability to create Java stored procedures. That tends not to be a particularly commonly used feature but it's an option. If you compile your .Net application to a DLL, you could also call it as an external procedure.
More commonly, however, if you're talking about a .Net program that is deployed on a middle tier server, however, would be for the .Net application to expose an API (say, a web service API) that the database could invoke (via UTL_DBWS or UTL_HTTP).
Justin
Maybe you are looking for
-
HP Officejet Pro L7590 to be "AirPrint" enabled
How do i configure my HP Officejet Pro L7590 to be "AirPrint" enabled so my iPad will print to it? Using Windows XP on laptop
-
16 mo young Mac Pro will not turn on. Dead. Why. No problems ever! Installed Yosemite and did not boot up after. Did that kill it? To young to die. What happened?what do I do now??????? Help!
-
Need HELP regarding installinfg CR2008/Visual Advantage
I need help regarding installing CR2008/Visual Advantage. I had the evaluation copy of cr2008. My compnay purchased the CR2008 Visual Advantage. Upon calling your customer service, I was told that I had to UN-install the CR2008 evaluation copy then i
-
Get Sender Service Name during Mapping
Hi Guys! I would like to send the Sender Service Name to the Receiver System. Is it possible to get the Sender Service Name during Mapping ? thanks Julio
-
Creating postscript files for high res printing
I am having a lot of trouble between Adobe InDesign and Adobe Professional making a postscript file that I can send to a direct-to-plate rip. I can't get the halftone images to come out as halftones. All of the pictures come out solid. This NEVER hap