05-11-2018 10:10 AM
You need to change the reference coming out the the VI Call by Reference Node. It was coming out of the open VI Reference. See the code I attached. I also added a tab control for your serial sub panel to make it less confusing.
05-11-2018 10:19 AM
sorry, but i think that the file attach is an old version because i couldn't edit the rs232 parameters, could you modify this value? thanks Michele
05-11-2018 10:23 AM
Yes I downloaded the new version and in the sub panel I can edit the parameters. Is this not how you want it to work?
05-11-2018 10:26 AM
The way you have the code written you have to use the increment and decrement buttons to change the values.
05-11-2018 10:26 AM - edited 05-11-2018 10:29 AM
yes, but when i try to modify with the keyboard it will clear (return at the previous value) when the timeout expire. Locally (without timeout) i could edit with the keyboard or up/down , so do i wrong the type of control? your sincerely Michele
05-11-2018 10:29 AM
Yes that is because of the way you wrote your code. What else is this vi going to interact with? Would it be a problem if the software stops everything else when it come into the serial update vi?
05-12-2018 04:19 PM
I'm sorry for my delay answer, no it isn't a problem, but i couldn't see the subvi into the subpanel if it remain inside the subvi, is it possibile to show it into the subvi and kindly do you have an example? thank you Your sincerely Michele
05-14-2018 10:01 AM
I would do something like this. Later I believe that you are going to need to look at a state machine system. Things are going to get more complicated from here. You need to look at some of the basics classes. THey should be free if you are a student.
05-16-2018 09:19 AM
Thank you for the answer, i know the state machine and i use it for manage my main menu, only last question about this last example and my necessity. In this example why i couldn't see prova_vi_select1 and 2 in subpanel, why?
I could see the configuration serial when i call "update" in the main but i couldn't insert it in subpanel with your event case until i'll press Update button in Initconfiguration. This is the main problem, run the subvi in subpanel until i'll press the Update. Thank you in advance yet. Your sincerely Michele
05-16-2018 10:08 AM - edited 05-16-2018 10:13 AM
Hi Micky,
I do not understand what you are asking. Can you give me a more detailed question?
What are your objectives?
What do you need this thing to do?
What is this going to interact with?
How are you using this vi to provide data or serial configuration to other parts of you code?
I do not have the big picture so I am not sure how you plan to use the information in this vi.