10-27-2010 02:55 PM - edited 10-27-2010 02:56 PM
Ever had a huge Enum to populate which might change occasionally? Have a text file with all the stuff you need? Great! Just populate the Enum using the []Strings property. ... Not so fast. An Enum must be defined before run time, or shall we say, Open time. Here's how to do it:
Create a VI that opens the VI containing the Enum using Server, then populate []Strings using references.
11-01-2010 10:40 AM
When a LabVIEW "switch" control has its Mechanical Action set to Switch When Released, you'll notice that it stops half-way as you hold it in. These transitional states can be read and used to fire code by simply reading the boolean text programmatically. Optionally, I am also taking advantage of four different colors that can be applied to the switch as it changes state.
11-04-2010 12:52 PM
This question reminded me of a little Micro-Nugget regarding strain gauge measurements. If you use the Bridge Offset Nulling VI, you can use a Property Node to view the values of the on-board potentiometers after the calibration has taken place. What value does that have? Write these values to a file (append) and, over time, view the trending of your offset. I have over two years of offset nulling data which I have used for things like finding increasing side loads on the sensor, and improper installation.
11-04-2010 12:59 PM
Nice one BA. Another reason to monitor this is that one of the first signs of permanent physical damage to a strain gauge is a change in offset.
11-04-2010 01:29 PM
Not sure if it was somwhere or not, any way, I using it time to time:
Andrey.
11-04-2010 01:52 PM - edited 11-04-2010 01:52 PM
That's pretty cool. The same feature for coerced numerics would be nice.
11-04-2010 01:59 PM
@lmtis wrote:
That's pretty cool. The same feature for coerced numerics would be nice.
That can be done with Type Conversion RCF PlugIn
But String to Path / Path to String conversion is "embedded" LabVIEW feature.
Andrey.
11-16-2010 09:24 AM
Turn your TypeDefs into OOP Classes easily with this Right Mouse Button feature in Project...
Now get started with OOP by creating Accessors!
Good luck, have fun.
12-23-2010 01:38 PM - edited 12-23-2010 01:42 PM
Communicating between two loops seems to be coming up a lot lately, so I thought I'd post my example.
Download all three files in one folder. Run the VI named Communicating Between Loops.
p.s. "Bad" ways, as well as "good" ways to pass data are shown; however, they all have their place, except the Global.
I strongly recommend the Queue and or Notifier.
12-24-2010 06:11 AM - edited 12-24-2010 06:12 AM
Hi Broken Arrow,
Good work on the communicating between loops vi. As you say this is always asked on here so needs covering. One thing i would suggest for your examples is perhaps a small write up next to each example explaining when and when not to use them. As you say there and good ideas and bad ideas on there, maybe an idea to highlight the Dont's. Just a thought, Good job
Regards,
Lucither