LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple eventCharacter in InstallComCallback in CVI

is there a way to have multiple eventCharacters in InstallComCallback in CVI. I want to trigger the callback if either char A OR char B is received.

thanks
0 Kudos
Message 1 of 5
(3,431 Views)
No, you can only trigger of 1 specific character. What you would have to do is trigger off any character, and then check in the callback if it is one of the characters you are looking for.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 5
(3,431 Views)
I am not sure what is going on in these serial routines, so I ask if invoking the callback on each char is very inefficient.

Also, is it good etiquette or a bad use of resources to thank a responder if the question seems to be answered and the conversation over?

thanks
0 Kudos
Message 3 of 5
(3,431 Views)
If you are really trying to run at close to max rates for the serial bus, checking every character may seem cause efficiency problems that slow you down. At mid-range serial rates (9600-56000 or so), it shouldn't be noticable overhead.

As for ediquette, I'm sure any responder would value hearing they helped with your question. Feel free to post back that way, or just use the ranking system for the response.

Chris
0 Kudos
Message 4 of 5
(3,431 Views)
ok
I have not decided how to handle this yet, but the info is helpful

thanks
0 Kudos
Message 5 of 5
(3,431 Views)