-
Posts
1,991 -
Joined
-
Last visited
-
Days Won
38
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Ton Plomp
-
-
Just a status update (or what have you done in the holidays?)
I can generate the first generation properties (read and write) (so just visible, label.text and othere subclasses not yet, though they are not that difficult)
I can add them (in some way) into the XControl, allthough I have mayor issues with the state typedef. My vit uses another one than the xcontrol and won't accept the new one....
I cannot generate the Methods (haven't looked int it)
Hopefully this friday I'll have it sorted out about the property creation into the XControl...
Ton
-
Here's a link to the LAVA New Year's eve skypecast.
https://skypecasts.skype.com/skypecasts/sky...e390418a378528c
Darn too late
Well here it is:
Happy New Year!!!
Let the wires rule 2k7
Ton
-
Strange,
Now it is gone, but mine worked earlier (no-one around).
Just to get the idea, is this some sort of group-meeting possibility? Where you can discuss live about some topic?
It would be nice if a skypecast shows up in your skype program...
EDIT: OK skype 3.0 has a live tab
Maybe something to plan? I only have skype at home so between 8 and 10 CET would be best..
Ton
-
- What about the inherited properties like 'Scales', 'Text' and 'Numeric'? I think we need them
Does anyone know how to detect the type of the inherited item?
If I use a propertyitem label on a string control I get a label-reference, I haven't succeeded in determing the type using OpenG-toolkits. PJM private class generator doesn't know the classes as well. I have found out that the classID is 5 one of the low ones PJM hasn't identified.
Does anyone have a clue?
Ton
- What about the inherited properties like 'Scales', 'Text' and 'Numeric'? I think we need them
-
This should be possible. I'm looking into it at the moment, so lets see what comes out.
Good,
a question for all:
I have a framework where the developer can choose for which facade VI controls the inheritance should take place.
Now in the XControl a folder %control1%.properties and %control1%.methods will be placed with the properties and methods.
But several issues arise:
- How to get the facade VI control reference inside the property VI. A reference to the XControl is available but that is not easily parsable into the facade VI
Should we pass the controls around via the display state? - What about the inherited properties like 'Scales', 'Text' and 'Numeric'? I think we need them
What do you think about these Items, esp. nr 1!!!!
Basically I am looking for VI's that allow automatic property and method generation
Ton
- How to get the facade VI control reference inside the property VI. A reference to the XControl is available but that is not easily parsable into the facade VI
-
Does anyone know where NI keeps the templates for the XControl Method, Property and Facade VI's? I want to create my own which are nicer.
What about:
resource\Framework\Providers\xi\xctl.llb\facade.vit???
Hopefully this time I have answered the right question!
Thanks for asking I was kinda looking into these as well
Ton
-
Sorry I answered the wrong question, but if you look at how the original properties/methods are implied true inheritance is used.
Using the AllProps property of a string, there is no such property label.text or caption.text.
Just two references of the type 'Text', Is there a way for use to mimic this?
Ton
-
There should be a way to inherit properties and methods of build-in LabVIEW control to the properties and methods of an XControl.
I agree,
do you think it is a lot of work to read all the properties/methods of a normal control and process this into properties and methods of an XControl? with scripting off course
Then if you have a XControl consisting of several controls, should you build all the controls, or just some?
Ton
-
Hello Alameer,
First forget the dynamic data type, you never use it in your code. Have the Daq assistent put out a Voltage (or better the theta, but that is another exercise).
Then probe what theta comes out, is that correct?
Another tip, use executed highlighting.
Ton
-
So Michael asking questions.
First the easy one:
Use the description:
The container state contains the reference to the xcontrol
The second one looks more difficult, but fortunately not:
And here is some proof:
The help text is just the string, which originates from the numeric-data in a standard X Control
Now, Michael what are you going to do with this.
Hopefully a way to build an Xcontrol which has all the properties of normal LV controls, and this build with scripting?
Ton
-
=> there is only one thing I miss: While building a new RT- application I can not debug another application on a RT-Target, because the application Builder Window is "frontmonst"
But if you have only smal apps. you don't need that.
What if you run two copies of LabVIEW?
Ton
-
Thanks for letting me pick your brain.
Kenny
You're welcome, For storing data on a remote drive RT has no network shares client. What you can access remote is a DB via TCP/IP (I think you should just try to run the DB toolkit, I wouldn't know why not. Another item would be FTP
In order to have the RT correct running you should make two processess (typo?) one for the data reading and storing to a queue and one for communicating with the DB.
But why not go with a normal PC, let's say a CompactRIO+RT costs 10k
-
I think you can list channels and groups, but I don't see how to get a list of properties programmatically. That probably wouldn't be a huge issue for configuration files, but it would be a nice option. (Maybe it is there but I just haven't found it yet.)
Yes there is, use TDMS Get Properties, from the help:
property name indicates which property to return the property values of. If this input remains unwired, the function returns the property values for the specified group name, channel name, or the entire .tdms file.Ton
-
Recently someone from NI R&D was here, and he told us that most likely the next release had a solved issues list (or bugs) publically. Unfortunately not a known issues....
Ben:
I know you are very interested in CARs and bugs, do you store and monitor them?
Ton
-
I got feedback from NI, and they said it will be fixed in the new release (8.2.1/8.3/9.0/LVX)
Ton
-
Oouw Martin,
looks kinda bad (wel not kinda just bad), what does the debug file say after a restart? or doesn't it show up? If not look at it from MAX (or locate it with FTP).
Ton
-
Except that Ben's image shows the method for a table, not a tree, and I don't know of any vi.lib VI which handles that (and the private method did not work in 7.0). That said, there are some implementations on the web for doing this for tables and arrays.
For 8.x the exact same method exists for trees, it even tells you if the mouse was on the symbol position:
Allthought the method has the same name, if you change the control ref. type the method is broken
In 7.0 the methos probably don't exist, too bad.
Ton
-
Hi EJW,
A good start is the Code Capture Tool (dark side warning) featured earlier on LAVA, this tool let you extract (selected portions) of the BD to a .png
Ton
Edit:
link fixed, the new editor bit me not showing the tags
-
Hmm I have a slightly different problem and was wondering if anyone could help.
I have a string being read and using a scan from string func on it which should convert a string like: 245m for example to 0.245 or simply keep the milli specifier. The current formating mask I'm using for that function is %#.6p and that simply cuts off the m at the end and sends a 245, and when i'm doing voltage control, that creates quiet a dangerous situation. Could anyone please help!
Crosspost from NI (AKA the dark side) where it is already answered
Ton
-
and it was working perfectly at 5:00 last night when I shut the computer down.
Ahhh that's the issue, you didn't listen to the 'Computer Union' Now they are coming back at yah....
Still sucks though
Ton
-
I am not sure, but read somewhere about deleting your labview.ini file....
(make a backup though)
Ton
-
You could even filter warnings with a -ve case selector.
Sorry Chris,
but I thought I had seen everything a lot in LV, but what is a '-ve case selector', I know the 8.x palettes messed with our heads but this?
Ton
-
Hi Nicholas,
what happened is that your second frame executer during a very short amount of time, so you don't see the light comming on.
I added a third fram just for timing issues:
Another way to get this is using a timed loop that runs at 2 ms, so the timed sequence is launched every 2 ms, but there are other ways.
Ton
-
Hi Doon,
well two cases shouldn't be a big problem but here are my two cents:
The error code is a I32, In LV 8 we got the I64. Now if you have an error shift the error code 32 bits up.
with that method you could only use one case. The code looks quite complex, but if you want to seperately look for errors and codes (you could also skip the error boolean and look only at the code)
Prior to eight you could do similar things.
But I think if you only look at the error code you will get the information you want.
Ton
Relink to library
in Application Design & Architecture
Posted
Hello,
I am trying to generate properties for XControls. I know how to add them to the XControl.
But when I open the Xcontrol the XControl is broken and says the property is missing. And if I open the new property VI, it needs to be updated to get linked to the XControl.
To prevent this I save the property and close, add it to the XControl, save the XControl, open the property and save the property. This has not solved my issue.
Does anyone know how to do this (Jeffrey?)
Ton
PS it is currently the only thing between inheritance for XControls