03-03-2011 01:53 PM
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.
03-03-2011 02:15 PM
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.
03-03-2011 02:16 PM
i forgotten to add this picture. now you can see below.
03-03-2011 02:17 PM
Do not use indicators. Just use the control. That's what we've been telling you.
03-03-2011 02:21 PM
@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.
03-03-2011 03:56 PM
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.
03-03-2011 03:58 PM - edited 03-03-2011 03:59 PM
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...
03-03-2011 04:09 PM
"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.
03-03-2011 04:16 PM - edited 03-03-2011 04:16 PM
03-03-2011 04:17 PM - edited 03-03-2011 04:19 PM
@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.