February 2007

Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28      
Blog powered by Typepad

« Those crazy Mac guys | Main | Microsoft Vista Delayed »

Comments

Adnan

Exactly what i need for shrinking size of my block diagram with .NET nodes. Thank you Brian!
PS: can you publish the source code of LabVIEW.Interop.dll assembly? It would be interesting to see how does it work.

Brian Tyler

Actually the code is generated automatically by the tool I mentioned for ActiveX (tlbimp.exe) - so the source code is actually .NET assembly (aka IL). In addition, COM interop in .NET is done mostly by the runtime engine as you execute, so even the IL doesn't show much.

Liao Yunya

hi,
i have a question ask u for your help,that is how can i call labview in my java application? someone suggeste that i should use the JNI technology to do this,but i donn't know how to do it in details!could you give me some advices about this or give me some related resources to solve the problem,thanks very much!

Brian Tyler

Ah, the wonderful world of Java. Don't get me wrong, I actually like Java - spent several years writing code in it, but it has a serious flaw in that accessing anything other than Java from it is a major pain. I often found writing kernel drivers easier than working with JNI *laugh*

But, back to your point. JNI would definately be one way, especially if you compile your VIs into a shared library. If you're on Windows, you can also access LabVIEW's ActiveX server interface via JNI.

However, if you're going to go with the ActiveX server interface, then I'd recommend using Jacob (http://sourceforge.net/projects/jacob-project/) instead of JNI - it's much easier. I haven't used Jacob in several years, but it was a bit unstable when I used it. It seems to still have active development, so I'm sure it's gotten better.

So you'll need to look at what you need. The fastest way to call is via JNI to a LabVIEW built DLL. The easier way (but slower execution) is Jacob to the ActiveX server.

Jarrod Slocum

This is quite likely the coolest thing since swiss cheese, which is pretty cool. I'd be interested to make the UI a little nicer, perhaps turning the whole code-writing part into an XControl. Rather than using a string control we could use a .NET rich textbox editor and use things like the tabs (imagine that :) ). Then we could effect things like intellisense using Reflection properties for the various objects we input (like myList). I've done that before for a regular string control. I'm still not 100% sure on the details of how to get information about objects in edit-mode that are only instantiated during run-time, but it would be cool! Maybe I'm missing the point of this saving time and all, but oh well...

Brian Tyler

Yes, there're a lot of things we could do to enhance this up, but as always it's finding the time.

If anyone out there does add some features to this example, please email me - I'd love to post an update back to the blog.

bm

Do you know if it is possible to use Python to write a DLL which could then be used within LabVIEW?

Brian Tyler

Well, I'm not much of a python expert, so I'd recommend checking out some Python groups. However, Python is traditionally left in script form and interpreted. If you were to compile it, you'd typically just compile the script into the DLL as a string.

IronPython is a different story, being a .NET language, but there are limitations there as well. I'd recommend starting at

http://www.gotdotnet.com/Workspaces/Workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742

vitallis

To use .NET Framework in JNI you should not make COM module and bridge them with tools like Jacob, J-integra, etc. This is the most curious approach. Use REGULAR JNI for .NET. See
http://codeproject.com/dotnet/JavaDOTNETIntegrate.asp
and
http://www.simtel.net/product.php[id]95126[sekid]0[SiteID]simtel.net

Brian Tyler

Wow - thanks for those links. I haven't looked at the JNI projects in some time so I've not seen these before. However, they definately deserve a look.

Mark Lumsden

Thanks for the information - it's very useful.

I've been linking LabVIEW and Python for some time now using ActiveX which works quite well. There are some advantages to using this IronPython implementation but there is one thing I'd need to be able to do:

How can you use the VI 'Call' method to call a subVI from Python. This differs from 'Run' in that you need to pass the input information to the subVI. The complication here is the inputs for this method are pointers to arrays of variants and I don't know how to form these objects in Python.

Have you ever tried the 'Call' method from Python? If I could make this work, I may switch to using IronPython.

Brian Tyler

I've not tried it myself, but here is what I would recommend - use the Tlbimp.exe from the .NET SDK to create a .NET interop assembly from the LabVIEW.tlb file (you'll find it in /resource directory).

Now the same calls take arrays of .NET objects. I'd assume that IronPython can handle that automatically since it can call the .NET framework.

Let me know if that works for you.

Idetrorce

very interesting, but I don't agree with you
Idetrorce

acdrtvepn gfadq

dzrwtanl tlvzuigh hekj xgzan qexmkjf sgfcbe qihyvbnkf

Avinash Siravuru

Hi,I am Avinash from India.We are developing a machine vision application for speed measurement on roads using the existing tools in NI Vision Assistant 8.6.We have been fairly successful in achieving our targets and we now wish to make an executable file out of the code.
We have an Intel Atom Development Board at our disposal and we wish to deploy it on the same and make an embedded device.
We made an installer app out of a sample code and upon testing it on a remote system( without LabView) it failed as we had suspected.
Kindly advice us on how we may proceed from here on.
Looking forward to your reply
Regards,,

Carson

