Jump to content

[LV8.5]Custom Controls library ?


Recommended Posts

Hi guys,

I would like to know if there already exists a library of labview controls somewhere...

Because I would need a knob button that could be pushed/released in addition to its regular features...

What is the best way to proceed if a library of such controls doesn't exist ?

Thanks in advance,

best regards.

Link to comment

It would be a rather complex knob which would some explanation for the user. I think you have your reasons but nevertheless I would ask is it really necessary?

The output of the knob will be two DBLs and may be a boolean which indicates whether the knob is pressed or not. So I would suggest to make an XCóntrol.

An alternative could be a slide with two sliders. It is build in. Here it is more obvious that the user can enter two values.

Regards

Link to comment

Hi,

Yes I know that it's a complex knob but the device I have to simulate has that kind of knobs. It's used in the avionics to determine if a channel can be listened to or not...

The user of the application will know how this bullshit works xD.

Why would there be two DBLs and a boolean for the output ? I was rather thinkinf of one U8 (values only from 0x0..ff) and a boolean to return the pushed/released state.

Because for now i have to use one push button (boolean) in combination besides a classic knob.

I will check out what is this Xcontrol thing. Sorry I'm a neophyte so don't hesitate to tell me all the things that seem obvious to you.

Link to comment

Hi,

Yes I know that it's a complex knob but the device I have to simulate has that kind of knobs. It's used in the avionics to determine if a channel can be listened to or not...

The user of the application will know how this bullshit works xD.

Why would there be two DBLs and a boolean for the output ? I was rather thinkinf of one U8 (values only from 0x0..ff) and a boolean to return the pushed/released state.

Because for now i have to use one push button (boolean) in combination besides a classic knob.

I will check out what is this Xcontrol thing. Sorry I'm a neophyte so don't hesitate to tell me all the things that seem obvious to you.

Here is a quick demo of an x-control I threw together.

There is an issue with changing the value and being able to change the state (Pressed or Unpressd) If you want both operation to be done by a left mouse click.

I’ve thought of 2 way to maybe solve this issue.

The first way would be to create a click zone and when the user is ready to change states he left clicks in that area. The click zone needs to be reasonable distance away from the knob pointer so the proper operation will happen.

The second method would be to use a left click to change the value and a right click to change the state.

I’ve implemented both methods in this xcontrol.

Xcontrols are a bit of a pane to work with if you are new to LabVIEW so I also included the basic code in the demo. Use the best one for you.

Let me know how it works out

Mark

Click and rotate.zip

  • Like 2
Link to comment

Hi guys,

Wow Mark, it's exactly what I needed ... marvellous !

I will use the right-click option because my knobs will be pretty small and a left-click zone won't be easy to use.

You were right, it's a little bit difficult to see how it works. I don't see what is needed to run it basically with just the modified knob. Indeed the two tabs show one knob working.

The result I would like to have on my FP is, of course, what we see on the FP code tab.

The xcontrol tab and its content may not be necessary ?

Using the xctl file directly shows a frame and numeric indicator ...

I'm trying to understand how I can modify the Knobs I already have with your excellent trick. It might be possible since in the FPcode case, there is a "classic" knob control...

I will study it more precisely, anyway thanks for your help, it is exactly what I needed.

Best regards.

Edited by Xploit
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.