-
Posts
4,883 -
Joined
-
Days Won
296
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by ShaunR
-
Oooooh. Memory mapped files as a DVR?
-
You are not really talking about "Style", rather "State". There are two basic schools of thought. Try to keep state locally in a model or let the device keep the state. The former is fast but more error prone (desynchronisation between your model and the actual device) while the latter is slower but more robust and easier to recover. There are also shades in between the two which tend to be dependent on the device itself. If a device has multiple programmable config memories then a single command to switch recipes and read a value continuously may be needed (e.g. motors with profiles). If you have 1,000 UI controls to turn an LED on, then you may have to selectively see what the user has changed and send the command appropriately and hope they didn't press the reset button on the device. My preference is device 1st, local model 2nd (when performance becomes an issue). This is mainly because you usually end up re-inventing the wheel, that is, recreating the logic of the device firmware in a local model and some of them can be very complicated indeed. Some devices even have their own controllers so it becomes more of a distributed control system. Then I like to chop the hands off of operators and leverage advanced features of the device for configuration (recipes) if it has any.
-
The dialogues use "Root Loop" and the message pump is probably halting before sending the message once the first dialogue is shown. Use your own dialogue or set the string to "Update value while typing" to separate the events.. This should give you the result you are expecting.
-
There's probably a few improvements that it could benefit from. The Hunspell library only checks individual words so the regex I used to split text may need tweaking, for example. As long as there are no show stoppers; leave it a month for people to play and make suggestions like yourself. then I'll revisit.
- 18 replies
-
- right-click
- spell check
-
(and 1 more)
Tagged with:
-
1.0.1 has been released with the dependency removed. You should be good to go!
- 18 replies
-
- right-click
- spell check
-
(and 1 more)
Tagged with:
-
Not really. There isn't much too it. The build environment was imported from a VC++ workspace into CodeBlocks so I'll go through it so that external dependencies aren't required - I thought that was too easy...lol. In the meantime you can get a 32 bit binary from here to play with (rename it to libhunspellx32.dll) or with a bit more google-fu you can find others. They are all 32 bit, though. If there were 64 bit available, I wouldn't have bothered distributing them with the API.
- 18 replies
-
- right-click
- spell check
-
(and 1 more)
Tagged with:
-
Mission accomplished!
- 18 replies
-
- 1
-
- right-click
- spell check
-
(and 1 more)
Tagged with:
-
No. It's my bad. The thread is about IDE spell checking through a right click plugin so my use case is a super-set. It was just the only Lavag thread that was about spell checking. There is an external spell checking library (scroll up for link). It works very well. The problem is it's LGPL.GPL or MPL (have a choice) but they all burden the distribution of binaries with source (for a couple of years). So I'm umming and arring about not supplying the binaries and just supply the LabVIEW code as BSD3.Then whoever wants to can build their own binaries or find pre-built ones elsewhere . The problem there is that it will make it almost unusable for many LabVIEW people who are using 64 bit if I don't supply them..
- 18 replies
-
- right-click
- spell check
-
(and 1 more)
Tagged with:
-
I have four use cases. 1. Add spellchecking to "Project Probe" and integrate the "VI Documenter" with auto correct. 2. Spell check readme and changelog files. 3. Create an Xcontrol (string control) with "as you type" spell checking built in. 4. Add spell checking to a report generator someone has asked me to create. So far. looking good.
- 18 replies
-
- right-click
- spell check
-
(and 1 more)
Tagged with:
-
No. I want a spell checker that I can use in applications on any text - not just in the LabVIEW IDE.That's very short-sighted. Time to write a wrapper for Hunspell, I suppose
- 18 replies
-
- right-click
- spell check
-
(and 1 more)
Tagged with:
-
Not a version issue. Maybe I put my surprise in a wrong thread since the only references my foul-fu could find were for VI analyzer and this was the only one I could find on Lavag.org for spell checking. What I meant was "do we still not have a spell checking function we can use in LabVIEW?". Shipping VI anayzer with the application just for spell checking is a bit silly, IMO.
- 18 replies
-
- right-click
- spell check
-
(and 1 more)
Tagged with:
-
Hmmm. Do we really not have a spell checking solution apart from VI Analyzer? (which isn't really a solution ).
- 18 replies
-
- right-click
- spell check
-
(and 1 more)
Tagged with:
-
Transfer project hosting to Github/Bitbuck
ShaunR replied to odoylerules's topic in OpenG General Discussions
Nope. I just said all SCCs are crap for LabVIEW including Git. Rolf was comparing Git and SVN features. That comment was a friendly dig at odoylerules who loves Git and thinks my SCC system is copying zip files This is the same problem that came up with people wanting to know how to attribute the OpenG software for licencing. Various people suggested similar things to you but I'm not sure if an authoritative answer was ever proffered. -
Transfer project hosting to Github/Bitbuck
ShaunR replied to odoylerules's topic in OpenG General Discussions
The DFIR was introduced in 2009 and LLVM in 2010, I think. Anyway. Enough off topic shenanigans . Back to the discussion "my SCC could take your SCC in a fight".. I think the answer as to whether things should move to Git is probably not down to features, but preferences. If 90% of people prefer Git because all their other projects are there, then why not?. If no-one cares apart from 1 or 2 zealots then there is little point. Maybe a straw poll? There is one input that has not been considered, and it is the amount of effort required by the OpenG team to actually move it and if it would have a negative impact on the existing contributors who may be reluctant to learn a new platform. -
I don't see why all VI terminals can't have an option to adapt to type. We have them for CLFN which is very useful. It'd be great if it was just a checkmark on the compane like the "Required" or "Dynamic Dispatch". Then it would be easy to fix the type of controls/inidcators and mix-n-match adaptive and static types and we wouldn't even need a special type of VI/Xnode.
-
Transfer project hosting to Github/Bitbuck
ShaunR replied to odoylerules's topic in OpenG General Discussions
Well. A bit off topic but deserves a response. Two points here. . They have already figured out how to identify and merge differences. In fact they figured it out a long time ago, then stopped. That's 80% of the problem already solved, IMO. I've said before and I'll say it again. I don't care that the features I want are hard. It's closed source, paid-for software so it's up to NI to figure out how to make it happen; not for you or I to be technical apologists for them. Anything is possible with enough resources, time and the will to do it. The only thing lacking is the last one. As far as I can tell,. NI stopped doing hard or interesting stuff in LabVIEW around 2009 (maybe even 8.x) and have been serving us IDE placebos ever since - just look at whats been implemented from the idea exchange! -
This is a bit different in that LabVIEW generates an exact representation of the LabVIEW panel by scanning the VI FP and essentially converting controls and indicators to HTML and Javascript - the panel is automagically created for any application. A pure HTML/JS UI to a LabVIEW back end is much easier but you have to create the page for the application.
- 137 replies
-
Transfer project hosting to Github/Bitbuck
ShaunR replied to odoylerules's topic in OpenG General Discussions
I suggest you count to 10 then re-read what I wrote. -
Transfer project hosting to Github/Bitbuck
ShaunR replied to odoylerules's topic in OpenG General Discussions
That's just regurgitating the spiel. The power of Git isn't in forking or cloning - you can do that by copying a zip file. It is in having a local repository that you can make incremental commits and checkouts that can also be synchronised with the main trunk - offline AND online commits or "staging" as it is called. Other SCC all have to be on-line to make commits. The point I (and I think Rolf) are making is that all SCC including Git are not fit for purpose when it comes to LabVIEW so why change from one inadequate source control to another inadequate source control? It's not as if we have never used Git. It's just that is it as crap as all the others for LabVIEW. I, certainly, end up just using them purely for backup and restore due to LabVIEW peculiarities and Git is a very complicated backup and restore. Whats really needed is for NI to get their finger out and give us a proper LabVIEW SCC system instead of faffing around with IDE cosmetics -
Yup. Good example of where a VIM wipes the floor with the other solutions in terms of conciseness and ease of implementing..
-
Transfer project hosting to Github/Bitbuck
ShaunR replied to odoylerules's topic in OpenG General Discussions
I think it is a Linux cultural thing compounded by young basement hackers, personally. I saw a discussion somewhere where an application developer likened most programs written by Linux people today to a game called "Mount Your Friends". Seeing the go-to "architecture" (and I use the term loosely) of writing applications is to pipe and string together, program after program and hack upon hack , with the mantra "it works so it must be good" - I'm inclined to agree with them The Linux world has the cleverest, most intelligent and awe inspiring coders and programmers that there is. I'm humbled by some of their abilities' to put advanced mathematics and theories into code........ but they couldn't write a decent or user friendly application if their life depended on it . -
Transfer project hosting to Github/Bitbuck
ShaunR replied to odoylerules's topic in OpenG General Discussions
Glad I'm not the only one. Even if you account for not being able to diff LabVIEW code - which is a huge benefit of SCC - the creation of hundreds of clones of the source code trunk as a normalised workflow is an abomination. I think the idea was originally to be able to pick and choose code created by the herd of cats to improve the trunk but what actually happens is you end up with 1,000 slightly different variation of the same thing none of which are exactly what you want. So.....you create another clone . -
Good god no That's a sure fire way to allow managers to think "1/2 his timescales because he always over estimates" and will get you working weekends as the deadline approaches while they picnic with their families! There is no such thing as "properly" in management - only working or not. It takes this long, costs this amount of money, period! (because you never guess or estimate, you always calculate to ensure the project is on-time and on-budget, right? ) If you are pressured, you supply a list of features and ask them to cross off the ones they don't really need or want and you will recalculate. Alternatively, they can give you a deadline and you will supply them with the features that can be achieved within it. You want the reputation that your first plan is considered, calculated, already optimized and accurate for an on-time and on-budget delivery and there is no point in questioning it if they need everything you have listed.
-
Reaction to an highly suspect Open G License breach
ShaunR replied to Thoric's topic in OpenG General Discussions
It usually arises with subcontractors especially on rentacoder type sites where it's a race to the bottom. . Companies like to "own" source code outright. It greatly simplifies licencing issues or risk.. If you work for a company then there is probably something in your contract that says anything you write they own. With this mind-set. When you subcontract out work, you need to know that the code you are getting is original and that the sub contractor is disavowing all rights to it. This puts pressure on the sub contractor to supply working solutions with vanilla code. Sometimes things are just too hard or not enough time for them so they take tried and tested solutions and try to pass it off as their own so that they can get paid. If ripping out OpenG licencing terms for a piece of code that probably will never be looked at means make or break for a milestone payment then it's a very attractive solution especially if your contract includes a "No open source or third party code" requirement. -
Cockroach #1,545,432,323 reporting in! Your VI is not shared re-entrant so you are not suffering from the problem I was outlining. It's an application issue rather than a sneaky LabVIEW issue.