-
Posts
1,172 -
Joined
-
Last visited
-
Days Won
106
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by Neil Pate
-
I believe this now referred to as "Agile" 😉 But in all seriousness, not attempting something for fear of failure is not something I have ever really worried about. Also, it is pretty much impossible to fail on 100% hobby/pet-project/learning experience.
-
Any reccomendation for tools to get started with OOP?
Neil Pate replied to Matt_AM's topic in Object-Oriented Programming
I think what Thomas meant is that if you are going to use Dynamic Dispatch (DD) then you are forced to have the same data type as the connector pane of the concrete DD VIs all have to be identical. If you already have something working its probably ok. As an example you cannot have Instrument 1 return an array of DBL and Instrument 2 return an array of SGL for a "Read.vi". -
Azure IoT + MQTT
Neil Pate replied to Neil Pate's topic in Remote Control, Monitoring and the Internet
Hey Rob (UncleFungus🤣🤣) I actually moved away from that library in the end as I have my own actor style so wanted something more low level. I now cannot find my old code that was working with this library. I now use the MQTT library from daq.io as it gives me the low level access I need. Looking at your screenshot though I think I remember. Just at the bottom you have the cluster with User Name. I am pretty sure the private key string (as copied directly out of Azure) goes there or in one of the elements of that cluster. Now, in my production system I have moved away from this technique and am generating a SAS token each time I connect. This might be the wrong thing to do, I have no idea actually but it seems to work! -
LabVIEW "live" USB
Neil Pate replied to Neil Pate's topic in Application Builder, Installers and code distribution
Thank you. I will try and get some more info on exactly what is required. -
LabVIEW "live" USB
Neil Pate posted a topic in Application Builder, Installers and code distribution
I have some information from one of my customers but it's a bit muddled and I am trying to understand it. As it has been described to me, a USB stick is used to "download" LabVIEW and use it as an "operating system". So obviously there is a bit of a mismatch of vocabulary here or understanding of what LabVIEW is, the closest ideas I have is that this is some kind of Linux Live USB or perhaps running the LabVIEW application directly off the memory stick without installing the RTE. Does anyone know if it is possible to run a LabVIEW application without installing the RTE by carefully placing certain files in the right place? -
Ok cool, I will pick it up again. 🙂 Stupidly I am now thinking of moving the game logic to python as this will give me a chance to play with the python integration node in LabVIEW (assuming it is not too slow) and also polish up my python. The intention is that I can modify it while the game is running.
-
-
I am taking a sabbatical from LabVIEW and NI R&D
Neil Pate replied to Aristos Queue's topic in LAVA Lounge
That sounds like a fantastic opportunity, I am sure you will smash it out the park. To infinity and beyond! -
How to stop LabVIEW indicator from flickering?
Neil Pate replied to nitulandia's topic in LabVIEW General
I normally place a small transparent decoration over the control and this fixes it. Especially useful for tables where you are updating a reasonable amount of text. -
Events or Queues
Neil Pate replied to Bhaskar Peesapati's topic in Application Design & Architecture
RAM is virtually free these days. As much as I love and absolutely strive for efficiency there is just no point in sweating about several MB of memory. There is no silver bullet, if I need to do multiple things with a piece of data it is often so much easier to just make a copy and forget about it after that (so multiple Queues, multiple consumers of a User Event, whatever). It is not uncommon for a PC to have 32 GB of RAM, and even assuming we are using only 32 bit Windows that still means nearly 3 GB of RAM available for your application which is actually an insane amount. -
Events or Queues
Neil Pate replied to Bhaskar Peesapati's topic in Application Design & Architecture
No need to apologise, it did not come across like that at all. There is no rule that says you have to update your entire GUI every time a big chunk of data comes in. Its perfectly ok to have the GUI consumer react to the "data in" type event and then just ignore it if its not sensible to process. Assuming your GUI draw routines are pretty fast then its just about finding the sweet spot of updating the GUI at a sensible rate but being able to get back to processing (maybe ignoring!) the next incoming chunk. That said, I normally just update the whole GUI though! I try and aim for about 10 Hz update rate, so things like DAQ or DMA FIFO reads chugging along at 10 Hz and this effectively forms a metronome for everything. I have done some work on a VST with a data rate around 100 MS/s for multiple channels, and I was able to pretty much plot that in close to real-time. Totally unnecessary, yes, but possible. -
Events or Queues
Neil Pate replied to Bhaskar Peesapati's topic in Application Design & Architecture
My consumers always (by design) run faster than the producer. At some point any architecture is going to fall over even with the biggest buffer in the world if data is building up anywhere. User Events or queues or whatever, if you need lossless data it is being "built up" somewhere. -
Events or Queues
Neil Pate replied to Bhaskar Peesapati's topic in Application Design & Architecture
No, not at all. My producers just publish data onto their own (self-created and managed) User Event. Consumers can choose to register for this event if they care about the information being generated. The producer has absolutely no idea who or even how many are consuming the data. -
Events or Queues
Neil Pate replied to Bhaskar Peesapati's topic in Application Design & Architecture
I exclusively use events for messages and data,even for super high rate data. The trick is to have multiple events so that processes can listen to just those they care about. -
Design advice needed for data acquisition system
Neil Pate replied to brownx's topic in Application Design & Architecture
if you can get this all done in C++ in a few days I am mighty impressed 🙂 -
Design advice needed for data acquisition system
Neil Pate replied to brownx's topic in Application Design & Architecture
Well now you are really getting in the need for a proper architecture with HAL and clonable/re-entrant actors and stuff. Not something that can be easily described in a few sentences. -
Design advice needed for data acquisition system
Neil Pate replied to brownx's topic in Application Design & Architecture
You don't really need to worry about performance of the GUI anyway until you are getting into real-time updating of graphs with hundreds of MB of data. Even then it can be done if you are careful. -
Design advice needed for data acquisition system
Neil Pate replied to brownx's topic in Application Design & Architecture
You do use the same "normal" controls in the class private data as you would in your GUI. This is 100% ok and you can use whatever you like as they will never be visible at runtime, they are just a visual representation of your data types. What you choose to show on the GUI is totally unrelated to what data you choose to have in the classes. -
NXG, I am trying to love you but you are making it so difficult
Neil Pate replied to Neil Pate's topic in LabVIEW General
I especially like the bit where it locks up my PC so hard that even the mouse stops responding. -
that is nice but I found it way too heavyweight to use regularly. My debugger is built into my application and can be used even in the exe
-
A simple way I have found which works quite nicely is to get the clone to register itself with some kind of repository (FGV). I then have another tool which reads from the list of running VIs and can do stuff like display status, open block diagrams etc.
-
Git can't be this terrible, what am I doing wrong?
Neil Pate replied to drjdpowell's topic in Source Code Control
Have you tried GitKraken? I know every harps on about how the only way to use git is from the command line but I don't actually think that is a good way to get to know something as complicated as git. Sure, move onto to the command line but don't start there. Learning a new VCS should happen slowly and mostly painlessly, who has the time to spend getting intimately acquainted with a new tech that does not actually help get the bill-paying project out the door? -
Totally long shot this, but could it be a path length issue? I have not tried to do what you are trying to do, but have in the past seen builds sporadically fail due to the length of the path of some VI exceeding the windows limit of 260 characters (or something like that). As soon as I tried to build into something like c:\temp the problem wen away! This was years ago I have to say, and in more recent versions of Windows it is possible to work around this with a small change to the registry.
-
Qcam Firewire 1394 camera connection with LabVIEW
Neil Pate replied to Shuvankar Das's topic in LabVIEW General
Cannot physically connect it to your PC, cannot get an image out of it? What have you tried? I presume you have some sort of firewire interface care or framegrabber in your PC? For me, before I even reach for LabVIEW I make sure the camera works properly in MAX. Have you gotten that far?