Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I need an VI for a very special RS232-communication (own timing)

I need an VI for a very special RS232-communication (own timing)

I will answer to 4 received bytes
Then I will send 5 bytes
The answer-time is above 1ms
I must send the 5 bytes by oneself because I need a inter-byte time above 1-2ms
I will send the bit with 9600bits/s

So my question, have anyone a VI so I can adjust my own timing on the COM-port?
The NI-VIs for COM-communication are not fast enough.
0 Kudos
Message 1 of 3
(3,128 Views)

I have enclosed a simple state machine that does what you asked.  It is an example of a standard LV programming structure.  Review it.  I have found that it is useful for most of my programming tasks. 

Normally, you would make the enum used as the state indicator a defined type.  To do this you would customize the control and select "type def." in the control-type pulldown menu.  Doing this greatly simplifies adding and deleting states.   

jc
Mac 10.4
LV7.1
CLD
0 Kudos
Message 2 of 3
(2,998 Views)
----------
 
I will answer to 4 received bytes
Then I will send 5 bytes
The answer-time is above 1ms
[....]´
 
The NI-VIs for COM-communication are not fast enough.
 
-----------
 
???????
 
I asume you need a max answer time of 1ms.
 
If you use Windows try this: To meet the timing the FIFO-buffer of the serial interface must be deactivated.
The settings of the serial interface have to be configured in the system control.
 
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 3
(2,985 Views)