LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DSC TCP IO Server

Hi,
       In LabVIEW8.5 DSC Module, i used to create a TCP IO server using express VI, The thing i cant able to change the IP address even in development mode or in run time. But in case of Serial IO server i can abel to change the com ports, So i am looking forward for this...
 
With Regards,
 vijay.
0 Kudos
Message 1 of 14
(4,899 Views)
Vijay,

I am not sure what you mean by TCP IO server, To my knowledge there is NO TCP IO server. Are you referring to the Modbus IO server? If so, you can click on the attributes button in the configuration dialog box of the express VI and select Modbus ethernet. This will also create a terminal where you can wire an IP address. Please take a look at the attached screenshot for your reference.


Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 14
(4,881 Views)

Hi Eli,

         What you trying to say is correct, it is a modbus IO server, from that i selected Modbus model as Ethernet. After that if try to assign the Ip address (Run time), it is not happening. I can able to assign IP address at design time but it can't be in run time. i dont know what will be the problem..

with regards,

vijay.

0 Kudos
Message 3 of 14
(4,865 Views)
Hi Vijay,

Are you wiring a control to the IP Address terminal? You need to wire a control and type the IP address in the front panel. I would also like to know why are you using an Express VI to create the IO server? Why don't you create it from the project explorer?
Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 14
(4,846 Views)
HI Eli,
          Ya i connected a control to IP address and all requires inputs to Modbus IO server, In this project i like to change the IP address of the IO server according to the device connected to it, so i like to create it dynamically. But i dont know what is the problem,

With regards,
vijay
0 Kudos
Message 5 of 14
(4,831 Views)

Hi Vijay,

One great place to look is at the LabVIEW help. It has a section from creating Modbus I/O servers interactively and programmatically. What do you mean by it doesn't work? Are you getting an error? If so, what error? If you can post a screenshot of the block diagram, it could also help determine what is going on.

National Instruments
Applications Engineer
0 Kudos
Message 6 of 14
(4,795 Views)
Hi,
       Thanks for your reply, for your further clarification i described below,
 It doesn't working when i try to assign an IP address for Modbus IO server and it was not giving any error message. The only thing is i cant assign the IP address only, apart from that other inputs like "Refresh", "Address", "Process name", " IO server name" i'm able to assign it. Here i attached the image of the block diagram.
 
     The result i like to have is " to assign the IP address using control" as shown in block diagram.
 
With regards,
vijay
0 Kudos
Message 7 of 14
(4,787 Views)
Hi,
       Thanks for your reply, for your further clarification i described below,
                            It doesn't working when i try to assign an IP address for Modbus IO server and it was not giving any error message. The only thing is i cant assign the IP address only, apart from that other inputs like "Refresh", "Address", "Process name", " IO server name" i'm able to assign it. Here i attached the image of the block diagram.
 
     The result i like to have is " to assign the IP address using control" as shown in block diagram.
 
With regards,
vijay
0 Kudos
Message 8 of 14
(4,787 Views)

Hi Vijay,

Thanks for the information and the screenshot. I guess I am still not exactly understanding what you mean by it doesn't work during run-time but does work during development time. Do you mean that when you click on the run button, it doesn't work? Can you maybe wire a Error Out cluster to the error out terminal of the Modbus I/O server and run it? This would show us if there was really no error coming out of the express VI.

Also, I think you mentioned earlier that it worked when you have Serial Port selected. Could it possibly be not working with ethernet because your device is connected via serial?

As far as the control with the IP address, you should just be able to go to the front panel and type in the IP address. Is this not what you want to do or do you want it to be like a drop down menu where you select a different IP address depending on your device?

Thanks for the info!

Carla

National Instruments
Applications Engineer
0 Kudos
Message 9 of 14
(4,753 Views)

Hi carla,

       Here i attached the sample VI to get more clear on this, 

          Run time is when i press Run button and development time means, when i double click the express VI  in block diagram, a popup window will come there i can assign the IP address.

         i connect an error cluster to modbus IO server, but no error is displayed.

 The device we are using for ethernet and serial port is differrent, The thing is whenever we assign or change the IP address its not assigning to Modbus IO server itself, then how it can communcate with device.

    To assign a IP address to Modbus IO server (Ethernet), we like to have control in front panel to type IP address.

0 Kudos
Message 10 of 14
(4,726 Views)