Creating oscilloscope controls with LabVIEW - labview

I am creating simple application in NI LabVIEW - Lissajous Curves from signal generated by NI Elvis.
I have already added Osciloscope control and connected it to the XYGRaph. But I would also like to have some values that could be changed. I would like to have options to set values like in this image:
How can I Add them to my project?
Thanks in advance

The two highlighted controls look like 'Dial' controls which can be found on the 'Numeric' palette on the 'Modern' control palette (also in 'Classic' and 'Silver' depending on you LabVIEW version).
Looking at the Vertical Position control this has the numeric indicator visible which can be show by right clicking on the dial, and from the menu move across 'Visible Items' and select 'Digital Display'.
The Scale Volts dial looks to have some kind of drop down menu which I guess would have pre-set values. You could use an enumerated data type for this and code you user interface event structure to sync these two. Your user interface event structure could also update the properties of the graph (use a Property Node from the 'Application Control' Pallet of the 'Programming' section of the Block Diagram 'Functions Pallet') to change the displayed range (Scale Volts).
Have you looked at the example code from the image block diagram?

The two highlighted boxes are known as Knob controls. There are a variety of controls for changing values in LabView.
Please see the below figure to understand what I am trying to explain.
This is how you get the knob controls:
http://i.stack.imgur.com/sICHw.png
How to assign the values to the min and max of the control can be changed from the knobs property. Right click -> property. see below
http://i.stack.imgur.com/wxfsC.png
If you have any further questions, don't fail to read up the help from Labview. Its quite useful and very demonstrative.

Related

Best way to implement a dialogue system in Game Maker Studio 2

I am trying to implement a dialogue system for a game that I am making. I have the actual system for handling the text and input all set up. My question is asking about how you actually show the text and have it formatted properly in a certain sprite.
The "best way" is a broad and subjective term, and it may be different for each person, but I can give you some tips regarding the question in your second sentence, to put you in the right direction:
How to actually show the text and have it formatted properly in a certain sprite?
Considering a dialogue box is a User Interface, you should put the code, that draws the dialog box, in the Draw_Gui of the object. Because that will draw stuff in front of the camera, and doesn't need to keep positions of the map in mind. Since Draw_Gui is in an object, you can put the dialogue box in a parent NPC, or let a seperate persistent object handle it (called an object manager)
To format it properly within a sprite, you can use draw_text_ext(x,y,string,sep,w), especially the w parameter will be helpful, as that allows you to let the text start on a new line if it exceeds past that width, and the sep parameter let you deside the space between the lines of text, to ensure the amount or lines in your dialog box will look clean.

How to set tab order for array of cluster,where cluster elements have different data types in LabVIEW?

Labview
i have one array of cluster and 1D array. i need to set tab order for combination for array of cluster elements and 1 D array.
Array of Cluster data types:string and time,1d array has only Boolean.
please see image above.
To set the tab order of the cluster, right click on the cluster and select "Reorder Controls In Cluster..." When the VI is running, if you have focus within one element of the cluster, you can tab within the cluster.
There is no built-in keyboard support in LabVIEW for tabbing between elements of an array when those elements are clusters. There is also no built-in support for tabbing out of one array into another array. You will need to add an Event structure to your block diagram and use it to watch for the Tab key being pressed and then perform your own change of focus. This example code may be useful to you.
The array control does not really work well for UI interaction. It is meant mostly as a way of displaying data and of passing data into subVIs. You may find yourself frustrated if you try to control the tabbing manually too much. It is an area where it will probably be useful to ask for help on the NI LabVIEW forum for someone who can help you step-by-step to design a UI. I've been using LV for decades, and this is an area that still frustrates me.

VB.NET - How to Create Information Box

I'm creating a form that will display a long list of properties and their associated value. I'd like to display them in a sort of table-like control. Something with heading values at the top and a list of organized data underneath it. Something like these:
I realize those 2 examples aren't exactly the same but I'm flexible on what I produce as long as it gives a similar effect. My question is, how do I create a list like that? Is there a control in the Visual Studio toolbox that will produce this effect?
I'm sure there's something similar that easy to find but I can't figure out what to call that control so my searches haven't turned up anything useful.
Any help would be greatly appreciated. Thanks!
A combination of ListView and TabControl controls could be used to emulate what you're showing above. See the links for ListView and TabControl to help you get started.
Yes, there are windows form controls that provides this functionality.
For the tabbed windows use the TabControl:
For the different lists use a ListView control in the mode Details - which means a list with columns:
For the second feature, the ListView control has the Group features:
In order to group items togheter set the group for the chosen item(s):
All of this can be of course done programatically. There are good tutorials on MSDN and Channel9.

Connect two controls in LabVIEW?

I have two boolean elements or swritches.
When I turn on the first one, the second one should switch off and vice versa.
So, I am trying to make elements both indicators and controls.
I read that I have to turn on the Digital Display which is under the visible items submenu but there is no such option.
Could you please help me figure this out?
Thanks in advance.
I am new in LabVIEW, so if this question has already been answered or if it is a stupid question, I am sorry.
If you want one control on the block diagram with two different user indicators, you should use an XControl, I created a simple example here.
UPDATE: Added a demo VI to the example /UPDATE
If you want two control on the block diagram with two different user indicators, you should use user event and local variables to control the two states:
You can only have 'Digital Display' with a gauge or some kind of numeric control

How to set the amount of fields defined by user in VB

How do I set a number in a up/down box then press a button to show me a second form with the amount of fields (like labels with text boxes) defined in the up/down box? I'm new to programming so try to explain in really simple terms if you can. Thanks
Code based solution you can implement now
Container controls in VB.Net inherit usually inherit from Panel control which owns a collection by name Children.
You can add dynamically created controls to this collection to create the second form.
Complex but technically sound solution
Invest sometime to learn XAML and create XAML templates to this job for you. Refer the link here which solves same problem in C#.