sreedevib Posted September 29, 2009 Share Posted September 29, 2009 Hi, I want to set the limits on the graph and alert user if data is out side of the limits. How to do this using daqfactory? Thank you for your help. Sri Link to comment Share on other sites More sharing options...
AzeoTech Posted September 29, 2009 Share Posted September 29, 2009 What you are describing is called Alarming and is independent of the graph component. There are a number of ways to do this depending on what you mean by "alert the user". Please specify. Link to comment Share on other sites More sharing options...
sreedevib Posted September 29, 2009 Author Share Posted September 29, 2009 I need to allow user to enter limits for a channel. Draw lines on the graph with the user entered values. If the channel data is going outside of those lines, alaram user. Thank you Link to comment Share on other sites More sharing options...
AzeoTech Posted September 29, 2009 Share Posted September 29, 2009 Alarm user how? Flash the screen? Play a sound? Send an email? Dial their cell phone? Link to comment Share on other sites More sharing options...
sreedevib Posted September 29, 2009 Author Share Posted September 29, 2009 Flash the screen with play a sound. Thank you Link to comment Share on other sites More sharing options...
AzeoTech Posted September 30, 2009 Share Posted September 30, 2009 Use the event of the desired alarm channel. Lets say the channel is just called "input" and the threshold is 5: if (input[0] > 5) ... play sound endif To play a sound, use the system.sound() function (which takes a path to a .wav file) To flash the screen, use the symbol control with a background color of red or something, stretch it to the entire size of the page, then for Visibility, put "input[0] > 5" and for blink put "input[0] > 5". This is just one of many ways to do this. Link to comment Share on other sites More sharing options...
sreedevib Posted September 30, 2009 Author Share Posted September 30, 2009 How to take the user input from key board for lower and upper limits of a channel? These limits will vary time to time. User needs to enter the limits whenever required. When the user enters the values, is it possible to draw lines on the channel graph with LL & UL values? Thank you. Link to comment Share on other sites More sharing options...
AzeoTech Posted September 30, 2009 Share Posted September 30, 2009 Create global variables for the upper and lower limits: global ll = -5 global ul = 5 then use those variables in the comparison expression in place of the number. To edit these, use a variable value component with the Set To action on these variables. To draw a line at these values on a graph, create two line annotations with the variable names as the expression. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.