Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Alarm

Hello,
 
I would have liked to know how is necessary to make for: that when I read a line X, I have an alarm 10 second before which me informed that a line will be read.
 
The file comprises several lines in column in a point txt (see below)
 
Thank's in advance
 
Julie
0 Kudos
Message 1 of 10
(4,339 Views)
Hi Julie!

Sorry, but i didn't understand your question!?!

How is the alarm generated? Which kind of software and hardware are you using? Explain me about!

Regards Tobias


0 Kudos
Message 2 of 10
(4,318 Views)
I read a textual file. when I read this textual file, I treat the first column and sendings of the data on DAQmx.
 
for the second column, which is a column of time, I read time read current and precede it. I withdraw them and plays my line in real time.
 
here approximately…
 
Now what I would like to do, it is that I can put an alarm X seconds before I read time. to inform that a line will be read.
 
how I could do that? ¨
 
thank you in advance
 
Julie
0 Kudos
Message 3 of 10
(4,316 Views)
Hi July!

I think you have to create the alarm progamatically. If you do the reading for example in a timed loop with a timing of 1s you must send the alarm simply 10 interration steps before. I think there is no other was insted of doing it manualy in any way.

Regards Tobias
0 Kudos
Message 4 of 10
(4,314 Views)
Have you gat a exemple please?
0 Kudos
Message 5 of 10
(4,311 Views)
Hi July!

I don't can't understand why want you to that so i think i can't built you a helpful example.

Regards Tobias
0 Kudos
Message 6 of 10
(4,309 Views)

I very did not understand.

but me what I seek has to make, and I do not know at all how, it is of being able to read a textual file (see herewith) and that X seconds before each reading of the following line, it puts an alarm.

have a small example?

do that function I think with a timer but how?

 

thank you in advance

Julie

0 Kudos
Message 7 of 10
(4,307 Views)
Hi Julie!

To explain about my example, the outer while loop does an interation on every line which is read. in inner loop sends the alarm and after 10 seconds it reads out the next line of the text file and push it into the array.

I think you can solve this problem in thousend ways. But i already doen't understand why you want to get an alram an waht you want to do with it and with the data you read out from the text file. So it isn't easy for me to built you an example which is helpfull for you.

To understand your English isn't easy, so i thin there are already some communication problems. If you also speak German we can try it in that way.

Regards Tobias

0 Kudos
Message 8 of 10
(4,303 Views)
ok   
 
then in fact, the first column of my file is a figure to send on DAQmx (that one of insane).
 
then the second column time and the hour to which the recording of the button which at summer in a hurry.   
 
thus I read this file, I replay this file in real time which it was to record. while making a subtraction enters time read current and the precedent.   
 
Now, I would like to be able to post an alarm which says to me that (10 front second) a line will be read.   
Not to put an alarm and 10 second after I have a time read.   
 
Afflicted but you are my only luck
 
Thank's    Julie
0 Kudos
Message 9 of 10
(4,302 Views)
Hi Julie!

I think you have to start any event 10 seconds before you want to read out the line. So you can programm in any way, by using a sequenz which sends the alarm and wait for 10s and after that it reads out the line from the file. A better was to do it i think you do it in a state machine with a alarm, read and wait case. You can simply use the State Machine Tamplate. Select File->New...->here you shold find a Standart State Machine

Regards Tobias
0 Kudos
Message 10 of 10
(4,294 Views)