I have got its SDK and the commands I need , but I need to send these commands to the amplifier by UDP packet, I don't know how to make a UDP packet by Labview. I got an example from Crown company' homepage. Could you give me some advices about UDP packet?
The following example assumes you know how to send
UDP data on your particular platform.
Example 1
This
example will attempt to turn on the power on channel 1 of a Crown
PIP-USP3/CN with IQ address 45 at IP address 192.168.1.45.
1. From
the OIF file (PSN100.OIF), or by using the OIF Utility, find the
�Channel 1 Power� object definition and determine the Object ID and
Data Type. In this case, the Object ID is 2000 and the Data Type is
�Logical.�
2. Form the
UDP packet with the following field values:
Field Size (bytes) Value Notes
Delimiter 2 0x4951 ASCII �IQ�
Size 4 22 The size of the entire message
Message ID 2 6 idSetState
Flags 2 256 Protocol version 1
Source IQ Ad 2 64100 Anything between 64000 and 65530
Message Tag 2 0 Not used
Destination IQ Ad 2 45 IQ address of this component
Count 2 1 Only one object in this message
Object ID 2 2000 Object ID of �Channel 1 Power�
Data Length 1 1 The data type ofthis object in the OIF file
is �Logical,� which is one byte in length. We
then derive the value of this field from
the Data Lengths table above.
State Value 1 1 Value of for Boolean �On�
3. Send the
UDP packet to port 5600 at IP address 192.168.1.45.