12-20-2007 02:56 AM
12-20-2007 08:34 AM
Mal,
It could probably be done by using one of the RS232 control lines and using a property node to toggle its value. The problem will be that the output waveform will not be very accurate and frequency will vary a bunch. It's probably not the best solution. Is there a particular reason you want to use the serial port? Have you considered the parallel port? It can be controled via NI-VISA as well.
12-20-2007 06:58 PM
12-21-2007 04:43 AM
12-27-2007 09:06 AM
Mal,
You could also output a hex value out of the serial port (0x55). The binary pattern would be 0101 0101, so it would generate a square wave including start and stop bits (if they are each set to 1). The frequency will be equal to half the baud rate. The only problem would be the space between bytes. All serial drivers behave a little differently. Depending on the system, drivers, and port, the amount of space between bytes could vary.
To minimize the amount of space between bytes:
Create an array of U8s with 0x55 as the value. Use the Byte Array to String vi to send this string of 0x55 data to the VISA vi (the VISA Write only accepts string data, so you must convert it). This allows you to write multiple 0x55s out of the serial port in a row.
I hope this helps,
Steven T.
12-29-2007 07:30 AM
12-30-2007 10:54 AM