04-10-2008 07:15 PM
04-11-2008 02:05 AM
04-11-2008 04:23 AM
04-11-2008 04:56 AM
04-11-2008 10:19 AM
04-11-2008 11:21 AM
Hi O. Proulx,
Looks like exactly what I was looking for. I will test it and get back to you soon. Thank you very much.
04-25-2008 01:31 AM
Hi O_proulx,
This is exactly the mechanism I was looking for but the VISA 'wait on event' vi itself seems to be polling the port at a slow rate as I was unable to get samples faster 9 per second. Is the vi polling every 100ms? I have tried several codes ending up with pretty much the same result. The serial device is sending a 5 byte data every 5ms at 19200baud. Attached is my vi.
04-25-2008 08:44 AM - edited 04-25-2008 08:46 AM
04-26-2008 08:36 PM
Hi Dennis,
I am currently testing the vi with hardware sending 5 bytes of data terminated with LF every 5ms for simplicity. But the real hardware will send varying size of bytes at varying rates. Of course I could poll it at the fastest rate. I was hoping for an efficient vi where the processor would be used only when data arrives. The 'visa wait event' vi does that but it does not seem fast enough for data arriving at frequencies higher than 10 Hz. PRETTY SLOW! Can someone who is an expert on 'visa event' VIs confirm this? Am I doing something wrong here. The VI I attached earlier does not really do much else than reading the data as fast as possible and displaying it.
04-26-2008 09:01 PM