-
Posts
4,883 -
Joined
-
Days Won
297
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by ShaunR
-
How to exit from switch statement when condition is met first time
ShaunR replied to vhha1972's topic in LabVIEW General
Give this a go. not sure I got the "sense/direction" you are trying to achieve right (and had to reorganise a bit to make be able to read it). but the "latching" is there. -
How to exit from switch statement when condition is met first time
ShaunR replied to vhha1972's topic in LabVIEW General
The output will be "TRUE" if the direction is detected. It looks like your case structure is set to "False" to turn off. Try swapping the cases around. It is usually better to post your VI or an example of what you are trying to achieve rather than an image. For simple VIs you sometimes get back the VI with the changes. There is a lot of replication in the openG VIs, presumably for completeness. Not using the openG stuff forces me to look in some of the more obscure palettes. -
How to exit from switch statement when condition is met first time
ShaunR replied to vhha1972's topic in LabVIEW General
There are several ways. For example, you can use this VI to detect the "direction" of your boolean change. -
Passing data between languages
ShaunR replied to Mark Yedinak's topic in Application Design & Architecture
I use base64 because everyone has base64 decoders and it has the benefit that images can be planted straight in a browser without explicit conversion (although that's probably not much of interest for your use case) -
Closed Loop Control System Could Go Unstable Due To Noisy Feedback
ShaunR replied to KWaris's topic in LabVIEW General
There are filter examples shipped with the FPGA (look for "notch filter") and there are IPs that you can download from NI that also give you more filters such as the median filter. You can even create your own IP using the IP wizard in the project manager if push comes to shove, but I've never used it (I'm lazy like that) It is not unusual for the derivative term to do nothing in some systems. With such a small integral, it is arguable whether you really need a PI controller even.(P only with deadband for example). However. It's "software", so what the heck eh? It works and that's the main point. -
Closed Loop Control System Could Go Unstable Due To Noisy Feedback
ShaunR replied to KWaris's topic in LabVIEW General
Well. As you know. It is the integral term that dampens ringing and overshoot. +-0.02v out of +-10V is 0.2% of FSD and I expect that is within the spec of the device. So the choices as I see it in the absence of being able to increase the integral and without getting into process modelling are: 1. Apply a 50-60Hz band-stop filter on the input (try and reduce the amplitude of the mains signal). 2. Apply a median filter to the Derivative term (reduce the feedback sensitivity to noise) 3. Introduce a dead-band (turn off control when within set limits-good for mechanical systems) 4. All or a combination of the above. -
Compiled Code Complexity analyzer for LabVIEW 2012
ShaunR replied to gregstoll's topic in LabVIEW General
Interesting little project that opens up a couple of possibilities (like automagically in-lining those identified as capable of being in-lined). Maybe it can be used for older versions by running it in 2012 and back-saving to a previous version (2010/2011?). Can it be extended to include or say something about subroutined vis? I get many error prompts (error 1026 occured at Close reference-vi ref invalid) when scanning either a directory or a project. I can get file output and do analysis though. A bit of documentation wouldn't go amiss as to what "complexity" actually means and what can be gleaned from it. I assume a complexity of >5 is "too complex"? Does this mean it is a candidate for refactoring? If a vi is marked as "Partially Optimised", what does it mean and what can be done about it, if anything? etc. It Needs a bit of love , but very interesting. -
Closed Loop Control System Could Go Unstable Due To Noisy Feedback
ShaunR replied to KWaris's topic in LabVIEW General
What frequency is the sine wave. 50Hz? What is the +-0,02 in comparison to the range (+-5v sensor?) Does your PID controller implementation have a dead band? -
A guesstimate is not a guess. It is an estimate without having all the facts. As Order Of Growth is a simplified relational analysis and usually only denotes a upper bound; it is a "guesstimate" however much maths you put around it. It is a very crude way of describing processes.
-
Perhaps you are just more use to the older terminology of "guesstimate"
-
It was a "play on words". Intelligent? Me? Naaah. I write LabVIEW programs. If I was intelligent I'd write Malbolge.
-
I bet you say that to all the boys
-
Command design pattern and composition of functions
ShaunR replied to 0_o's topic in Object-Oriented Programming
-
Have you got a CAR number?
-
Programmatically changing the value of a "numeric control"?
ShaunR replied to Stepper's topic in LabVIEW General
-
No. As Phillip states. It is not a modem and therefore does not use Modem hardware signalling.
-
Programmatically changing the value of a "numeric control"?
ShaunR replied to Stepper's topic in LabVIEW General
-
Not even a week and there's a patch?
-
My three months worth of hard work but UDP issue
ShaunR replied to KWaris's topic in LabVIEW General
Are you trying to open the port on the LabVIEW side twice? You can only open a port once or, more specifically, you can only bind one socket. If you are trying to "multicast" then you must use a multicast address, however, you will still open only one socket. -
Use the VISA property node.
-
This is quite common so I wouldn't feel too left behind. Moving to a newer version represents a significant project risk and if/when you upgrade (which should be for a very good reason rather than there is just a new one) it's better to let other people find all the bugs/issues and any work-arounds for them. I'm still on 2009 which is far more stable and performant than than 8.6 (and, anecdotally/arguably, more performant than everything to date) and I'm waiting for a feature list or bug list that warrants an upgrade. However. Back to toolbars. The change was made in 2011. 2009 and 2010 both have the (much better IMHO) standard 3D button bar.
-
Woah. Cats resurfaced. That's worth a "like" in itself
-
How select COM-port before starting looped VISA write?
ShaunR replied to Stepper's topic in LabVIEW General
Unbundle the error cluster after the Error Message Dialogue VI and "OR" it with the stop button to terminate the loop. The loop will then stop if there is an error or if you press the stop button. -
So. Whats the verdict?. Likey, likey?
-
Why Do I Get Windows Error 1303 When Installing NI Software?