-
Posts
835 -
Joined
-
Last visited
-
Days Won
49
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by MikaelH
-
-
QUOTE(orko @ Aug 23 2007, 07:19 AM)
... clicking the item(s) and dragging over the edge of the scroll list, then hovering while the list scrolls.I guess you're using 82(1)
But it's better than my 8.5 version, because now the project tree list won't scroll when you get to thew edge with your dragged item.
It worked perfectly in 821, anybody else got this problem?
But maybe you sould upgrade to 85, since you can connect a folder to a physical disk-folder so it auto updates all it content.
My top 8 list of new features in LabVIEW 8.5
- <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">When double clicking on a SubVI on the block diagram that is a dynamic dispatch VI, you can select which implementation VI to open. <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Auto-populating folders (and that it doesn't add hidden folders like .svn) <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">To see the path of the VI in the project tree. <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Possibility to set scoop on item in project tree by right clicking on the item. <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">And of cause recursion!!! <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Conditional stop terminal in for loops <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Finding callers on SubVI by right click on item in project tree.
-
Mass compile project by right clicking on the Project node in the project tree.
//Mikael
- <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">When double clicking on a SubVI on the block diagram that is a dynamic dispatch VI, you can select which implementation VI to open. <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Auto-populating folders (and that it doesn't add hidden folders like .svn) <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">To see the path of the VI in the project tree. <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Possibility to set scoop on item in project tree by right clicking on the item. <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">And of cause recursion!!! <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Conditional stop terminal in for loops <LI class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt">Finding callers on SubVI by right click on item in project tree.
-
The cell is blocked for user input, so it won't update.
But you can get it to work by changing the Mouse Up event to "Mouse Down?", and set the "Discard?" option to true or false depending on your application.
But to be sure that your Cell update is executed before the "User input block", you should update the cell in the "Mouse Down?" event case.
//Mikael
-
Colleagues of mine have had just the problem; the Java Application was controlling a telecom base station.
The solution was to send XML-typed data through TCP/IP.
//Mikael
-
If you try running it from another application instance, it will be even more "locked".
Especially if you open en reference to a class from several Application instances, it gets locked.
I have had lots of problems with this for the Project Tree Addon tool (GOOP Development Suite) I'm working on, since that code is running in a
"NI.LV.MxLvProvider" application instance.
Also you can get LabVIEW to crash when messing with too many open application instances ;-)
//Mikael
-
QUOTE(Aristos Queue @ Aug 19 2007, 04:17 PM)
But of cause you shouldn't use Equal, when comparing floating point numbers.
Use something like this instead:
http://forums.lavag.org/index.php?act=attach&type=post&id=6696''>http://forums.lavag.org/index.php?act=attach&type=post&id=6696'>http://forums.lavag.org/index.php?act=attach&type=post&id=6696
//Mikael
-
QUOTE(Jim Kring @ Aug 21 2007, 11:23 AM)
I've just tried it in 8.5 and it doesn't work their either.
I guess you can't set it on a running VI
//Mikael
-
QUOTE(Ale914 @ Aug 21 2007, 06:13 AM)
I'm studying as XP ( an agile method ) can be applied in LabVIEW development but right now there are some "gray zone".Since the main goal for extreme programming is to reduce the cost of change, I find that a proper OO-analysis and OO-design solves that problem.
I've been using GOOP with inheritance since 2001 and I always start with a UML class diagram to visualize my needed classes and their dependencies to make sure changes are easy to add later on.
Below is a class diagram describing parts on my current project.
http://forums.lavag.org/index.php?act=attach&type=post&id=6692
//Mikael
-
I'm, guessing you have to place the check in the timeout case, and poll the window bounds.
VI:Frontpanel.WinBounds
If you want to know as soon as the mouse is clicked on the title bar, you have to use the InputDevices.llb\ Mouse VIs.
These will get you the current mouse postion and button states and then compare them to you VI window positon.
//Mikael
-
Your right, I'm always thinking in reference based objects
In java it look like like: SubClass MyClonedObject= (SubClass ) super.clone();
Also I prefer protected attributes, when will that be available ;-)
http://forums.lavag.org/index.php?act=attach&type=post&id=6666
//Mikael
-
A normal POST is done like this:
http://forums.lavag.org/index.php?act=attach&type=post&id=6665
POST /cgi-bin/somefile.pl HTTP/1.0
Host: ni.com
From: me@ni.com
User-Agent: HTTPTool/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: %d
<MESSAGE HERE>
//Mikael
-
I can really recommend it.
With one large project with plenty of classes I hade one problems at all.
But with another project I had to do some changes due to Invoke node interface changes. The Invoke node was "App:LVClass.Create" and the Invoke node ProjectItem:AddItem don’t allow an unnamed LVClass type.
//Mikael
-
Thanks Stephen.
Yes that will work and solves my Clone use case, but you're not actually converting the ParentClass Data wire to a Child data wire.
But maybe this is not needed, but it could look like this.
http://forums.lavag.org/index.php?act=attach&type=post&id=6662
Here is also another clone project:
http://forums.lavag.org/index.php?act=attach&type=post&id=6663
Thanks
//Mikael
-
When you talk about casting to more specific, I like to add a wish of Type Cast for LV objects.
Maybe this is impossible for LabVIEW to support due to its OO design, but what I'm after is to convert an object of one type to another sub class type.
E.g. First create a Graphic object and then Convert it to a Line Object.
Like this:
Line MyNewLine = (Line) MyGraphicObject
Why would I like this?
I use this method right now (using the Endevo GOOP Inheritance toolkit) when cloning an object.
In this example I would like to do this:
Class ClassNode{ … Public Clone() { ClassNode MyClonedObject= (ClassNode) super.clone(); … return MyClonedObject; } …
http://forums.lavag.org/index.php?act=attach&type=post&id=6657
//Mikael
-
Hi
I've updated the examples to show you have to create a dialog box with shadow effects.
I'm using a transparent png background picture created with GIMP.
http://forums.lavag.org/index.php?act=attach&type=post&id=6621
(LabVIEW 8.2.1)
//Mikael
-
QUOTE(Ben @ Aug 14 2007, 07:11 AM)
I was reading the on one of those USB-cDAQ devices and it said it could only support one active task at a time.I had the same problem using a USB-cDAQ.
I wanted the design (lots of analog and digital sensors), to be independent from each other i.e. one object per sensor.
But due to the limitations of the USB-cDAQ drivers, I created a Singleton, Daq reader object.
That all the sensor objects requested information from.
When the sensor objects requested data they could get the last value, or force to wait for a new updated value.
They could also request an average value from the last x samples.
This could be done since the Daq reader object, stored the last acquired values in a circular buffer.
This design requires that the Daq reader object, knows the fastest sampling time, so each object (when they were created) told the Daq reader object it's fastest sampling time.
//Mikael
-
That's why I drag these types from the windows explorer window instead, then it works.
//Mikael
-
I guess you have to modify the registry (somewhere), before opening the dialog :-(
You might try .net calls instead.
http://www.vi-lib.com/user.lib/OpenFileDialogBox.html
Maybe there is a way to solve it that way.
//Mikael
-
George
I've seen timed loops in some cases just stop for a while and then get going after a while.
(that's why I try to avoid them ;-)
I don't know if this could be your case.
But you could try to use the old fashion while-loop, and measure the loop time for every loop
and see how long time every loop take.
Mikael
-
I have had the same problem when building executables.
NI knows about my issues and have fixed these bugs for the next version of LabVIEW that they are working on.
But the work around I had to use was to include the block diagram in the executable.
You do that by enable the "debug" option when you create the executable.
Did this solve your build problems?
//Mikael
-
Hi
I'm working an the feature to drag project items from the project explorer window into a running VI.
I've got it working in the VI attached but it might be better ways.
Do you have any ideas?
http://forums.lavag.org/index.php?act=attach&type=post&id=6475
I'm lookin into adding this feature in the UML modeller I'm working on.
It will be demonstrated at NI week during Jan Klassons presentation:
"Graphical Systems Modeling Using the Unified Modeling Language"
This tool will be shipped with next version of GDS (GOOP Development Suite),
and the community/professional edition will be released a couple of weeks after NI-week.
Cheers,
Mikael
-
If you use the Tick Count (ms) instead you get a better result
http://forums.lavag.org/index.php?act=attach&type=post&id=6473
//Mikael
-
Hi Chris and Jim
Ofcasue you can get that information...
But it's a bit messy ;-)
Here's the code:
http://forums.lavag.org/index.php?act=attach&type=post&id=6468
http://forums.lavag.org/index.php?act=attach&type=post&id=6469
Cheers,
Mikael
-
That's a "funny" bug.
I almost always enter the values direct from the front panel by pressing shift-enter after you entered a value,
that will go to the next element right away without having to right click and select "Add item after".
//Mikael
-
QUOTE(lelluzo @ Jul 26 2007, 07:27 AM)
I need to save multiple file from a site. Every file have to be dowloaded anda saved in a folder.I try Activex or .vi found in the net but them can save only text or html.
For me is good to dowload the raw file of pdf and in second time with Reader i will open it.
Just use the DataSocker Read, and save the file.
http://forums.lavag.org/index.php?act=attach&type=post&id=6458
Also see:
http://forums.lavag.org/index.php?showtopic=100
//Mikael
Bad type cast error when going to more specific class
in Object-Oriented Programming
Posted
You have to start by creating the child object (analyzeSpec), but you can then of cause use it as it was a normal listSpec object, but now you have the option to use the childs methods as well.
To be able to convert it from a base to a child in runtime is not allowed, maybe it will be some day.
See Wish List , Post 8-
//Mikael