11-16-2010 07:15 AM
Hi,
It' s my first question for you.
I think olso is very easy for you, but i don't found any soluction till now.
I need to control whit event structures one remote signal.
On the manual i found istruction for use property node Value (sign).
But in this mode, event is ever open.
Can you help me please.
I use 7.1
Thank
11-16-2010 08:29 AM
I don't understand your question.
First of all, what is "senza"?
What does "But in this mode, even is ever open" mean?
Do you have another VI that is setting the values of the global variables for "evento" and stop?
11-16-2010 08:50 AM
Thank you very much for your Reply.
"Senza" means whitout.
"But in this mode, even is ever open" means: "In this way, the event always occurs"
Sorry for my english
I attach the file to control the event.
Basically I would like to raise the event only when I press the button.
I need to rad time only when the event happens
Thank you again
11-16-2010 08:57 AM
I don't understand your VI.
Reading Evento will cause the value (signaling) to fire every 500 ms (each and every time around your loop) if Evento has changed or not. You are writing Evento to Procedi twice each and every time around your loop.
The 500 ms Time Delay is the limiting factor of your loop, over riding the 10ms timeout of your event structure.
What is it that you are trying to do with Evento and Procdi?
11-16-2010 09:10 AM
Ok,
"Evento" is my external control from a digital input.
Procedi is only for generate event.
"Evento" is a square wave, end i need to read the absolute time at each change of state. (only a value to the status change)Then I thought about the event structure. Do you have any other ideas?.
11-16-2010 09:11 AM
@carsac wrote:
Basically I would like to raise the event only when I press the button.
I need to rad time only when the event happens
Thank you again
Sorry I mis spoke your code will not fire the event.
I assume the button you are talking about is the global var. That is not the correct use of a global for user input.
The event structure needs to be in the VI where the Evento button the the user will click on to work correctly. That VI will then send a message to what ever needs to "Procedi"
Just what action are you trying to do?
11-16-2010 09:27 AM
Ok,
"Evento" is my external control from a digital input.
Procedi is only for generate event.
"Evento" is a square wave, end i need to read the absolute time at each change of state. (only a value to the status change)Then I thought about the event structure. Do you have any other ideas?.
Thank you again
Without know more about where Evento is coming from (what type of IO card) you will have to poll Evento (read), keeping the state in a shift reg and then testing to see if it has changed from the last time.
An event structure will not do what I think you want to do for this case.
11-16-2010 09:32 AM
@carsac wrote:
"Evento" is a square wave, end i need to read the absolute time at each change of state. (only a value to the status change)
Absolute time - If you system is not a real time platform, you will not get very accurate absolute time on a Windows system.
If you need accurate timing, you will need to do it at the hardware level. Does your IO device have clocks on board?
11-16-2010 09:40 AM
Ok, the button on the global was only an example.
Real i have a wave like this
The signal is come from Measurement computing USB 3102 digital input.
I need to read a value of absolute time when change state.
This is inside on a big loop for data acquisition.
The times I need to calculate the exact time needed for a complete cycle (from t1 to t3)
11-16-2010 09:44 AM
Thank you.
Is enough the clock of computer.