Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5672

RS-232-C Control for Stepper Motor on Mac OS

$
0
0

Hi guys,

I'm an undergraduate student and I've been struggling with this Klinger Motor Controller. The relevant pages from the manual are page 35 on RS-232-C communication.

 

I'm new to Labview and just this stuff in general. I connected the motor controller to my Mac and MAX saw that there was something connected, however it didn't give me as many options as are shown in many of the tutorials. The only thing I was able to do was rename the connection and open up VisaIC. 

 

I tried sending commands through the I/O panel, but though it was saying commands were being sent, the motor controller wasn't doing anything and I couldn't read any data either (it times out).

 

I set the motor controller to 9600 baud rate, no parity checking, 1 stop bit, and an 8 bit serial word.

 

When trying to work with NI-VISAIC it didn't show anywhere where I could enter these parameters to make sure I had a good connection.

 

I also know really know whether it may be not working because of the syntax I am sending commands in. It should be able to read ASCII commands. It mentions that "all commands should be terminated by a carriage return", and "line feeds must be suppressed". I saw an option in VISA that mentioned something like that but when I tried it, no luck.

 

I've tried all combinations of commands including:

G

G\n

G\r

N 1000

N 1000\r

N 1000\n

N\s1000\r, etc.

 

They send but nothing happens. I have no idea what to do next. My advisor is getting impatient because I've been trying to interface with this motor controller for almost a month now, and it wasn't supposed to take this long...


Viewing all articles
Browse latest Browse all 5672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>