LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial port interrupt

hi.
i use write.vi to send some data thro serial port. this vi return the number of write bytes to the send buffer. but i need an interrupt when sending data from buffer is complete.
how can i access the serial port interrupt?
thanks.
0 Kudos
Message 1 of 4
(3,028 Views)
I'm a tad confused. What are you trying to interrupt? Can you provide more detail in terms of your application?
0 Kudos
Message 2 of 4
(3,004 Views)
hi. tanx for your interest.
 
i want to connect my pc to a micro controller (at89c51ed2 atmel product) via serial port.
 
for example when you want to send one byte from uc you write this byte to the buffer and when uc completly sends this byte it sets transmit interrupt flag (TI) and you sure the data is sent.
 
but in labview when i use write.vi when it write one byte in it, it returns '1' in 'the number of write byte' but it is not the time that i recieve data in uc. after 2 or 3 miliseconds i will recieve data in uc. i'm not sure but i think here is a delay.
 
so i think maybe there is an interrupt in labview that i'm  sure the data is sent completly.
 
tanx. ali.
0 Kudos
Message 3 of 4
(2,950 Views)
Ali,

There are quite a few different properties that you can monitor from the Instrument property node found in the Instrument Control>>VISA section of the functions palette. You can monitor many status of the serial port. You can also register for events based on these properties. You can find examples of setting up a serial event in the example finder, the example is a break event but same logic for all of the other events.
-Marshall R
0 Kudos
Message 4 of 4
(2,927 Views)