06-15-2015 09:51 AM
Hi all,
I have a checkbox list of 3 sensors. I have used the X-Control (for checkbox) found in the following link for my application https://decibel.ni.com/content/docs/DOC-30558. I have problems to achieve the following.
I have attached the code to the post.
Please can anyone suggest how to go about this.
thanks in advance
06-15-2015 10:29 AM
i figured out the first issue. Its working fine.
How do i run the GET event continuously?
06-15-2015 11:14 AM
That's something a TimeOut Event can be used to accomplish. Set the TimeOut to the period you want to have the values update (say, 100 for 10 times/second). Within the Get case, take the three booleans that currently go to the Case Statements and bring them out and put them into Shift Registers. Put the three Case Statements in the TimeOut loop and wire the appropriate Shift Register to their input. Done.
Bob Schor
06-15-2015 12:32 PM
@KevinKM wrote:
I have used the X-Control (for checkbox)
There's your first problem. Okay I'm partially joking. XControls have huge limitations and making them scalable, and modular is very difficult, usually taking way more time to make them and work with them then it is worth.
I'm sure you've gotten used to using the XControl but take a look at this post I did showing how to have similar functionality in a listbox, multicolumn listbox, and tree.
https://decibel.ni.com/content/docs/DOC-42155
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-16-2015 01:56 AM
Hi Bob_Schor,
I tried using the approach you mentioned. I cant run continuously. I am not able to figure out where i am going wrong. I have attached the updated vi.
Hi Hooovahh,
The link you have posted seem to work with LV2013. I am currently using LV 2011. Can you please update it to 2011. Is OpenG necessary for this?
06-16-2015 06:49 AM
For my method to work, you need to maintain the integrity of the data on the Shift Register -- it is serving as a "memory", and if the exit tunnel from the Event structure is "Use Default if Unwired" (which it is in most cases, including the Timeout case), this is equivalent to "Forget what I said". The only time the line should "break" is in the Get Event, when you (re)-set it.
BS
06-16-2015 07:31 AM
Hi BS,
I dont quiet understand what you mean. Can you be more clear about what i am supposed to do to get over this. I dont understand your last sentence.
06-16-2015 07:59 AM
Updated my link to include a 2011 version.
@KevinKM wrote:
Is OpenG necessary for this?
Not if you want to reinvent the wheel.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord