10-27-2011 01:48 AM
Hello Guys,
Can everyone please check attached VI. Its not working properly........ when i select the particular date....it gives data but two alarms are always missing..... sometimes it doesnt give no data @ all. can anyone tell me where do alarms go. Because in alarms & event display I am able to see missing alarms.
10-27-2011 05:39 AM
Hi,
The attached VI is broken. there is an another vi required to run your attached vi. Post that also.
Regards,
Bijay K S
10-27-2011 06:12 AM
Why dont you put the code in the timeout event, it'll be the same and look better.
Since we cant see the query we can only guess, but might it be a case of Greater than instead of Equal or greater that's the reason for missing, say first and last?
/Y
10-29-2011 01:09 AM
hmmm.... no there is no other sub vi with it. In this vi im just reading the data base to extract alarms and events on basis on data selection.
10-29-2011 05:48 AM
yameda i have put it in timeout structure...... bt i didn get ur greater or equal reason........ im just tryin to make simple vi to print alarms on the basis of date selection.... If u can give me better VI. Pls do that. As mine is not working properly.
10-29-2011 06:32 AM
You didn't attach the Alarm & timeout query.vi, so we cannot see what it does, but it's safe to assume that's where the problem is.
/Y
10-29-2011 11:45 AM
@Yamaeda wrote:
You didn't attach the Alarm & timeout query.vi, so we cannot see what it does, but it's safe to assume that's where the problem is.
/Y
Actually the OP is using some tool-kits that are not part of the base package. It open OK for me
@ OP
What are you trying to do? there is no use of the data in the listbox, no use of the output data of the DB Querey, the event struncture with a 250mS timeout AND the 0.1 sec delay is just poor practice (And why not just add a Stop button? what do you want the vi to do? I just can't tell since it is so disconnected (and Documantation would be a good habit to learn)
10-29-2011 11:57 PM
hello Jeff,
I simply want a VI to print old alarms on the basis of date selection. Sometimes it works ok and sometimes some alarms are missing in list box whereas those missing alarms can be seen in the other vi using alarm & event display. I dont know its the databas problem or i have to modify the logic to make it work.
10-29-2011 11:58 PM
ahan.... u dun have the toolkit to open alarm & events query.vi.