Enum with controls external increment/decrement
Hello people
I have an enum in my Subvi with close to 3 or 4 choices, I want digital control (push button) of wire to my DAQ hardware in order to to use to press the increment or decrement of this enum (switch between choices), I searched for a node property to do so, but without success.
Basically, at the moment I want to simulate this using a command button front button (for example) a boolean.
Thanks in advance
Here is the most common case where ask you the digital input (simulated as a switch to the released button as a car horn ).
(As I said, the enum must be done a typedef, of course)
Tags: NI Software
Similar Questions
-
Show/hide multiple Button controls increment/decrement is AWOL
As far as I can see (LV 2013), there is a missing feature in LabVIEW, whereby, when you select multiple digital controls, you can't show/hide their increment/decrement buttons:
Here, I have 3 DBL, 1 I32 and 1 enum, but that goes for any combination of numeric values. If I right click on one of the selected controls, I have access to only two points in the title of the "visible Points":
-Label
-Legend
Where is ' Increment/decrement' part, whereas it is common to all these controls?
BUG? I couldn't find it mentioned elsewhere, but I would not be surprised to be the first to have noticed.
-
Fill the tree with complex external XML file control
Hi all. I've been combing through forums for two days and have not been able to find a solution to my problem. I'm trying to populate a control of the tree with an external xml file, but the xml file is not a simple. It is complex, and I don't know how to get the tree to display these data. I have attached the code. Can someone take a look and let me know how I could get this to work? Thank you!What does not work?
Complexity of the XML is not, in itself, an issue for the tree.
Also, I recommend using straight XML, unless specifically, you need Collection features.
Tracy
-
Increment/decrement buttons
Hello.
I have a question here.
How can I use a single buttons to increment/decrement control several digital controls?
I can use different cases to define what particular digital control is under controlled. Each numerical control has its private pair. Can I use a single pair of control several?
Thanks for the help!
You can use Boolean keys the incrementing and decrementing of the buttons for a group of numeric values. Then use local variables (with caution) to update all numerical values. I say this cautiously because that depending on how and when you read the numeric values in your code, you can read in the middle of update values and read some that have been incremented/decremented and some that are still the previous value.
-
Computer does not start with connected external HARD disk
Although my BIOS doesn't look like another hard drive, when I start my computer with the external hard drive, the main computer shuts down until I have disable externally. I want to have external to back up automatically but can not have both to play well.
Help!
Hello
The same thing happened on my laptop with a connected external printer.
I was not able to turn on the laptop until I unplugged the USB printer.Well, I checked the BIOS which controls the start and put the HARD internal disk to the first position!
Try this. Maybe it helps. Otherwise you will need to disconnect the external USB HDD til the operating system has started -
Can I set the increment/decrement to not visible by default?
Attachment to increment/decrement to ALL digital controls is a nuisance. Give me a range that does not have the increment/decrement visible by default and my life will be MUCH better. I wouldn't mind clicking on a checkbox if it was necessary.
How can I do this NOT visible by default?
Make a copy of the control without the buttons and save it as a .ctl file.
You can place this file in the palettes.
-
creation of structures: state machine with controls
Hello, I wonder if someone can help me with something. I have a sequence, followed by the event structure / while loop.
someone can help me. I want to create a STATE MACHINE.
Here's a basic outline of the current structure, I. and this is what I want it to be. I wonder if its possible and how.
I'm using labview 7.0.
Thank you
This is what I want?
I looked at your Executive VI. I don't have an easy way to save in LV 7 now so I'll try to describe in words how I would approach this mess.
I think it can be done with two loops, a structure of the event, a case structure and not global or local variables. In fact, there is probably some small business structures and lines inside some of the case, but nothing like as layers of ~ 12 nesting, you're struggling now.
Look at the design model of producer/consumer (events) as a starting point.
The loop of producer (event loop) will have the structure of the event. It will be a case for each control that requires immediate action. Those that I could identify: get telemetry, side, open Journal printing, abandon, press tank Mode (?) Temp tank (?), Scan, Stop, wait, Step (?) unique, continue and Execute. Most of the buttons must be set on the mechanical action of locking and placed terminals in the case of the event appropriate. So no local population is necessary to reset them. Those with (?) have no event. You can have a case of timeout to display Date and time, eliminating which (painful to my eyes) loop. I don't know about the other stuff in the case of a timeout, but most likely, it is up to the other loop. If the room 1, 2,... buttons change during trips, they may also need event. Inside of each event is exactly one element: the Enqueue function. Create an enum command and make it a typedef. Enqueue this enum value. The queue will be read in the loop of consumer where all the action happens.
The consumer is your state machine. It has a Dequeue function to get a new order for the structure of the event. It has several shift registers to transfer data from one case to the other. These removes your global and local variables. I'd shift for each of the following registers: the State (typedef enum), cluster of error, temperature (table), pressure (table), results (table), Stat results (table grapes) and a big cluster Indicators_Flags (typedef). The cluster Indicators_Flags everything that is in the cluster you initialize in the black image sequence (and then never reuse) would have more all indicators except the berries in Maj separate records as well as all your globals and no status indicator, you might need.
The structure of matter is the heart of the state machine. All shift registers through it. It will be the case for what the program does. Everything in this black initialization setting in about 15 cases of Init. The while loop to the right of the boot image goes away, but the case inside to become some of the cases of the state machine. Chassis temperature cycling code goes into 1-3 cases. Mode code pump and read the pressure of your case of timeout event are 1-3 cases. Code of telemetry: 2 cases. Print the Page before: 1 case. Excel code. Abandonment of code. Temperature and pressure cycling code of main program: 5-20 cases. Graphics, record in file: more cases. Break: 1-2 cases.
I would like to make a list on paper anyway, you think that you may need and allows to create a typedef enum to control cases. By making a typedef, it is easy to change without running all over the code looking for the constant in all cases of change. Enum names will appear on the structure of matter as strings. Create the loop, shift registers and the structure of the case. Moving is part of both the original thread can duplicate the case until you have a case for each value in the enumeration of the State. (Do not use the case of the mark for each value option because it will empty cases that you will then need to wire through.)
Then copy code from various places in your existing code in the case in the new VI. Try to avoid copying inhabitants that it will create new controls. Name bundle to get data in and out of the big bend cluster registry and use ungroup by name. This provides a free documentation of the data used.
Check in a month when you have other problems. This will not be a quick fix. But it will be useful to have a program that works and is easy to manage.
Lynn
-
How can I programaticaly replace one Enum with another within a cluster
Hello
You can do that running. This requires a change in data type, which in fact means the application tries to change its own code (i.e. itself) and which is not allowed. You can use the script to replace things, but that is an edit operation, not a runtime operation.
You can either replace this enum with a string, or you can use several controls as you had alluded.
-
Start with an external display in VISTA with an HP dv2000 laptop
Hello
My HP laptop screen is broken, so I need to use an external monitor. Unfortunately, the screen not active really up to what I'm going to connect to the page into account. This means that if I want to access bios, upgrade to a new operating system, or to do other things, I'm completely blind.
Is it possible that I can get the operating system to start with my external monitor.
Please note: I have a strong experience of PC and I'm decent to things like the change of systems. So feel free to suggest something dangerous or risky.
-Hamed
Unfortunately, what you want to do is not possible. The system should be launched before the second monitor is enabled (and you can't have the main monitor an external monitor on a laptop). If you want to see what you do with stains where the disk hard operating system is not in use, you have no other choice than to repair your laptop screen (it does not cost much more and if you get only one monitor (and not the entire upper eyelid) you can replace exactly that and it shouldn't cost as much as a whole new lid (assuming it's the monitor that is the problem and not) (not something in the lid) anywhere near). I did myself on my Dell and it wasn't easy by any means and I had to use tiny tools, I had not used in years (and if ever I need to do it again, I could just let a technician computer repair or Dell even myself worth) - but it can be done.
There is no way to say BIOS (or something else) to use the external monitor as primary monitor - the controls are not there, and even if they were, the connections would be not activated by the system (and you cannot do it from the BiOS unless / until the system works). You might be able to do the main monitor once the system is working, but not until then. I appreciate your computer experience and a willingness to try something dangerous or risky, but it is not a question of who - it is just possible iisn can't with any Windows OS I know and probably other software of OS as well (and I'm not sure I would even suggest something dangerous - perhaps risky - even if I knew it would work because I'm tryng to help solve the problems and not cause) new or worse those).
I would just bite the bullet and contact HP and get the laptopr fixed or at least get the part and try to do it yourself (a bit risky, difficult, time consuming and who need very small tools to accomplish if this can be done on a HP as it did on my Dell - you need HP technical support or parts if it is possible and that the difference in cost to ensure that it is possible) and useful effort).
I'm sorry if this isn't what you wanted to hear, but it's like that.
I hope this helps.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
kernel_task runaway (from 300 to 600%) CPU with 2 external displays
I have a MacBook Pro (retina, mid-2012), and for a year and a half, I've had episodes fighter during the kernel_task suddenly begin to consume all processor CPU (from 300 to 600%), is the response of the system so slow it is impossible to use. I experience these episodes throughout the front 1-2 years that the machine went from Yosemite El Capitan and now Sierra.
Normally, I use my MacBook with two external displays, both at work and at home. At work, I have two external screens of Lenovo, and at home, I have two screens Apple (Apple Cinema Display 27-inch and 27-inch Apple Thunderbolt Display). I discovered that this kernel_task high CPU usage can only be stopped by disconnecting one of the external screens. After unplugging an external display, the kernel_task subsides immediately to normal (< 5%). After a few minutes, I can reconnect the 2nd external screen and proceed normally (sometimes for days, sometimes for hours, sometimes for a few minutes) until the kernel_task pulls up to 300-600% again. The use of the high CPU kernel_task never happens unless I have two external displays connected.
Note that since I upgraded to MacOS Sierra fugue kernel_task CPU frequency has increased considerably: of 1 kernel_task runaway every several days to a runaway almost every 10 minutes or so. I don't have a reason this frequency has increased, but the runaway condition seems to have worsened by the fact that the photoanalysisd daemon is running like crazy on my grand (72 000) library of Photos.
Also note that I started in recovery mode and have re-installed MacOS Sierra, and it has no effect on the runaway kernel_task.
Any ideas on how to fix this resumption of kernel_task of all my CPU?
I have attached my EtreCheck system report below. This report was captured with two attached external displays. At halfway while generating a report, the kicks and started kernel_task hogging CPU again.
EtreCheck version: 3.0.5 (309)
Report generated 2016-09-25 14:24:02
Download EtreCheck from https://etrecheck.com
Time 07:59
Performance: Below average
Click the [Support] links to help with non-Apple products.
Click [details] for more information on this line.
Problem: Computer is too slow
Description:
Sometimes, while working with my MacBook connected to two external displays, the kernel_task pulls up to 600 to 800% CPU and stays there until I unplug at least one of the external screens. After disconnecting, the kernal_task subsides immediately to normal (< 5%). After a few minutes, I can plug the 2nd external screen and proceed normally (sometimes for days, sometimes for hours, sometimes for a few minutes) until the kernel_task pulls up to 600 to 800% again. The use of the high CPU kernel_task never happens unless I have two external displays connected.
MacBook Pro (retina, mid-2012)
[Data sheet] - [User Guide] - [warranty & Service]
MacBook Pro - model: MacBookPro10, 1
1 2.6 GHz Intel Core i7 CPU: 4 strands
16 GB RAM not extensible
BANK 0/DIMM0
OK 8 GB DDR3 1600 MHz
BANK 1/DIMM0
OK 8 GB DDR3 1600 MHz
Bluetooth: Good - transfer/Airdrop2 taken in charge
Wireless: en0: 802.11 a/b/g/n
Battery: Health = Normal - Cycle count = 242
Graphics Intel HD 4000
NVIDIA GeForce GT 650M - VRAM: 1024 MB
Color LCD 3840 x 2400
LED Cinema Display 2560 x 1440
Thunderbolt Display 2560 x 1440
macOS Sierra 10.12 (A 16, 323) - since the start time: about an hour
APPLE SSD SM512E Disk0: (500,28 GB) (Solid State - TRIM: Yes)
EFI (disk0s1) < not mounted >: 210 MB
Recovery HD (disk0s3) < not mounted > [recovery]: 650 MB
Boromir (disk1) /: 499,05 (Go 140,24 free)
Storage of carrots: disk0s2 499.42 GB Online
Apple Inc. FaceTime HD camera (built-in)
Apple Inc. Apple keyboard / Trackpad
Apple Inc. BRCM20702 hub.
Apple Inc. Bluetooth USB host controller.
Apple Inc. Apple LED Cinema Display
ISight Apple Display Inc.
Apple Inc. Audio display
Apple Inc. FaceTime HD camera (display)
Apple Inc. Apple Thunderbolt Display
Apple Inc. Audio display
Apple Inc. Thunderbolt_bus.
Thunderbolt Inc. Apple display.
/ etc/sudoers, 2299 but file size expected 1563
Mac App Store and identified developers
/ Applications/Beats Updater.app
com.beatsbydre.BeatsDFUSupport [no charge] (2.1.0 - SDK 10.10 - 2015-10-29) [Support]
/Applications/proxifier.app
[no charge] com.initex.proxifier.macosx.kext (2.15.2b1 - SDK 10.7 - 2015-09-10) [Support]
/ System/Library/Extensions
[no charge] com.makemkv.kext.daspi (1.5-2016-09-25) [Support]
TiVoDesktop: Path: / Library/StartupItems/TiVoDesktop
Startup items are obsolete in OS X Yosemite
[no charge] 7 tasks Apple
[loading] Apple 156 jobs
[running] Apple 108 jobs
[loaded] com.apple.jetsamproperties.Mac.plist (2016-08-25) [Support]
[no charge] 41 tasks of Apple
[loading] 153 jobs Apple
tasks of Apple 109 [performance]
[cannot] com.adobe.ARMDCHelper.cc24aef4a1b90ed56a725c38014c95072f92651fb65e1bf9c8e43c37a2 3d420d.plist (2016-07-11) [Support]
[loading] com.cisco.anyconnect.gui.plist (2014-06-10)
com.DisplayLink.UserAgent.plist [no] (2012-08-14) [Support]
[loading] com.google.keystone.agent.plist (2016-07-11) [Support]
[loading] com.oracle.java.Java - Updater.plist (2013-01-04) [Support]
[loading] com.adobe.ARMDC.Communicator.plist (2016-07-11) [Support]
[loading] com.adobe.ARMDC.SMJobBlessHelper.plist (2016-07-11) [Support]
[loading] com.adobe.fpsaud.plist (2016-08-29) [Support]
com.backblaze.bzserv.plist [running] (2016-07-11) [Support]
com.Cisco.anyconnect.vpnagentd.plist [running] (2014-06-10) [Support]
com.DisplayLink.usbnivolistener.plist [no] (2012-08-14) [Support]
[loading] com.google.keystone.daemon.plist (2016-09-09) [Support]
[loading] com.oracle.java.Helper - Tool.plist (2013-01-04) [Support]
[loading] com.sharpcast.xfsmond.plist (2013-11-30) [Support]
com.backblaze.bzbmenu.plist [running] (2016-09-25) [Support]
com.vladalexa.MagicPrefs.plist [running] (2016-09-25) [Support]
iTunesHelper Application (/ Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
HWMonitor Application (/ Applications/HWMonitor.app)
Hidden CPULed Application (/ Applications/CPULed.app)
Application of hidden activity monitor (/ Applications/Utilities/Activity Monitor.app)
Dropbox application (/ Applications/Dropbox.app)
Hidden SizzlingKeys Application (/ Applications/SizzlingKeys.app)
Beats Updater Application (/ Applications/bat Updater.app)
Hidden NET Monitor Application (/ Applications/Net Monitor.app)
FlashPlayer - 10.6: 23.0.0.162 - SDK 10.9 (2016-09-15) [Support]
QuickTime Plugin: 7.7.3 (2016-09-13)
AdobePDFViewerNPAPI: 15.017.20053 - SDK 10.11 (2016-08-03) [Support]
AdobePDFViewer: 15.017.20053 - SDK 10.11 (2016-08-03) [Support]
Flash Player: 23.0.0.162 - SDK 10.9 (2016-09-15) [Support]
Silverlight: 5.1.20913.0 - SDK 10.6 (2014-03-07) [Support]
JavaAppletPlugin: Java 8 update 101 build 13 (2016-08-18) check the version of
WebEx64: SDK-1.0-10.10 (2016-01-23) [Support]
Ghostery - GHOSTERY, Inc. - https://www.ghostery.com/ (2016-03-15)
Backblaze backup (2016-07-11) [Support]
Flash Player (2016-08-29) [Support]
FUSE for OS X (OSXFUSE) (2013-11-30) [Support]
Java (2016-08-18) [Support]
MagicPrefs (2016-01-20) [Support]
MenuMeters (2014-10-22) [Support]
TiVo Desktop (2009-11-23) [Support]
Skip system files: No.
Mobile backups: OFF
Automatic backup: YES
Volumes to back up:
Boromir: Disc size: 499,05 GB disc used: 358,81 GB
Destinations:
Frodo Time Machine [Local]
Total size: 999,86 GB
Total number of backups: 40
An older backup: 09/09/16, 02:09
Last backup: 25/09/16, 11:49
Backup disk size: too small
Backup size GB 999,86 < (disc 358,81 GB X 3)
345% kernel_task
56% Information System
44% cloudphotosd
42% iTunesCacheExtension
30% activity monitor
Top of page process of memory: ⓘ
1.44 GB kernel_task
1.18 GB com.apple.WebKit.WebContent (6)
786 MB mds_stores
590 MB bztransmit
Mdworker (18) 492 MB
256 MB of free RAM
4 pm used GB RAM (5.96 GB being cached)
768 KB used Swap
25 sep, 2016, ~/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_2016-09-25-134618_ 13:46:18 [redacted] .crash
System/Library/Frameworks/WebKit.Framework/versions/A/XPCServices/com. Apple.We bKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent
25 sep, 2016, 13:19:15 /Library/Logs/DiagnosticReports/photolibraryd_2016-09-25-131915_[redacted].cpu_ resource.diag [details]
/System/Library/PrivateFrameworks/PhotoLibraryPrivate.Framework/versions/A/Supp ort/photolibraryd
25 sep, 2016, 13:06:44 test - passed
September 22, 2016, 16:03:11 ~/Library/Logs/DiagnosticReports/Microsoft Word_2016-09-22-160311_ [redacted] .crash
com.microsoft.Word - Applications / Microsoft Office 2008/Microsoft Word Word.app/Contents/MacOS/Microsoft
Start safe mode, use this way and see if the problem is recurring
-
The macbook pro is provided with an external hard drive?
It comes with an external hard drive in the finder, or you buy one?
It has an internal hard drive, but not an external one.
(140751)
-
Satellite A300-19 q - how to start with an external USB drive
Hi all!
I have a (old) TOSHIBA Satellite A300-19 q bought in 2008. I wanted to do a clean install of Windows 7 by reformatting my HD. The problem is that my internal DVD drive no longer works. So I tried to boot from the Windows 7 DVD installation with an external USB drive.
Unfortunately, I couldn't find a way to boot from USB devices in my BIOS options.
My BIOS is up to date (version 4.20) from Toshiba Web site.So I was wondering, does anyone know if the A300-19 q can boot from USB devices?
Thank you in advance.
I have A300 at home but I never tried to start with an external USB device.
Start your laptop and press F12 to get into the boot menu. There must be USB option. What happen when you try to use it? -
Is it possible to install Boot Camp and use window only with an external hard drive, so it doesn't take much space on my Mac?
No. Windows cannot be installed on an external drive, or start from a.
-
10.11.3 - cannot start iMac with monitor external thunderbolt
Updated 10.11.3 yesterday evening. New problem I've ever seen.
iMac (late 2015 version, with 27 "screen Retina 5 K, Core I6, SSD, Radeon R9, 16 GB of memory).
connects via a thunderbolt cable to
Apple 27 "monitor Thunderbolt, model A1407
(so I see two screens 27 ", side by side)
System does not boot under 10.11.3.
Boot process goes through the white Apple, then the line under the Apple gets almost half way through
At that time, an arrow cursor appears on the screen of your iMac.
A second more later, arrow cursor appears on the screen external thunderbolt.
And then the system hangs. Nothing changes.
However, if I physically pull the Thunderbolt, the iMac starts correctly. The boot process works as it should.
In this case, * after * I connect, I can connect the thunderbolt and the external monitor works properly.
However, if the system is then reset, either by choosing the restart, or due to a failure, then the boot process hangs.
I have:
(1) used Safe Boot (shift - restart).
The two screens can be mounted properly. A lot of horizontal scroll around (to test screens?); Subsequently, the system works correctly.
However, after starting secure, I try to restart normally with the external screen, the boot process hangs again.
(2) reset the NVRAM. No effect.
(3) reset SMC, controller of system management (by removing power for 30 seconds). No effect.
Suggestions? Ideas?
Hey there buddy.
I'm with you on this one...
Exactly the same problem I am experiencing and before anyone posts macro stuff that we all read, I'm just saying I'm sure that 90% of us have already made the NVRAM reset, reset the SCM and so on...My MacBook Pro works perfectly one day and the next day I get this * updated... external monitor no longer works with my HDMI.
I'm sure that some of the support will suggest for us to watch a few pages "Troubleshooting" and suggests that our cables are broken or our monitors surprisingly stopped working after this magic update...
Another favorite of mine suggestion is for us to go there and buy the cable HDMI $99 is made by apple...
I'm * offshore, that an update can cause so much hassle and worst of all, wasting my time by reading more than a dozen pages of dumb suggestions...
@APPLE, you will find the * bugs and solve this problem, it is simply unacceptable. An update of shit limits my use of the laptop... What's next?
-
HP envy Phoenix: win 7 does not start with connected external hard drive
I have a desktop HP Envy Phoenix with i7 chip and an SSD for the OS. If I connect via USB external drive of 3 TB WD for the backup of the system does not start while it is attached. The pc seems to be trying to boot from the outside, can't find the OS and does not start. It will start fine with small external drives connected. It is the size of the disk? Is there a way to fix this?
Hello
The WD drives seem to pose problems of my potential. I have used other brands such as Seagate and Hitachi without running into problems with external USB drives causing the system to boot. Maybe it's the USB adapter that I use which does not cause starting problems.
I used the adapter HP USB 3, which uses drivers NEC or TI and has never had a problem starting via a USB external (non - WD) readers.
Maybe you are looking for
-
How to disable the toolbar to search related
Visiting a few results from web sites in the appearance of a toolbar on the left, called "related searches." How to disable the toolbar?
-
Online application with GUI command option
Dear all, I need a command line application that does not open the GUI when you add switches to the command line call. So, when I call my request without any switches, he opens the GUI and I can use it interactively. When I call my application with t
-
asked about windows fax and picture viewer. had 2 responses, but can not find how to see them. am not good at all this back.
-
Error 0x800ccc92 opening Windows Mail and 0xs800ccc90
When I try to open Windows Mail in Vista I get sign in the box for the username and password. When I enter the user name and passsword I get tha error 0x800ccc90 and 0x800ccc92 messages. How can I solve this problem?
-
I found (this) online tutorial and I try to work with it, but some of the imports are no longer included in the latest SDK. So... which leaves me wondering... How can I do to apply custom skins? I was able to get applied black skin a LabelButton and