LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 1 of 11
(3,488 Views)

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 Kudos
Message 2 of 11
(3,473 Views)

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

Download All
0 Kudos
Message 3 of 11
(3,467 Views)

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 Kudos
Message 4 of 11
(3,464 Views)

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 Kudos
Message 5 of 11
(3,459 Views)

@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 Kudos
Message 6 of 11
(3,458 Views)


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 Kudos
Message 7 of 11
(3,452 Views)

@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 Kudos
Message 8 of 11
(3,449 Views)

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 Kudos
Message 9 of 11
(3,447 Views)

Thank you.

Is enough the clock of computer.

 

0 Kudos
Message 10 of 11
(3,444 Views)