LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa serial communication in event structure

Hi i try to transmit the string in Serial using Event Structure . 

 

Its wirking Fine .. But (Its in ValueChange Event only ).

 

But i need to use it in Mouse Down Event.

 

If i use Mouse Down event . it takes double press to do operation. !!!!

 

Capture.PNG

 

0 Kudos
Message 1 of 5
(3,505 Views)

Hi saran,

 

why do you need any VISA communication in your event structure?Why not use a queue driven state machine?

Why do you need to use MouseDown events? What's wrong with ValueChange events?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,502 Views)

Hi GerdW,

 

why do you need any VISA communication in your event structure?

 

I need to avoid CPU usage (instead of polling method)

 

Why not use a queue driven state machine?

 

I need to use Event Structure . like data received means . can collect (kind of interrupt  based receiption)

 

Why do you need to use MouseDown events? What's wrong with ValueChange events?

i think u know . whats diffference between Value change Event and Mouse Down (Or Mouse UP) Event 

 

 

0 Kudos
Message 3 of 5
(3,488 Views)

Hi saran,

 

I need to avoid CPU usage (instead of polling method) … I need to use Event Structure

No need to have the VISA communication in your event handling loop. Use a queue driven state machine…

 

i think u know . whats diffference between Value change Event and Mouse Down (Or Mouse UP) Event

Yes, I know.

But why do you need to use MouseDown events in favor of ValueChange?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,477 Views)

Okay Thanks. 

i follow your i dea 

0 Kudos
Message 5 of 5
(3,471 Views)