取消
顯示結果 
搜尋替代 
您的意思是: 

event senza control

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

0 積分
1 條訊息(共 11 條)
4,041 檢視

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?

0 積分
2 條訊息(共 11 條)
4,026 檢視

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

下載全部
0 積分
3 條訊息(共 11 條)
4,020 檢視

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?

 

Omar
0 積分
4 條訊息(共 11 條)
4,017 檢視

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
0 積分
5 條訊息(共 11 條)
4,012 檢視

@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?

 

 

Omar
0 積分
6 條訊息(共 11 條)
4,011 檢視


carsac wrote:

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.  

Omar
0 積分
7 條訊息(共 11 條)
4,005 檢視

@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?

 

 

Omar
0 積分
8 條訊息(共 11 條)
4,002 檢視

Ok, the button on the global was only an example.

Real i have a wave like this

 

 Clipboard01.jpg

 

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)



 

0 積分
9 條訊息(共 11 條)
4,000 檢視

Thank you.

Is enough the clock of computer.

 

0 積分
10 條訊息(共 11 條)
3,997 檢視