Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

SMC 100 Code

Hello,

 

So I am a newbie at this and have no clue what I am doing. I have an SMC100 connected to an actuator, I have no idea how to make it run. I downloaded the labview examples from the Newport website, I tried to run them but multiple errors came up, which I don't understand. Also, if the code works, when I run it does that mean it automatically detects the motor and runs it? What is there I need to do? Any guidance, step by step would be super helpful.

 

Also, incase some information is needed, I need to have the motor oscillate from a set distance, to another over a period of time, and have it loop until I stop the code. 

0 Kudos
Message 1 of 5
(2,878 Views)

I have never used a SMC100.  But my first piece of advice would be to use any software supplied by the vendor to verify everything is working properly and wired correctly. Then when everything is working you can start programming with LabVIEW.

 

Also, not all LabVIEW drivers are created equally.  Some work great form the start and some need some tweaks to work how you want them to.

 

0 Kudos
Message 2 of 5
(2,854 Views)

This link has further information regarding this product.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 3 of 5
(2,849 Views)

I hope that newport updated the drivers especially the serial driver was awfull a few years ago. If I find it, a rewrite in visa, I will post it.

 

greetings from the Netherlands
0 Kudos
Message 4 of 5
(2,840 Views)

I saw that the latest driver was implemented via VISA although the init was just by serial port number.

Furthermore it looks improved to when I was playing with it. So I suggest use the drivers from Newport.

You probably downloaded them already and installed them in the LabVIEW instr.lib.

 

So you just want the motor to move (again an d again)  from one set point to another and then back until stopped.

In LabVIEW you need to

1) Init the system (including homing if not already done), set speed and and start moving to the first setpoint.

2) In a while loop observe if the motor is still running and if not move in the other direction.

3) Stop the system and close.

 

I can write a simple example but don't have a test motor to test it. So just ask what you want.

 

I have one more question:

 Did you install the VISA drivers? from NI?

I know it is a USB based serial interface and Win10 is also not ideal but it works more often than not.

 

 

greetings from the Netherlands
0 Kudos
Message 5 of 5
(2,829 Views)