ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
10-18-2006 10:20 AM
10-18-2006 10:49 AM - edited 10-18-2006 10:49 AM
Message Edited by altenbach on 10-18-2006 08:50 AM
10-18-2006 11:03 AM
10-18-2006 11:17 AM - edited 10-18-2006 11:17 AM
Sorry, I made one small oversight.
Your values output must be U8, which you "solved" by indexing into an array. 🙂 Easier would be to use my method and just set the representation of the control to U8 (right-click...representation). 😄
Message Edited by altenbach on 10-18-2006 09:18 AM
10-18-2006 01:19 PM
10-19-2006 01:40 PM
Hi altenbach,
I apologize for bothering you again. I was hoping that I could move forward with a part of the solution that you provided, but I am stuck. I have modified your code a little bit to meet my requirements. here is my scenario:
Based on the Node # selection, I'd like to be able to pick the Gain, Threshold or Transmission Intervals and feed the Output into the TCP write VI. For instance, if I select Node 2 and Gain of 5, I'd like to write Output 1 to TCP Write VI.
I tried using the Build Array to build the array of all the Outputs and then indexing the array based on the Label.Text property for each Menu Ring. That didn't work out as I intended. I am sure there is a better way of doing it. I have to use Events since this VI is part of a larger VI and will be event driven. Also, I have several other Menu Rings that I will be adding in addition to Gain, Threshold and Transmission Intervals.
I'd appreciate if you could please suggest any ideas. Thanks and sorry again. The VI is attached.
km
10-19-2006 02:59 PM
10-20-2006 10:33 AM
Thank you for the code. It works great with some modifications. I had a quick question.. how did you create the NewVal as U8? When I tried to recreate your VI, and add more events, my NewVal turns to a Variant type.
Thanks
KM
10-20-2006 10:39 AM
Never mind.. i figured it out. Thank you again.
km