02-02-2016 07:17 AM
I want to change the default value of one of the numeric inputs after reading value from a text file.
Can someone help me. I am struck.
In the photo shown below, I want to change the value of "Start Carrier" to a value that I read from a text file.
02-02-2016 07:23 AM
02-02-2016 07:23 AM
You have a few options. I would just use a local variable to read the current value (at the beginning of the program, that will be the actual default), use Bundle By Name to update the Start Carrier in the cluster and then another local variable to write the cluster value to the control.
02-02-2016 07:26 AM - edited 02-02-2016 07:36 AM
crossrulz wrote:
You have a few options. I would just use a local variable to read the current value (at the beginning of the program, that will be the actual default), use Bundle By Name to update the Start Carrier in the cluster and then another local variable to write the cluster value to the control.
I am totally new to Labview, didn't have much time to learn as this is a very small part of my project.
Can you PLEASE HELP ME with this. I can share the code with you.
02-02-2016 07:28 AM - edited 02-02-2016 07:29 AM
@ Dennis_Knutsson : I am new to Labview and I am from Computer Science background, I don't understand INI files or the variables that you mentioned.
I went through the explames but couldn't understand a thing.
Maybe, a snap of the front panel isn't enough. Tell me, what should I upload for you to help me ? My code ot block diagram ?
I really appreciate your help, mate.
02-02-2016 07:30 AM
gauraangKhurana wrote: I can't understand a thing that you wrote.
If you do not know of Local Variable and Bundle By Name and Cluster, then you definately need to go through some of the tutorials. They will help you a lot more than we can at this point.
3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Learning NI
Getting Started with NI Products
02-02-2016 07:35 AM
No, please dont do this. Please, I beg you.
Okay, so here is the situation.
I have a "Start Carrier" field in my front panel which is a part of a cluster constant. I just want to change the value of this field by inputing from a file.
I know how to read a file and read the values in the file. Can you please just explain to me, how can I set these values(that I've read from the file) to the "Start Carrier" field again.
Please help me crossrulz
02-02-2016 07:39 AM
02-02-2016 07:41 AM
02-02-2016 07:50 AM
Thanks for the very informative "INI" tutorial.
No, you are getting me wrong. I did go through the tutorials on YouTube (atleast 20-30) of them.
I just cant figure out how to change the default value of my front panel programmatically.
I have been struck on this for hours. That is why I came up here.
Here, is my code. I need to change "Start Carrier" which is a part of "Rx Parameters".
Thanks alot.
I am not trying to get my homework done. Just trying to get some help from the community. Maybe the level of questions isn't that good, but plz help me.