08-17-2021 12:02 PM
Hello Everyone,
I have motorized stages from PI (Physik Instrumente) LP. These motorized stages work very well when I connect them into PC by Ethernet cables. We're planning to use sbrio RT target to connect these stages by using two Ethernet ports from sbrio. I can see the IP address of the stages inside MAX. I'm trying to connect these stages into sbrio but the code gave me error said the controllers are not found.
The LV code is provided by PI and it works very well if I connect the stages to host PC.
Do any one has same system or can help with this issue?
08-18-2021 08:02 PM
Hi,
Let's break down your question into a few parts.
1. "I can see the IP address of the stages inside MAX." That's great, that usually means that your PC can see the IP of the stages. But that doesn't necessarily mean your sbRIO can see the stages. You should try a ping command from sbRIO to see if you can ping the stages. You can refer to this post: https://forums.ni.com/t5/LabVIEW/How-to-Ping-a-network-device-from-RT-controller/td-p/1535420
2. Next, the LV code from PI. Can you move the LV code to sbRIO and execute from there? Chances are there might be some windows DLLs that don't work on the sbRIO. If it's only network commands (i.e. TCP) then there's a chance that it might work.
More often than not, stage vendors provide LabVIEW examples, but they haven't taken into consideration NI real-time targets such as sbRIO or CompactRIO targets. My company makes a motion controller that is compatible with NI sbRIO, you can check it out here: https://tenet-tech.co/geco-motion.html. If controlling the stage from sbRIO is a hard requirement for you, this could be a possible solution. Feel free to PM me for details.
08-20-2021 02:59 PM
Thank you for your reply!
1- Actually when I said "I can see the IP address of the stages inside MAX." I meant I can see them under sbrio RT target not under PC host. I think this is good think. Is your point #1 still valid or not?
I tried to ping the stages by VI provided in the post you mentioned but game me error" Unsupported OS".
2- I already working on the code under RT target.
Please see the pictures I uploaded for more details about my problem. PI-connection1 picture shows the connection setting inside PI VI.
Please if you have any further help I appreciate.
Thank you
08-21-2021 11:46 AM
Looks like the IP of the stages and the IP of the sbRIO-9609 are configured, which is good. But I still want to try to get the ping working, if I were you. Search around the forum for "sbRIO ping" or "Labview real-time ping", there might be other examples. My guess is that your program should work, if the network connections are correct and pingable.
08-24-2021 03:19 PM
Thank you!
I did my search and found the following VI that should be used to ping.
I made a project like a picture and used the IP address for the stage. The program found the connection. Is that correct to ping?