Welcome, Guest
Username: Password: Remember me
Messages posted to this category need to be reviewed by the moderator before it gets posted.
  • Page:
  • 1
  • 2

TOPIC: Control a smarto motor, using labview

Control a smarto motor, using labview 6 years 7 months ago #291

  • davcast
  • davcast's Avatar
  • OFFLINE
  • Posts: 11
  • Karma: 0
Hi.

I'd like to know how to control a smart using labview by de serial port. If one of all you have been working this way, please help me. I'd like how to conect and everithing.

I'll wait for your ansmwer.
The administrator has disabled public write access.

Re: Control a smartmotor, using labview 6 years 7 months ago #292

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
You have two choices with Labview.
1. You can load our IntegMotorInterface.dll into labview and call routines from the .dll
2. You can use a Generic ASCII driver in Labview to send commands such as...

EIGN(W,0)
ZS
MP
VT=100000
ADT=100
PT=2000
G
The administrator has disabled public write access.
The following user(s) said Thank You: davcast

Re: Control a smartmotor, using labview 6 years 7 months ago #293

  • davcast
  • davcast's Avatar
  • OFFLINE
  • Posts: 11
  • Karma: 0
Hi, thanks for the answer.
Now, i have another dude. How can i load the IntegMotorInterface.dll into labview?

Thanks for your time!!
The administrator has disabled public write access.

Re: Control a smartmotor, using labview 6 years 7 months ago #294

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
Attached is a link from National Instruments....

digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33
The administrator has disabled public write access.

Re: Control a smarto motor, using labview 6 years 5 months ago #353

when you say using generic ascii to communicate you mean the Write Visa? I tried doing so, and it gives me an error.

as far as loading the dll, I went to Tools>Import>Shared Libarary
it opens a window that has only one option enabled (create VIs for a shared library)
when I click on Next it asks for the .dll and .h file
I found the dll file in windows/system32 and the3 h file in programfiles/animatics/
i tried UseEngineDlg.h and SMIDefs.h

for both of the h files when i click Next twice i get an error:
The shared library contains 4 function(s). But no function is found and recognized in the header file

DllCanUploadNow
DllGetClassObject
DllRegisterServer
Dllunregisterserver

any help?
The administrator has disabled public write access.

Re: Control a smarto motor, using labview 6 years 5 months ago #364

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
I am sorry to say I don't have a copy of Labview to test this for you.

When the Animatics SMI2 software is installed, it creates a subdirectory under Program Files.
The path on my system is Program Files.. Animatics.. SMIEngine... Samples.
In the sample subdirectory, I have IntegMotorInterface.h and IntegMotorInterface.tlb. The IntegMotorInterface.dll will have been installed in your Windows... Systems subdirectories.

I would suggest using those when LabView asks for the .dll and the .h files.
Attachments:
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: hsummer, csearcy
Time to create page: 0.281 seconds