-
Posts
1,179 -
Joined
-
Last visited
-
Days Won
109
Everything posted by Neil Pate
-
I am wondering how others implement the sharing of configuration information between processes. For example, I have a camera with an acquisition time specified by a user. This value is editable by the user during run-time and persisted to disk so next time the application starts it is used. The process doing the image acquisition is free-running, and the GUI doing the editing of this parameter is in another process. The technique I use to solve this is a bit old and rusty, namely an LV2 (actually Action Engine) with all the system config in it with methods to read and write from/to disk as well as set accessors for each of the variables. The acquisition actor just reads out the value as it needs it, but does not actually store it internally in its own process. I currently have no mechanism in my framework for informing a process that a configuration value has changed. This works fine, but I wonder if others have gone the extra step and implemented configuration data using User Events and removing the global data store? In an actual system there will likely be significantly more configuration parameters.
-
Indeed, I have been getting this error on my phone for a month or so now.
-
Nice, what did you plot this with? Not the 2D Picture control I am guessing
-
I read the node names from a file on disk, along with a description of their data type. This I use to set up the server, see attached. Note: I don't really have much OPC-UA experience, so cannot say if this is good or bad practice as I have done it. It works fine for my purposes though. The other frames of the case structure deal with the other possibilities, like Folder.Item etc
-
Ditto for me, I would be very sad if this place shut its doors. I think the audience here is very different to ni.com forums, and personally I do not like the community aspect there, it feels too distributed. If I have questions, which I still quite regularly do, this is where I am going to ask them. Put another way, lavag.org is one of the few sites I would gladly pay towards the cost of running, so thanks for everything Michael :-)
-
I still must be doing something stupid, how do I actually made modifications to an existing (or a copy of) XNode? I can open the ability VIs fine, but they are locked. All I want to do is try and modify your XNode to make it accept a DVR to a variant rather than a plain variant. This is my first real foray into XNodes, so I am probably missing something obvious even though I have tried to read as much of the literature as I can.
-
So anybody want to give me a license to edit these xnodes?
-
Yeah I forgot to actually say I like it, but have not really kicked the wheels very hard yet
-
The file attachment works ok, but the image is missing in Jack's first post linked below Edit: I do like how the hyperlink is automatically "expanded"
-
Off-topic indeed, but I would love to chat about it I generally don't back up my "PC" i.e. the OS etc. I know I should, just never get around to it. All my dev stuff is in Bitbucket (so offsite) and a NAS on site. I try to not go more than a day without pushing my changes out to these backup sites. I use VMs for old versions of LabVIEW and for testing purposes. (Even more offtopic, I use CrashPlan offsite backup for my personal stuff like photos and videos etc) In London I was pretty happy with 150 Mbps broadband and still that is way to slow to regularly upload multi-gig VMs. I never got sophisticated enough to do things like rsync with my VMs, so they just ended up being stored locally on a big mechanical HDD. Now that I am living where broadband is not so good (1 Mbps) I really really cannot synch VMs. My question is just this; how do you synch your VMs offsite? Is there some clever stuff going on in OS X that does diffs and stuff to a VM container so it only uploads the small changes?
- 25 replies
-
- open source
- alternative
-
(and 1 more)
Tagged with:
-
Michael, one of the biggest problems for me with using a VM per project is how to do you manage physical offsite backup of VMs?
- 25 replies
-
- open source
- alternative
-
(and 1 more)
Tagged with:
-
-
- effects
- user interface
-
(and 3 more)
Tagged with:
-
Ah ok. Definitely did not come across that and I poked around in the API quite a bit.
-
Yes, it definitely is a bit bare-bones. Especially comparing it with the old "vanilla OPC" API that is included with the DSC toolkit. What is an OPC-UA method?
-
Quite happy with it James... After NI patched the issue I mentioned in my first post that prevented proper authentication with name+password. I never got certificates working properly either, but this may have also been fixed by the patch. I have mainly used it as a client, and have production ready code stable with with approx 100 tags. I have created some proof of concept code to run the server side as well and it worked fine. My only issue is that the server does not allow to register for listeners, so you have to poll. I don't really know all the nuances of OPC-UA so perhaps this is normal, it just seems strange that the client can get periodic events (nicely handled in an event structure), but the server has to poll. I am planning on using it in several more projects, it certainly seems to do everything I need and is much easier to integrate into your codebase than other OPC-UA toolkits.
-
Problems installing DAQmx/Vision, only on Windows 10?
Neil Pate replied to Neil Pate's topic in LabVIEW General
Tried to install Vision again today, this time 2015 SP1 on a fresh installation of Win10 and same problem. Grrrr. Something is weird about my PC though, if I install the Intel LAN drivers I also get a hard crash Edit: narrowed this down a bit, seems to be PXI Service Runtime 2015. Is this even necessary for a "normal" PC? -
Yup, I had the same thought actually about modifying the x node to take a DVR. Going to tinker with this when I get a moment. One of my issues with the CVT is that as it stands everything is a double right?
-
Very nice indeed I am thinking about using this in a project where I have to interface with some external equipment via OPC-UA and some other custom protocol. I have lots of "variables" (tags) and want to experiment how things can be done as much as possible by just using a channel name in my code rather than individual element access. Anybody given any thought as to how best to share the variant between processes? Lots of options here, as Kahrma mentioned perhaps a good technique is a DVR?
-
Ah yes, that is the same VI "GDI Resize" I am using now (Thanks Darin.K). Internally that VI does use the PNG Data to Lv Image. That solution works perfectly, I get a pixel perfect representation of my PNG file.
-
-
Chris, both images are the same size, the picture from the left is from paint .net, the one on the right are just the pixels represented by colourboxes. hooovahh, I think you are right. I actually found code on my PC very similar to what you linked to, and I tried this and it works perfectly. By the way, I also give credit and thanks to the author of the VI I found on my PC that I downloaded from lavag some time ago, it is called GDI Resize.vi So my conclusion is that something strange is happening in the PNG Read VI. I think I have peeked into it before and it is just a LabVIEW.exe function call wrapped?
-
Hi All, I am getting some strange behaviour when using LV to read a PNG file. For reasons I cannot explain I get coloured pixels where I do not expect them. The attachment shows what I expect versus what LV is giving me. I have tried playing around with the transparency threshold input as a last resort but this does not seem to have too much effect. Any ideas? Any other tricks for reading a PNG file?