-
Posts
1,991 -
Joined
-
Last visited
-
Days Won
38
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Ton Plomp
-
-
Well a VI does not know if it belongs to a project (it might even belong to several projects, which is bad), so I guess the best you can do is the following:
This will look in the folder of the VI for a project file, if one match is found that is returned, otherwise it will look to the folder above the VI project, untill the root of the filesystem is found.
If more than one file is found you need an algorithm to find the best match. One option would be the Levenshtein distance
Ton
-
I am trying to determine whether a class will override a specific method before running the override.
I am coming up with the following code:
Is this the preferred method?
An alternative (probably faster) would be:
Ton
-
Here's the error description as stored in LabVIEW (help->Explain Error..):
Error -1073807246 occurred at an unidentified locationPossible reason(s):VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.Where are the errors comming from? I suppose from the 'Open VISA resource'.
Is this running on the same computer as the Development enivronment?
You might need to wait a little bit before calling the VISA open function. Try to add a wait of 10 seconds before the open VISA session.
Ton
-
I don't think I have ever used 'Kill LabVIEW' in any executable the last 5 years. Why did you have to resort to it?
Ton
-
And that was a notification?
A a notifier is probably an english invention. They seem to form a queue just by themselves.
Ton
-
I assume that the panel color 0x01000037 is not sufficient?
Ton
- 1
-
- Popular Post
- Popular Post
You have to disassemble the Variant. One option would be a Variant Tree indicator.
To get the actual values you can use the OpenG Variant Data tools:
Ton
- 3
-
You can resize the XControl by controlling it's bounds. Do not use the Facade VI ref, but the container ref availalbe in the facade VI:
Ton
- 1
-
Very strange, have you moved VIs around without using the Project explorer?
I have not seen this issue.
Ton
-
I love that we are in 2013 now, makes it easier to spot the year digits.
And definitely use 8601 compliant timestamps.
Ton
-
I did do this to make life a little easier. I create the polymorphic instances programatically, but not the polymorphic VI itself. I come to hate the polymorphic VI editor more and more with usability issues that make it slow to work with.
Ton
-
One method to test this is using the .net object in LabVIEW. You might even be capable to debug the .net dll.
Ton
-
There are several options, the easiest is serving up a folder as a webpage (this can be done with Apache) and storing the images in that folder.
Ton
PS This does not belong on the Real Time but on the Internet/remote monitoring forum.
-
The active tab-page is the value of the tab-control, so you can use the 'Value' property.
Ton
-
I think this is in general a no-no. What you want is a popup to open. And most modern browsers include a per-default activated pop-up blocker.
Perhaps you can overload the html page containing your embedded dialog with some ajax code?
Ton
-
I have the following global HG workbench file (Mercurial itself doesn't support a global hgignore):
.ogp$/built*$/build*$.lvlps$.aliases$.viobj.vip$.zip$Based on this Which files to ignore using SCC, and the LabVIEW Wiki and my strong belief that build products do not belong in an SCC.Ton- 1
-
Raviramesh,
could you post the code that's eating the CPU so we won't make the same mistake?
Ton
-
-
I created a package that allows you to create Markdown syntax files using LabVIEW.
Code, Download, Bugs/Features, announcement.
Ton
- 1
-
If you like Markdown, I have created a library to use the LabVIEW report toolkit.
See at Bitbucket
Ton
- 2
-
If you have child classes you can use a class property node to access data inside the parent object (not the owner object).
Ton
-
Well you can get the source of the LabVIEW Icon editor, so you can get the text, and write the output to the icon.
I have never opened the code from the editor, but I assume the text is saved as a tag in the VI's meta-data. However this is not a standard, if you for instance use the Endevo Goop toolkit ( by MikaelH), you are not compatible with the standard NI data.
Ton
-
If I have an application that has lengthy processes (>10 seconds), or when it's unlikely that I regurarly (agian at least every 10 seconds) hit the main event loop, then I have a dedicated 'Terminate' event loop, that's monitoring both the Application:Close? and Panel:Close? events and will signal an abort to these lengthy processes to stop prematurely.
Ton
-
The Application Instance Close? event doesn't work. If you can attach an example that works, that would be nice, but my tests show it not working.
Michael,
could you explain 'Does not work'. What do you expect from this event?
It should get triggered when Windows wants to close an application (I get this event when I shut down my computer).
Since you Discard the event your application is ignoring this event, and you should close your app yourself.
Ton
Best way to determine whether a class will override method
in Object-Oriented Programming
Posted
No it's not about scripting.
I want to create a plugin class hierarchy and have a generic config GUI. If a class overrides a specific method I will enable a button that allows to open a class specific config GUI.
I don't think I make the assumption of the path relationship between the method and the class.
Ton