05-19-2021 11:56 AM - edited 05-19-2021 11:56 AM
Hi,
I have servo drive which I am commanding and controlling using VISA VIs. Currently I am using Ethernet port on the Host PC to establish the communication and it works.
I was wondering if I can use Ethernet port on the sbRIO-9638 and control the drive system. Currently when I attempted to use the same working VI on RT side (dum dum approach) , I got error -1073807343 (VISA: (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.
This is how the resource name is built: (default VISA resource names on RT side are ASLR 1,2,3)
Resultant string is then type-casted- into visa resource.
I am trying to understand how TCP/IP and VISA VIs work at the first place but since I am in a time crunch situation I thought of asking this half baked question, that is it even possible to use Ethernet port on sbRIO-9638 to communicate with an external device? Like a drive system in my case.
If yes, I would appreciate if someone can head me in the right direction for this.
If no, I will resume working on the PC side.
Thanking you for your time.
Solved! Go to Solution.
05-19-2021 12:54 PM
05-19-2021 01:01 PM
Hi GerdW,
No, I have not. But I will try that now.
Thank you.
05-19-2021 01:05 PM
05-19-2021 01:08 PM
Hi,
yes, this should work, but you have to:
- run your VI on the sbRIO
- install the software/driver package VISA with ENET support on the sbRIO
Regards, Jens
05-19-2021 02:53 PM - edited 05-19-2021 02:59 PM
Hi GerdW,
using TCP functions I could use basically the same driver for a stepper motor controller on a cRIO as is used on a Windows computer…
TCP functions did not work for me.
I'm sorry I forgot to mention one key factor 😬 that the drive actually uses Telnet protocol. Similar to Putty, I am not sure what impact that as on application of TCP functions as is.
05-19-2021 02:58 PM
Hi Jens,
- install the software/driver package VISA with ENET support on the sbRIO
Your suggestion did help a bit since now I am not getting error while trying to establish a connection or while sending data but receiving data is not working.
Below is what all drivers I have installed on the sbRIO:
05-19-2021 03:08 PM - edited 05-19-2021 03:12 PM
@XM43 wrote:
Hi Jens,
- install the software/driver package VISA with ENET support on the sbRIO
Your suggestion did help a bit since now I am not getting error while trying to establish a connection or while sending data but receiving data is not working.
Hi,
then you should show us more of your code. Up to now we only now how you build the TCIPIP VISA string, but nothing else. I would suspect some differences for VISA read (perhaps the termination char) because of the different operating systems (sbRIO = Linux).
Regards, Jens
EDIT: Telnet is more or less just an TCP/IP protocol on port 23 and some specific end characters.
If you have an active SSP, you can ask NI about the old Internet toolkit, that has a VI palette for telnet:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6WYSA0
05-19-2021 03:24 PM - edited 05-19-2021 03:29 PM
@JensG69 wrote:
@XM43 wrote:
Hi Jens,
- install the software/driver package VISA with ENET support on the sbRIO
Your suggestion did help a bit since now I am not getting error while trying to establish a connection or while sending data but receiving data is not working.
Hi,
then you should show us more of your code. Up to now we only now how you build the TCIPIP VISA string, but nothing else. I would suspect some differences for VISA read (perhaps the termination char) because of the different operating systems (sbRIO = Linux).
Regards, Jens
EDIT: Telnet is more or less just an TCP/IP protocol on port 23 and some specific end characters.
If you have an active SSP, you can ask NI about the old Internet toolkit, that has a VI palette for telnet:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6WYSA0
Sorry anxiety makes me extra dumb forgot to add the code. I am attaching the code here. It might require a password which I am sending to you in personal mail. Hope you do not mind that.
Edit: GredW, would you be interested in looking into the file? Is it okay if I send you password in a private message.
05-19-2021 05:54 PM
Hi GerdW,
have you tried to use the "default" TCP functions?
Sorry, I need to correct my previous statement. I just now used "default" TCP functions on Windows PC (using LabView) and it worked. Drive responds as expected.
Then I tried the same VI on RT side, it did not give any error when attempted to Connect and Write. But it gives timeout error when attempted to read the data. Similar behavior to my previous VI using VISA resources. I tried using longer timeout periods but the error exists.
I am attaching a VI (no password), I would really appreciate if you could indicate what I might be doing wrong.
Thanking you for your time.