12-10-2006 09:47 PM
12-11-2006 09:01 AM
12-11-2006 09:45 AM
12-11-2006 03:30 PM
12-11-2006 08:09 PM
12-12-2006 01:55 AM
SP1 stands for "Service Pack 1". It's an update to the version you have. My guess is that you don't have that installed. In any case, I would suggest working with .net 2.0 and not 1.1.
And another "in any case", what I refered to (including the examples) has nothing to do with .net. It is simply calling an executable you built with command line switches. You just need to learn how to parse those switches.
12-12-2006 02:08 AM
12-12-2006 03:00 AM
It's an Application class property. When you drop a property node on the diagram (from the Application Control palette) it defaults to the Application class, so you should just be able to select that property, which outputs a 1D array of strings.
I suggest you search the example finder for "argument" to find the example I mentioned and see how to work with it.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
12-12-2006 10:51 AM
JQ,
Tst's solution would be a good one if you build your LabVIEW application into an EXE. If you need more flexibility, I'd recommend building your VI's into a DLL, exposing a series of C functions.
Calling this from .NET requires that the caller either use managed C++ or P/Invoke (C# and VB.NET). Managed C++ is the easiest, if you know C++. If you're using C# or VB.NET, then I'd recommend checking out the P/Invoke wiki and/or picking up Adam Nathan's excellent book on the subject of interop.
Because interop between .NET and non-.NET code can be tricky, I recommend sticking with simple and easy parameters for your DLL VI's. In fact, it's often a good idea to create VIs whose sole purpose is to be the interop layer - thus they can convert between a cluster and three primative types on the connector pane.
12-12-2006 08:46 PM
thanks tst for the example and tutorials... they were useful in helping me understand the basics better... i've also attended two seminars two months ago that taught the basics... currently i've completed the 1st part of the project which is to retrieve data from sensors, calculate and store them into SQL... now the next requirement is to use .NET to call LabVIEW and pass a parameter so that when the data is saved, the parameter passed from .NET is also saved to make the saving of data unique (the parameter passed is the source from .NET as many data may be the same and can be hard to search).. stucked at this point... haha...
and also, you are right about the framework problem i mentioned earlier... i've downloaded 1.1 and not 1.1 SP1
... thanks for pointing that out
...
thanks lycangeek... i think i'll use DLL rather than exe as the example recommended by lorielle above used DLL rather than exe... hope to figure it out somehow... researching and reading articles like mad now
...
off topic: how come i do not see people working LabVIEW with Java?? just wondering as I'm a Java based person... that is why I'm having so much problem with this .NET thing (and also, its the company's policy to use .NET
)... totally alien to it...