-
Posts
1,991 -
Joined
-
Last visited
-
Days Won
38
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Ton Plomp
-
-
In LV 8.x you can right click on the scroll bar and select the visibility of the scroll bar!
Ton
-
Am I missing a much better idea? Any ideas appreciated on how to make it more user-friendly. LV8.0, attached.
I like love the program Spacemonger, which (IMHO) much better shows where data goes with something called treemaps:
Version 1.4 is freeware, 2.0 is shareware, but has some interesting options. It can create a Pie-chart based on data type. This gives me the option to group LV files (lvclass/llb/vi/lvproj/..) into one wedge.
[plug]
This program has proven me of great use. when my HD was filled with measurements
[/plug]
What do you wanna do with this piece of code?
Ton
PS Sorry I point you at a non-LV program
-
I have installed LV Real-Time on a desktop pc. I have had some trouble with hardware at first, using a standard HP pc. The solution was to build a pc from scratch.
I have installed two network adapters on this Real-Time pc. The problem is that I can communicate with only one of them (primary card). I am able to set IP-address and other settings to both cards, but if I try to ping the cards, I only get answer from the primary card. Does anyone have any info regarding this problem?
RT can handle only one card, the second card is for a deterministic timed network to have time sinchronized measurement (no tcp/ip it's NI proprietary)
Ton
-
when i run it,it showed err -1073807343
can you help me again.
Hi swings,
what is your code?
Ton
-
It looks like you have to reinstall 8.2 and then use File>Save for previous
Good luck,
Ton
-
The file is accepted into the Code Repository:
Any thought improvements over there!
Ton
-
File Name: Truncate Path Xcontrol
File Submitter: tcplomp
File Submitted: 8 Oct 2006
File Updated: 11 Oct 2006
File Category: XControls
This XControl is originated from this discussion.
It will truncate a path to fit inside a string:
Besides basic funtionality it has the following properties:
- Truncated string (Read only property that will return the truncated string)
- Button Visible (Read/Write, this property will show/hide the browse button)
- Browse properties (Read/Write, this property will set/get the browse options)
Methods:
- Truncate Path (this method uses the VIs to truncate a path to a string)
For the developer it has the following advantages:
- Set the browse options with a dialog similar to the native browse options dialog
- Browse for a path
- Show/Hide browse button
Known issues:
No drag and drop
Bounds of indicator/control include invisible browse button
Acknowledgements:
Uses code by Dave Thomson:Display Long Path.vi
- Truncated string (Read only property that will return the truncated string)
-
Ton,
Yeah, I should have tried your XControl first. I did download it now and tried it. Nice job!
One other limitation I should note: My VI only works well for single-line string indicators. It shouldn't be too hard to modify it for multi-line indicators. Anyone care to give it a whirl?
Regards,
Dave
Hi Dave,
I have modified your code, and expanded the xcontrol i posted earlier. This Xcontrol is submitted to the code repository and waiting on approval.
I have been thinking about multi-lineness, but am not sure how to implement it.
I can think of the following items:
original path:
c:\dataandstuf\somemorestuff\somedeepstuf\Reeldeepstuff\foo.stuf
Mullti-line 1
c:\dataandstu
f\so...\foo.stuf
Multi-line 2
c:\dataan...\
so...\foo.stuf
Summarized:
- Only truncate at the end
- Truncate every line
What do you think?
Ton
- Only truncate at the end
-
Exploring ShapesTest.vi in Shapes.lvproj
1- When probing Line.lvclass i get a picture control...where does it come from?
There is no Line.lvclass inside shapestest.vi only a linesegment and this one has a special probe! (see the properties of the lvclass
2- is it possible to probe the actual data on the input of Draw.vi in the for loop? If not is this planned in future versions? I only get a probe that tells me the actual datatype...Just like linesegment create a probe inside the polygon lvclass
Hope thiss helps (haven't checked it)
Ton
-
But the path indicator combined with the XControl idea brings up an interesting possibility. I'm not too familiar with XControls, so I'm not sure what all is possible. But how about an XControl version that displays the truncated path, but returns the entire original path to the data wire? Or could it even have two outputs (or two types of output that are somehow selectable), the truncated version and the entire original path?
Guess you didn't open the XControl?
Don't worry I almost finished the item, only I think in placing it in the Code Repository
Ton
-
Hi Firime,
If you are using a non-english OS, you should take the steps in this forum.
Ton
PS NI forums is better on this stuff
-
Hi David,
This VI will be very useful to me. I added the backslash and also added simple error in and error out terminals. Edited version is attached. --Syrus
Download File:post-3106-1160086183.vi Edit: Requires LV 8.2
Hi Syrus,
I took the liberty in converting your VI into an Xcontrol, but cannont upload right now. Hopefully tonight (CET) If anyone is interested they can PM me.
Ton
Edit:
Not tonight, but saturday
Thoughts for future:
remove the browse button if it is an indicator
Have right click control over browse options.
-
Thanks for clearifying.
Well I think it is theoretically possible (correct me if I'm wrong)
But what if you use a win32.dll call to close the window? I think this will trigger the event! (Win only offcourse and not pure G)
Ton
-
Hello All,
I'm working on a X-control containing a class. The facade VI-shows a picture, looks really great.
But...
I'm dynamically registring for events, so I can choose for each xcontrol I can register for certain events.
Now what happens is that IF a dynamic event is triggered the Display State (with the class) is reinitialized to it's default value, meaning my picture disappears.
Does anyone else have seen this (It also happens when I don't use dynamic registring....)
I'm resisting the urge to post code, since it's bad documented and quite complex (a class in an xcontrol)...
Ton
PS One question I should put my internal data off the xcontrol in the display state control right?
-
I finally have time to post a pic of the code, please look at it and tell me if you have any ideas, thanks in advance.
Hello Xchus,
the error you gave means that the data you want to read is no longer available.
Looking at you code it means that processing the data (save data through post process data) and the countddown VI take more than 2 minutes. Could you time the loop rate (tip:
)
If you want to measure only every two minutes, you could skip the countdown (I think this will generate the wait time) and set the timeout of the read DaqMX to 150 or so. Also set the #samples on the DaqMx timing VI to 2400 so it can keep 4 minutes of data
Ton
-
Terrible scenario, Ton. You've got to be able to work off-line.
I'm using Subversion for SCC, but I DO NOT tie it into the LabVIEW SCC funtion. I do all of the Subversion check-in/check-out outside of LabVIEW with the TortioseSVN API. I'm sure VSS can work the same.
-James
Yes it can, but I like the fact that LabView does. The less programs I use the better.
I only turn on VSS when I make a new release (share and branch), import a library into a project (same share and branch)
But I found a workaround, disable SCC. Restart the PC and then load the items.
Could you be so kind to endanger your setup and check if the same error happens with subversion/turioseSVN
Ton
-
Hi Ton,
I'll be there... I will be talking about XControls..
So I guess I'll probably see you then.. :-)
Jup,
I'll do the xControls, Aart-Jan will do the LVOOP
Ton
-
Hello All (esp. the dutch),
who of you are attending the user group meeting next week in Eindhoven?
I know Albert Geven will give a presentation about code reuse and the other topics look great. My colleague and I have already split the agenda between the two of us.
Ton
-
<REPOST alert!>
I've asked these questions on the NI forums: Question 1 Question 2
</Repost alert>
The scenario is:
I'm using LV 8.2 with most of the code inside Microsoft Visual SourceSafe where the database is located on the network.
This works OK (sometimes LV doesn't update the representation in the project explorer)
But now when I take my laptop off-line and want to open a VI/project LV wants to connect to the SCC-database, this gives an error -2976, but another window (search for vi) is blocking my error window.
So I can't click the 'continue' button. But if I click the 'Stop...' button nothing happens
This means that I can't work at home...
Can somebody reproduce this? A) with VSS B) with another source control system
In LV 8.0 I just got error -2976 for every VI but after a dozens clicks I could work.
Now question 2 is a minor inconvenience. The 'Getting started' window is modal! Why, what if i open the 'getting started' from within a project or VI. In this case I can't go back to the VI/Project without closing the getting started window... :headbang:
Any thoughts?
Ton
-
It is also exposed in the .lvproj file....
<Property Name="SourceItem[0].PasswordToApply" Type="Str">Secret</Property>
Ton
-
The problem now is that the subvi filename.vi starts without any of the variables waiting outside.
Hello Phillip,
If you use execution highlighitn on that section (set a breakpoint on the '16' constant) you would see what happens.
The output of the for loop only uses the values from the last iteration, in this case nothing! So the VI waits on termination of the for loop but starts with empty inputs! (See: the knowledge base)
To have such a setup I recoment a cluster with all the information, with a shift register you can update the contents of the cluster and feed this one to you filename.vi
For instance:
Ton
-
I have a project that utilizes a common codebase.
I want to use the export distribution to make a new copy in a differnt location of the relevant files in the project, but still use the common codebase that doesn't move on the hard drive.
The problem is that if I don't include these common VIs within the distribution, it looks for them in the wrong location after the export has taken place due to relative path linking.
Has anyone used this feature enough to understand how to accomplish what I'm trying.
-Norm
DETAILS: I'm looking to take the VIs within the project and use them as a baseline. So the export will allow the baseline to remain intact, but create a new copy for the person to build off of in a new location
Correct me if I'm wrong but you want to do this:
Copy a set of code
This code has some subcode that is fixed in one location (similar to user.lib, why not use these. You can even move user.lib)
You do not want to load this subcode via the search path
I see really only one option, refer to these subcode via a dynamic path, this VI holds all the sub-vi's in the fixed path.
What cross-links are you expecting when using the search path?
Ton
-
thanks, for the tip! unluckily it did not work.
the error 1004 (the VI is not in memory) occurs at the node "App.MenuLaunchVI" in the VI "Get Menu Launch VI Ref". Has anyone an idea, why or how to get the reference to the Menu Launch VI? Obviously there has to be a way (how else could NI start actions from the tools menu on selected VIs ...), but it seems to become difficult to find out how ...
thx,
CB
If I understand correctly you have missed one wire:
In case 3 where you open the VI-reference you have to tell in which application instance this happens. Your VI (Get Menu Launch VI....) runs in the application main instance, the calling VI runs in a project instance..
And i think that the App.MenuLaunchVI property should be controlled by the local (main instance) application instance, or you should read this name outside the while loop. Because the user app instance has no ManuLaunchVI info.
Ton
Ton
-
Note If you import an image by copying and pasting it, the image loses any transparency.
I have not seen this (well actually I have seen transparency after a copy/paste action) In that case I had a .wmf file opened in MS Word, edited the tranparency and then copy/paste this kept the tranparency in the button.
Ton
Function Pallete Disappears for Edit
in Development Environment (IDE)
Posted
I have seen the same, but am not sure what i did to fix this. Best was to have nothing open but LV, and minimize the LV windows afte selectin edit palettes. It looked like the palettes where hidden behind VI windows... :headbang:
Ton