-
Posts
2,397 -
Joined
-
Last visited
-
Days Won
66
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by jgcode
-
Hi Guys LabVIEW 2010 Beta enrollment is now open. Signup here and help make the next version of LabVIEW even better! More info on announcement here. Cheers JG
-
Mysql 5.1 server and MyODBC5.1 Connection Problem
jgcode replied to pravin's topic in Database and File IO
Hi Pravin Attached is a protocols (how-to) document I wrote for my library on the subject, hope it helps. LabVIEW - Connect to mySQL.pdf -
Yes, yours was a much better solution - mine officially sucks I didn't even think down that path - just followed the steps!!
-
Very nice, but not what he asked for Maybe he has to log the hex string???
-
Why can't I have a Polymorphic Dynamic Dispatch VI?
jgcode replied to Shaun Hayward's topic in Object-Oriented Programming
I love to create APIs like this. And used to do it alot when I used MFVI/Action Engines for encapsulation. Now I would rather use LVOOP so I don't do as much. Anyways I wanted to add:- Don't forget that ":" in your Menu Name lets you create submenus which is really handy for creating a menu hierarchy for the developer to navigate. -
Hi MUSA Have a go at searching the palettes for the following functions in order to solve your problem. Cheers -JG
-
[Discuss] LVOOP Custom User Scripting
jgcode replied to jgcode's topic in Code Repository (Uncertified)
Hi Neil In order to refresh everything: Uninstall the package using VIPM. The package backs up the original hooks to the <vi.lib>\addons\_JGCODE Toolkits\lvoop custom user scripting folder under the NewAccessors Original sub-folder. Delete the above lvoop custom user scripting folder (if it exists). Copy the attached files to their respective locations in <LabVIEW>\resource\Framework\Providers\LVClassLibrary\NewAccessors . These are the original (empty) hooks that come with LabVIEW (ensure they are not read only). Everything should now be back to default. Ensuring you have the latest package Install the package using VIPM. Test an example class. Please let me know how you go. Cheers -JG NewAccessors Original.zip [LabVIEW 2009] -
Coercion dot on LabVIEW Object
jgcode replied to Francois Normandin's topic in Object-Oriented Programming
I have always wondered about this - cool. -
Gold! I love whats written on the whiteboards
-
Here is what I am trying to do - posted on the Dark Side...
-
Tom is talking about releasing some APIs for this really soon - I'm excited.
-
Hi Graeme I have posted example code here that you may want to look at to add files to a project etc... For your copying build spec question Cat tried to tackle it here. I had a really quick go to and kept corrupting the xml. I would be interested to know if you get it to go. Cheers -JG
-
[Discuss] LVOOP Custom User Scripting
jgcode replied to jgcode's topic in Code Repository (Uncertified)
Your welcome. You should NOT have to do any manual coping!! The package installed the required files. I tested it at home last night and work this morning and it seems ok Would you mind uninstalling/installing to confirm? Additionally are you able to post how you used the CLSUIP_LocalizedStrings.vi in your code? I wasn't able to use it as the global variable is accessesed scope as private? Cheers -JG -
Ah - ok. I have never down this before, so are you saying even if you get a type mismatch with the More Specific Class functions you could get access to other hidden private properties using type casting? If so that is cool.
-
[Discuss] LVOOP Custom User Scripting
jgcode replied to jgcode's topic in Code Repository (Uncertified)
Hi Neil I have made the fix to the package and uploaded it. Attached is my CLSUIP_LocalizedStrings.vi file if you want to look at it. CLSUIP_LocalizedStrings.vi [LabVIEW 9.0] -
Haha! I was playing around with yours too but couldn't get anything to go yet Thanks for working on this
-
Warning!! Brain will be shutting down over Christmas period...
-
Want to borrow my PC?
-
Sounds hardcore for what I want to do Hi Yair That is what I meant when I said Control Class - but I get a type mismatch error when I tried to convert the Text Class to a String Class (which makes sense). The problem is that I cannot get Text.Start-End Selection property to work either. With Controls I need to put them in Focus first then use the Start-End Selection property otherwise that property doesn't work. Am I doing this wrong for a BD label? Cheers -JG
-
[Discuss] LVOOP Custom User Scripting
jgcode replied to jgcode's topic in Code Repository (Uncertified)
Hi Neil Thanks for the feedback. I meant to take this VI out of the package as I did not want to distribute NI VIs when I want to submit it for certification. Therefore use the one under NewAccessors not mine (mine is getting installed in the wrong spot anyway!). I use the default VI form NI as the hooks automatically change the name to the get/set. Its a bug that it is still in there. I will do a fix tonight at home and load a new version with readme. Cheers JG -
Haha nope! No cheating here. Don't know if that makes a difference - I am running 9.0f2 with the update for IE. And if it helps, here are the exact steps I do: Start on Layers Tab with a Icon Template selected Double click the Select Tool to put a marquee around the icon preview Hit Ctrl + C for the copy shortcut Click in the User Layers control Hit Ctrl + V to paste The new layer will have the tag Clipboard It works if User Layers exist of there are no User Layers, with Icon Text or without. Let me know how you go. Cheers -JG
-
Thanks Yair, the Text Reference is the same for the BD and FP, it was the control property I was after, so I don't know if it is possible
-
[Cross-posted to NI] Howdy! Does anyone know of a scripting method to give focus to a free label decoration on the block diagram? I just want to programmatically have the cursor appear at the end of some text in a free label. We have the Key Focus property for a control, but is there something similar on the BD for text class object? Cheers -JG
-
Cheers The API only has "image data" as input. It must know what VI invoked it in order to read the tag data??
-
Certainly my good man. Attached is an example project that includes benchmarking for building an array: From the front From the back Preallocating memory first, then taking subset Using the OpenG array I get difference performance on single core vs dual core. Unfortunately this example includes keeping odd numbers I hope that is ok! 14 Build Array.zip [LabVIEW 2009]