LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Labview to control Crown amplifier through network

I want to use Labview to control the amplifier through network, the amplifier is Crown I-T4000.  The Crown company provide a special software named IQwic, users can use this software to control the crown products through network. But how can I make a program by Labview, so I can use it to control the amplifier instead of the IQwic?
Firstly, I want to use ActiveX  to call IQwic in Labview, but  IQwic doesn't support ActiveX.
Secondly, I find the DLL file in IQwic software, so  "Call Library  Function Node " is used, but  I don't know how the functions in this DLL file work. Everytime the program has error report.
Lastly, there are some examples in the Crown company homepage, which use UDP/IQ network control protocol to send special UDP packet to the amplifier's IP address. But the UDP packet in these examples are so strange,  and I don't know how to  make a UDP packet in Labview.

Your advices and suggestions are expected sincerely!!!
0 Kudos
Message 1 of 4
(3,181 Views)
I don't have access to the software, but if you have found information about the structure of the UDP packet, then that is your information to control the insturment.  Look in the LabVIEW examples for UDP.  There should be several examples.
0 Kudos
Message 2 of 4
(3,162 Views)
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.
 
0 Kudos
Message 3 of 4
(3,159 Views)
Start by looking at the LabVIEW examples for UDP.  They will tell you how to send a UDP message.  The UDP write has a string input.  So, take the info from #2 and build the string command.
0 Kudos
Message 4 of 4
(3,157 Views)