Update of digital control with different values with array function
Hello
I have attached my code base. I want to execute the code for 2 sets of digital control with a gap between the two values, then pass it. Something like that
ABC
Initialize the P1 = 10; P2 = 20; P3 = 30; P4 = 40
Run the code
delay = 10ms
Update of P1 = 150; P2 = 200; P3 = 350; P4 = 500
Run the code
jump to abc
I am stuck how can I update the values of P1, P2, P3, P4? I thought about using a function table but couldn't go further.
Thanks for the help,
Ana
Hello Ana,
One way you might achieve what you are looking for is using property nodes. These property nodes will allow you to change the values of the block diagram control. You can set up a structure of case inside your loop that will change control through nodes of property value after a certain number of iterations. Here is a community sample that shows how to use the nodes property to change the Boolean controls:
https://decibel.NI.com/content/docs/doc-22669
-Erik S
Tags: NI Hardware
Similar Questions
-
I want to update the digital control by pressing a button
Hey,.
I'm in Labview 7.1
So I have a problem that seems like it should be very simple, but I have questions.
I want to increment a digital counter when the user presses a button to save their data, but labview allows only a digital output counter and not all take to the.
I want the variable a numeric control so that the user can increment/decrement it themselves if they feel the need to revive or ignore a number of test.
All solutions?
Thank you
-
To have the value 'All' in the list of elements of control in the value of array type
Hi all
To have the value 'All' in the list of master points.
Need to create a set of value that shows the items in the inventory template and append the value 'All' in the list, so that the user can select.
I have the below query that does this. But how can I highlight the value of table type.
SELECT ItemList segment1
OF MTL_SYSTEM_ITEMS_B
WHERE organization_id = 0
UNION ALL
SELECT 'All' ItemList
OF the double
Please do the needful.
Thank you.Hello
One way to do, is to create a database for you view query and base your value set on this point of view.
Hope this helps,
J. -
Automatic update of the combo with VI saved to a folder box
Hello everyone
I am completely new to labview... Could someone help me how can I automatically update the combobox control with the files I have saved in a folder on my PC. Thanks in advance
Best regards
Bilel
Yes, I could be more helpful, sorry!
Well, it was like that until replaced LabVIEW code snippet it my property of combo box!
-
Can I use a digital control to change the illustrated index of an array?
Hey people,
This could be one of these questions, get feedback 'why would you do?', but I wonder if there is a fairly simple solution, I don't know everything...
I know that tables are not exactly gems when it comes to claims for benefits, but with my particular application, if I could get a digital control to define what the array index appears, it would be great. In addition, assuming that it is possible, then I think I could find a way to have two Boolean values which would increment/decrement the element indicated by updating the digital too...
Any ideas?
A popular entry!
THX
Is that what you wanted to achieve
-
Digital control over several orders of magnitude
Hi all,
I'm trying to get a digital control with a suitable addition to the order of magnitude.
For example, I have a front panel for an osziloscope, sometimes that samples on some ns, sometimes a few seconds, sometimes a few milivolts, sometimes a few volts, who knows, right
I was playing around with the digital control units, but it doesn't quite fit my needs. I can't change the prefix of a unit on the duration, for example of microseconds to seconds, but then I change the issue as well, because on change the prefix, the previous number is only multiplied by the factor according to, for example, 1000, so 5 became US 5th-6s. So change the record length of the default value of 500 ms to 100 ns would require two klicks type, and I can instead just type "100th-9', which is good too."However, I would like to have a digital control from 0 to 1000 combined with for example a button for prefix i.e. nano, micro, mili etc. and combine this values internally, i.e. of mulitplying accordingly. But I couldn't set the increment to "3 orders of magnitude" even with the option to log scale.
I know, I could use an enum with the names and values according to, but this is not very satisfactory.
So perhaps the question would be: is it possible to combine two digital controls or the value for the prefix, in a suitable and easy way? Or how do you manage the digital values over several orders of magnitude in a case like mine?
Thanks for your replies in advance.
Best,
bastlwastl
Display format is SI units
It helps in these situations
-
Updated several lines with different values
Hello!
I have a problem. I need to update more than 1000 lines with different values. How can I do?
For exsample I have table:
ID; color, date,
1 red
2 green
3 white
I need to update the date field.
Update table
Set date = '01.02.03'
where id = 1
Update table
Set date = '01.03.03'
where id = 2
Maybe it's how to update multiple rows in a single request?
Sorry for my bad English.
Thank you!Hello
You can try this
UPDATE TABLE SET DATE = CASE WHEN ID = 1 THEN TO_DATE('01-02-03','DD-MM-RR') WHEN ID = 2 THEN TO_DATE('01-03-03','DD-MM-RR') END
see you soon
VT
-
Hi all
I have a digital control in a tab control. Both of them have their own events 'mouse-down' in a while loop. But when I click on the digital command, instead of raising the event of digital control only, both of these two events fired.
Maybe I can check if the mouse is in the range of digital technology to filter events, but if the window is resized, I have to recalculate the range once again.
Is there another way to do it?
I pasted the test code too.
Thank you!
Excerpts of work
Side note: I really don't like the controls on the tab and use them very rarely. And the few times I use them, it is for tabs to which I often use to select among the screws to put in a secondary school.
-
Digital control system, using limits of entry of data with global variables
Hello!
I have a Subvi with several digital control sliders. These control framerate, the pixel clock and exposure of a camera and their change in max/min/increment whenever one of them is changed - they are interdependent and get their information from the camera continuously during execution.
I'm trying to remote control this VI, but during the passage of a value using global variables, it doesn't "stick".
Example:
The value for exposure is 237,48 Ms. different values are constrained to the nearest value. So if I pick 240,00 ms at the Subvi, he should know that this is not a valid value and change to Mrs. 237,48.
But it is not do and I don't know why. When I enter the values manually, it works fine.
Any suggestions?
The limits on the controls that apply when their control from the front and is not passing values via the connector pane.
You should use something like "line and force" within the VI to validate the values are within the range (maybe constrain data or return an error).
-
Flashing LEDS with digital control
Hello
I want to do a simple program that goes like this. I have 2 digital controls and 2 comparisons. 1 digital will compare if the number if there is less than 50. Second comparison if it is longer than 50. If less than 50, according to this number LED is blink your eyes upward and will stay on. If the second number is greater than 50 the LED belonging to this number is then blinking and will remain lit. NOW...
If one OR both of these lights light up, a THIRD light should BLINK automatically. If the two first two traffic lights are off, then the third should stay off.
I tried using shift registers and a deadline for the delay, but I'm stuck.
Any help would be great. Thank you!
Thuba25
First, you must modify your code for an interactive real state machine. Your code is inside-out.
Currently, the controls are read once at the beginning of the program and then never.
- Do not use internal loops. Use a single outside WHILE loop that encompasses all of the code.
- Get rid of the stacked sequence, she is useless and obscures just the code.
- The case structure belongs inside the loop and not vice versa.
- Read the commands with each iteration and decide depending on their value.
- ...
See how far you get... Good luck.
-
reuse of filters with different values
We have a usage scenario where the same filters will have to be applied several times with different values. Looking the javadocs, it seems like there is no way to change the values of pre-packaged filters (EqualsFilter, GreaterFilter etc.). Is that correct or is there a way to do it? I see that if we use CohQL, we can use bind variables to do this. However, the use cases we should rather just more complex extractors ReflectionFilters.
In addition, there no performance impact by using CohQL against java constructs directly?
Thank you
Manju.Hi Manju,
While it is true that you cannot change values in the built in filters, even if you could it wouldn't make you save a lot on the construction of a new filter every time. I guess that if you build a very large number of filters, then you're going to create more garbage, but that shouldn't be a problem either. Some of the more specialized filters also contain State so that you do not want to resuse them.
The main performance issue I know with CohQL which is only creates extractors of reflection so won't enjoy all serialized POF values you have. If you have indexed each value you want to query on using the same extractors relflection then it would help, but again, this means that everything you deserialization of the values for the query or insert to update the index.
Kind regards
JK -
Hello
I'm working on a project that requires two outputs digital signals at different frequencies. Frequency of the phase 1 is about 1 kHz and is modulated on and off to a pace that will change during the execution of the program. Wave 2 passes from 1 kHz to about 6 kHz while needing to be pretty accurate to the tenth of a Hertz.
Initially, I tried to manage the simultaneous output of signals at different frequencies using a single task on a single 9477 daqmx in a cdaq-9174 chassis. As far as I know, the best way to get a specific frequency in a waveform output is to set the sampling frequency up to 2 times the frequency of the wave that is generated and generate a waveform that is given to each clock cycle. This works very well when it comes to a gesture, but I was unable to get the frequency of the modulated wave (wave 1) remains constant when the frequency of wave 2 modified or vice versa.
I have a few other modules lying around (another 9477, 9403 and 9476) and I thought I would try another task running on a separate module. I find myself receive error-50103 message if I add these modules to my cdaq chassis and run one of the waveforms of a task set to run on the add-on. Is there a way to bypass this error? I guess it would cause by running two digital output on the cdaq-9174 tasks at the same time, but it seems to me that this wouldn't be a problem with an additional module.
How can I have two outputs digital signals, running at the same time, maintaining their independent frequency frequency of the clock of the other sampling rate changes. In addition, because the wave 1 is enabled and disabled at a defined frequency, I use it to set the number of samples to write when you write a range of waveforms in the module (when generating these two waveforms on the same module).
I'm sorry if the explanation was difficult to understand. I've attached an example of error 50103 lifting. This isn't really a part of my project as a whole, but it is the easiest way to reproduce the error.
Thank you
Hi awol.
I have a follow up for you. You encounter the error because the cDAQ chassis has only a timing engine of. You will not be able to perform simultaneous tasks of the call by the hardware. Please see the following knowledge base: http://digital.ni.com/public.nsf/allkb/5E0B829E50ADE1BC86257AC50062B2D2
Mike
-
I'm getting to do a settings editor window that has several groups of settings that can be edited and saved. The settings are loaded and saved on a Bay of clusters. The window uses a shift register to store all changes and then you can save at the same time when you are ready. The problem I see is that if I change a value and leave the cursor in the control, and then a new group he will not read this new value. I understand that you should put the control that you want to play in the same event, but the problem is I want to be able to read this control with several events and it makes sense to have the control outside the structure of the event. I have attached a sample vi of what I am trying to accomplish. I'm relatively new to labview and learning I'm leaving, so any help would be appreciated. Thank you
-
DAQmx create track (I-current-Basic) 8 channels with different values of Shunt resistance
Hello
I want to measure 8 current channels with different values of Shunt resistance.
Problem: The channel create DAQmx (HAVE current Basic) specifies that a value of Shunt resistance.
How can I set the value of Shunt resistance for each channel individually?
Concerning
Marcel
Hi Marcel_C,
Take a look to get attached.
Best regards
Mencef
-
How to map the same tag of the element with a different value in BI Publisher rtf model.
Hello
I have an xml file with the same name in the < tag > element and I do not know how to associate the same < tag > element to different string in the document rtf template attribute.
For example: "' Eswitch <number > is repeated in this xml file, when I am mapping this element to the document rtf with a different string, I have same value 'D00002 ' . I should get values D00002 and DMR00002.
< document >
< TitleBlock >
< number > D00002 < / number >
< itemType > Document < / itemType >
< lifecyclePhase > preliminary < / lifecyclePhase >
< description > gtedgg < / description >
< shippableItem > n < / shippableItem > < / cartridge > < / Document >
< DMR >
< TitleBlock >
< number > DMR00002 < / number >
< itemType > DMR < / itemType >
< lifecyclePhase > preliminary < / lifecyclePhase >
test nomenclature model bom1 < description > < / description >
< POS > < value > Test < / value > < / POS >
< shippableItem > n < / shippableItem > < / cartridge > < / DMR >
< / AgileData >
I followed steps below for map document model rtf with the same tag xml with a different value.
1. install Office word 2013.
2 BI Publisher for desktop software installed. It will add a BI Publisher plugin to the word document.
3. with the help of desktop publisher BI, created a model of document rtf file.
4 imported the document rtf template example xml file.
The data is loaded successfully.
5 tires model rtf field symbol to map the tags to xml to rtf document attributes element.
7 saved the document in PDF format.
Thank you
Please mark it correct so that it is useful for others to find the solution to a similar request.
Maybe you are looking for
-
Need some advice on Satellite A100-998 and A100-049
I am considering buying this laptop or maybe the a100-049... any thoughts or comments from the people? I heard the A100-998, you can't partition the hard drive... but I want just an overview of these laptops.
-
iTunes tags/info reset Movies/TV Shows
Hi people, I had this problem for awhile now so I don't know what version of iTunes it started happening... I am currently on version 12.3.2.35 running on a MacBook Pro with OS El Captain 10.11.2 When I rename and change the tags on some videos that
-
I have a hero go pro 4 and it worked fine a month ago but now my footage is ignored.
I have an end 15 in 2011 macbook pro 2.2 GHz Intel Core i7, AMD Radeon HD 6750 M 512 MB, 4 GB 1333 MHz DDR3. I have a hero go pro 4 and it worked fine a month ago but now my footage is ignored. Can anyone help? Do you think that its to do with the
-
cannot scan for ipad! WiFi printing is successful but app does not have to scan active.
On my deskjet 3050 j611 has... And help please?
-
HP G62-a23SA - cannot find the LAN driver
Hi all I'm running into a frustrating problem. I have laptop HP G62-a23SA I recently bought 2 months back. Somehow a virus got into my machine and I'm planning to wipe, and then reinstall all. I did no recovery DVD etc. I also have bought Windows 7 U