Thanks! One of my favorite rapidshare SE ( http://www.filecatch.com/trends/nl/29-07-2010.html ), with its help it's possible to find almost everything.

coach outlet

Are you felt that it is right? I do not really think that, but can keep personal opinions!

new jordans

The blog article very surprised to me! Your writing is good. In this I learned a lot! Thank you!

Supra skytop

maybe it could be easy or difficult..

worldpillehd

walmart holiday pharmacy http://valium.posterous.com/buy-diazepam-online#167 - where van i buy diazepam online investment for medicine by gujarat government
online pharmacy directory http://valium.posterous.com/buy-diazepam-online-uk#457 - buy diazepam online uk valium anitque medicine eye cup
meridian adult medicine http://valium.posterous.com/buy-diazepam-without-prescription#607 - link disney pharmacy discount fl
medicine hat pottery classes http://valium.posterous.com/buy-valium#956 - buy valium online vancouver target pharmacy batavia il
mercy plaza pharmacy ca http://valium.posterous.com/buy-valium-cheap#336 - buy valium online with mastercard cheap the annals of internal medicine
midland pharmacies west des moines http://valium.posterous.com/buy-valium-from-india#749 - buy diazepam from india valium migraine medicine makes my headache worse
travel medicine online degree http://valium.posterous.com/buy-valium-no-prescription#210 - link appetite suppressant in house pharmacy
uva behavioral medicine center http://valium.posterous.com/buy-valium-online#693 - buy valium online legally us pharmacy skin cream barbados
mexican pharmacy vicodin http://valium.posterous.com/buy-valium-online-cheap#273 - buy valium cheap online pharmacy pediatric diabetes pharmacy
medicines australia http://valium.posterous.com/buy-valium-online-without-prescription#673 - buy valium online without prescription boutique of leathers medicine hat
ralphs pharmacy la jolla franklin street pharmacy
hampden pharmacy medicines that raise hdl cholesterol
sports medicine lanaster county pharmacy in thousand oaks california
mayan medicines wellbutrin pharmacies
unr sports medicine prescriptions online pharmacy
homeopathic medicine for obesity aetna mail order pharmacy
ultrasound used in medicine hcg pharmacy
digital imaging and communication in medicine bitter at pharmacy
sobal family medicine medicines for swelling
15 inch medicine cabinet mouth ulcer medicine

air yeezy

If we want light, we must conquer darkness!

vkindtirows

health mart pharmacy http://www.myspace.com/zithromax-online/blog/543481829#107 - zithromax susp drug traditional chinese medicine for healing ligaments
lisinopril pharmacy http://www.myspace.com/zithromax-online/blog/543481835#265 - zithromax suspension product information hills broadway pharmacy nz
recessed medicine cabinet nickle http://www.myspace.com/zithromax-online/blog/543481841#907 - zithromax pneumonia treatment american college of advanced medicine
university of arkansas college of pharmacy http://www.myspace.com/zithromax-online/blog/543481850#936 - zithromax tri pack nomi mountain medicine
pharmacy careers in home health care http://www.myspace.com/zithromax-online/blog/543481857#096 - zithromax tripack dosing world tree natural medicine
oxycontin us pharmacies http://www.myspace.com/zithromax-online/blog/543481868#339 - link ambien online pharmacy buy ambien
u s medicine http://www.myspace.com/zithromax-online/blog/543481881#099 - zithromax cost usa pharmco pharmacy
medicine hat tattoo http://www.myspace.com/zithromax-online/blog/543481888#455 - zithromax tongue uses pharmacy tech study book
sports medicine minnesota http://www.myspace.com/zithromax-online/blog/543481898#757 - zithromax for uti royal society of medicine
pharmacy tech school tx http://www.myspace.com/zithromax-online/blog/543481909#856 - zithromax without a perscription galaxy theaters in medicine hat
add adhd medicine listed happy trails rv medicine hat
volunteers in medicine bluffton sc internal coastal medicine
phytopharmica natural medicines medicine nausea
sleep medicine audio christian women medicine dentistry
medicine biomarkers fluorous ho istic medicine fletcher n c
certified pharmacy technician medication errors kumpulan medicine kerana cinta
kohlermann pharmacy malvern pa buy online order viagra reliable drugstore
bone shaped worm medicine what does tid mean in medicine
rejuvenator medicine virginia doctors of veterinary medicine
cbo on preventive medicine pharmacy mexican

qkindfsrows

elizabethan england medicine http://mox.grouply.com/message/47#546 - veterinary amoxicillin dosage salary of an internal medicine doctor
medicine problem 600 http://mox.grouply.com/message/48#949 - link seymour pharmacy
journal of family medicine http://mox.grouply.com/message/49#351 - link pk drugstore
indiana state board of pharmacy http://mox.grouply.com/message/50#159 - yogurt and amoxicillin is pharmacy school hard
veterinary medicine exotic reptiles http://www.thoughts.com/trimox/500-mg-amoxicillin#998 - 500 mg amoxicillin capsules prescription medicine acid reflux
medicine for weight lost i portugal http://www.thoughts.com/trimox/allergic-reactions-to-amoxicillin#103 - allergic reactions to amoxicillin in adults when thyroid medicine is not working
pegasus medicine cabinet 24 x 30 http://www.thoughts.com/trimox/amoxicillin-500mg-cap#407 - amoxicillin 500mg cap infections chapel hill internal medicine nc
animal pharmacies in arizona http://www.thoughts.com/trimox/amoxicillin-and-breast-feeding#891 - link zodiac pet medicines
dog safe medicine http://www.thoughts.com/trimox/amoxicillin-alternatives#229 - amoxicillin alternatives sexual medicine research
prescribed medicine versus natural supplements http://www.thoughts.com/trimox/amoxicillin-and-ear-infections#180 - amoxicillin and ear infections medicines for laringitis
name brand narcotic cought medicine urinate medicine help
medicaid pharmacy list florida person street pharmacy raleigh
safeway pharmacy careers mermaid medicine
academy of pharmacy phobic anesthesia medicine phobic
phentermine pharmacy prices free access online no prescription pharmacy
redeye medicine hokkaido university school of medicine
american pharm partners questions pharmacy school interview
eldercare pharmacy herbal medicine plant
infant cough medicine medicine what is tcu
plano pharmacy tech pharmacy services manual

bkindbdrows

pain medicine dog http://ymlp.com/z1eDkT#913 - choline acetyltransferase alzheimer\\\'s montana pharmacy license renewal
state board of pharmacy oregon http://ymlp.com/zzSAXe#387 - choline bitartrate benefits depression salaries on pharmacy tech
tri city medicine http://ymlp.com/zfiiBG#557 - what is choline inositol ocd american association sleep medicine
medieval medicines http://ymlp.com/zMZXms#795 - choline supplements pregnancy rats sam alexander pharmacy harrison ar
ask the pharmacy board http://ymlp.com/zqal9L#963 - choline inositol benefits side effects desai pharmacy
medicine and osteopathy http://ymlp.com/z3MQ53#270 - cipla modapro modalert 200mg pharmacy enzymes
cold medicines and teen abuse http://ymlp.com/zhG0L0#359 - link 13 inch medicine cabinets
continuing education arkanasas pharmacy http://ymlp.com/zuJKsO#166 - citicoline drug study citicholine medicine anti-inflamatory
rite aide pharmacies http://ymlp.com/zBub2Q#504 - citicholine sodium arroyo grande alternative medicine healthcare
medicine hat alternative schools http://ymlp.com/zJhz7v#672 - link alternative department florida health medicine
hormone compounding pharmacy spokane cvs pharmacy prescription coupon gift card
internal medicine billing semiars doctor quinn medicine woman episodes
small prehistoric stone medicine millstone medicine sarch
maternal fetal medicine evms china beijing herbal medicine advice
dorfner family medicine tyndall air force base pharmacy
simvastatin lupin pharm the best medicine for thyroids
mariposa medicine hat medicine circuit in establishment of health
malleys pharmacy pharmacy bottles antiques
plan b and pharmacies medicine for stiff knees
baker universal pharmacy scale error 8 sports medicine chattanooga tn

maryovcr

indian pharmacy tramadol http://dailybooth.com/cialisnoprescription/18758912#526 - best price cialis 20mg online medicine men dayton ohio
whaley's pharmacy http://dailybooth.com/cialisnoprescription/18758939#425 - compare prices on cialis coconut in traditional medicine
entertainment alternative medicine entrepreneur re http://dailybooth.com/cialisnoprescription/18758956#661 - buy cheapest cialis medicine abroad london
masters of medicine eastern virginia http://dailybooth.com/cialisnoprescription/18758982#806 - cialis tadalafil php pill online pharmacy degree adamsville rhode island
online pharmacy degree allakaket alaska http://dailybooth.com/cialisnoprescription/18759005#731 - link online schools alternative medicine
toronto pharmacy http://dailybooth.com/cialisnoprescription/18759026#451 - cialis work for women prescription medicine id
cut-rate medicine chattanooga http://dailybooth.com/cialisnoprescription/18759053#953 - ptnrs searchfor cialis hyperbaric medicine allentown
mini pharmacy http://dailybooth.com/cialisnoprescription/18759076#000 - link alternative animal medicine
byron family medicine http://dailybooth.com/cialisnoprescription/18759098#777 - link vinegar medicine bottles for crafts
olive oil ancient greece medicine http://dailybooth.com/cialisnoprescription/18759121#734 - link best medicine for bipolar depression
universal healthcare and socialized medicine most abused drugstore medication
alternative medicines migraine headache eckard pharmacy murfreesboro tn
chinese medicine wandering wind evil trivia and medicine
ridgeview sports medicine waconia good online pharmacy
family medicine board review medstudy pharmacys in the plainfield illinois area
michigan state pharmacy medicine throughtout history
nevada pharmacy law memorial hermann sports medicine institute
centrifuge and medicine safe administration of medicines
ezekiel's medicine project on alternative medicine
chinese herbal medicine benifits history of roman medicine

The comments to this entry are closed.