LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display the selected options from the ring control in Subvis

Hi
 
I have a new problem.
 
I am measuring a temperatures from a device( say 10 temperatures).
 
I have a ring control(control1,5 options to select,say D1 to D5),by choosing any of these options i will open a new FPs(created as subVIs),done upto here.
 
Now,I likely to use a another ring control(control2,say 10 options to select(T1 to T10)(this control is to select the temperature channels i need to use for each subvis))in  main VI .
 
I need to do is,to assign a temperature channels(between T1 to T10) for each subvi(not the channels fixed all the time for each subvi,it needs to be  choosed from the control2 depending on the availabilty(i mean if some channels(T1 to T10) are already assigned to subvi(D1 to D5),we can make them greyed by disabled items).Here i will explain more detail[for ex, For D1 if i choose T1,T3,T6,these 3 values only need to be displayed in the chart of D1 Front panel,similarly For D2 if i choose T4,T8,T10,these 3 values only need to be displayed in the chart of D2 front panel].
 
Then at any time if i have closed D1 program execution we can make those channels(T1,T3,T6) available for other subvis.
 
Thanks,any tips much appreciated
0 Kudos
Message 1 of 11
(3,075 Views)
Hi Veeru,
you can create a buffer in the "Main.vi" (the vi which calls the subvi´s to select the different channels) and store there the not yet used temperature channels. With each call you send this array to the subvi and show the options in your ring. Create an output where you return the current selected temperture and remove it from the array in the main vi.
This is only one solution!

Hope it helps.
Mike
0 Kudos
Message 2 of 11
(3,061 Views)

Thanks for ur reply Mike

First of all i need to study about,How to cretae a buffer,its uses and its operation.So pls give some guidelines on Buffer

Thanks

0 Kudos
Message 3 of 11
(3,040 Views)

Hi Veeru,

see the attached example.

Hope it helps.
Mike



Message Edited by MikeS81 on 07-16-2008 08:17 AM
0 Kudos
Message 4 of 11
(3,026 Views)

Thanks Mike

The ex is helpful, from ur previous message about  creating Buffer i dont have idea about buffers.

I modified ur example code to my program but when u select the Temp channels,its not displayed in the new FP(subvi FP).

If there is any documentation will be much helpful.

 

Thanks

 

0 Kudos
Message 5 of 11
(3,008 Views)

Hi Veeru,

which Temp channels do you mean? If you create a subvi of it, then connect the array of disabled elements to it and connect this to the property of the ring.
For what do you need a documentation?

Mike

0 Kudos
Message 6 of 11
(3,003 Views)

Thanks Mike

I meant Temp channels(control2). I didnt got idea about buffer,so i requested documentation for buffers.

Thanks

0 Kudos
Message 7 of 11
(2,995 Views)

Sorry again

I really didnt know how to proceed in this issue,As mike said i created a subvi and connected the disabled items to the subvi,but i am not able to see in the subvi FP.

Thanks

0 Kudos
Message 8 of 11
(2,979 Views)
I believe that when Mike was refering to buffers, he meant something like a shift register or a queue. Since you expressed confusion about buffers, we have no way of knowing what you did to implement to pass the information to the subVI. Again, you need to post your code instead of some vague comment that soemthing does not work.
0 Kudos
Message 9 of 11
(2,972 Views)

Thanks Dennis

Just i got to know what is buffers.

Download All
0 Kudos
Message 10 of 11
(2,968 Views)