LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

continous operation

As has been said before numerous times, you CANNOT use indicators to have a user enter a value. Indicators display data. They cannot be used to enter data. You must use controls. You can use a local variable to write a value to the control programmatically so you can set the initial value, and allow the user to change it from there. I have no idea why you keep insisting on not understanding this point. This is a very basic concept.

0 Kudos
Message 51 of 72
(1,043 Views)

Yes, i can make a local variable of the existing numeric indicator and use controls to give user input but the problem is when a control is created for the local variable which again display extra control on front panel. I don't want to display any extra controls or indicators except what i had now. see the picture.

0 Kudos
Message 52 of 72
(1,037 Views)

i forgotten to add this picture. now you can see below.

0 Kudos
Message 53 of 72
(1,034 Views)

Do not use indicators. Just use the control. That's what we've been telling you.

0 Kudos
Message 54 of 72
(1,033 Views)

 


@shjukheter wrote:

Yes, i can make a local variable of the existing numeric indicator and use controls to give user input but the problem is when a control is created for the local variable which again display extra control on front panel. I don't want to display any extra controls or indicators except what i had now. see the picture.


Right click on the indicators and select "Change to control". Problem solved. Please do spend some time going through the tutorials.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 55 of 72
(1,030 Views)

Sorry for asking such kind of stupid questions though i am not clear about my code. I know Indicators only can show the results and controls can control the operation by writing data. I had taken only indicators for displaying the data. According to instructions, i have to create a GUI that can control the smps. So, the commands are written to the port and respective values(current working values in SMPS) are displayed in numeric indicators.

 

So, its been clear for me until now. Problem lies here that user(whos is watching these parameters in indicators) want to change some values in SMPS(so that SMPS will work according to the user order) and for that he will put cursor into indicator and delete reading value(existing value in SMPS) and write the new value into it and click SEND button which will write these values into smps. I know indicators does not support this and I have been asking for any other way to do this functionality.

 

I know i can create some controls and will wire it to the write visa with some code which do the job as i like but i don't want to crete any other indicators or controls on my app except what i have. I want work with available indicators which can do the both operations(write and read).

 

As my knowledge, we can only display the results in indicators not more than that at all.

 

I am just looking for help in another way from NI forums to get functionality as i like. Sorry, if does reach upto your standards.

0 Kudos
Message 56 of 72
(1,010 Views)

Hi Shjuk,

 

you have been suggested to go through the LabVIEW basics before, but anyway:

Change your indicator to be a control. When you want to write to the control use a local of that control instead...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 57 of 72
(1,008 Views)

"Change your indicator to be a control"

        Is that what you are saying lot of times. I told you i want to display the results so i have taken indicators if i change that to controls all code will change to broken wires and its totally wrong.

           I have finished all the basics from NI site, youtube, labview wiki, example as futhur help.

0 Kudos
Message 58 of 72
(997 Views)

Hi Shjuk,

 

your problem seems related to not reading what other people write to help you...

 

"When you want to write to the control use a local of that control instead..."

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 59 of 72
(994 Views)

 


@shjukheter wrote:

"Change your indicator to be a control"

        Is that what you are saying lot of times. I told you i want to display the results so i have taken indicators if i change that to controls all code will change to broken wires and its totally wrong.

           I have finished all the basics from NI site, youtube, labview wiki, example as futhur help.


 

Here are the instructions:

1. Change your indicators to controls. You will get broken wires because you have items wired to them.

2. Anywhere you have a write to what had been an indicators, replace it with a loval variable for the control and change it's mode to write.

3. Simply read from the control in the places you want to read the data.

 

This isn't rocket science and it is getting very frustrating for the many people who have been trying to help you. You ask a question, get MANY answers for it and continue to ask the same question over and over. See above post for verification of the frustration level.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 60 of 72
(989 Views)