12-11-2009 11:16 AM
12-14-2009 09:38 AM
Based on this document http://zone.ni.com/reference/en-XX/help/370051K-01/cvi/cviautomation_controller_advanced_o/ CVI should only generate a callback:
For each event object you select, the wizard generates a set of functions you can use to register callbacks for each event. LabWindows/CVI calls the callbacks when the server generates the events.
Can you post a link to the exact software you are installing and attempting to call through CVI ?
What version of CVI are you using?
12-14-2009 09:58 AM
Richard,
There's a download link to the exe here: http://www.machsupport.com/downloads.php. I don't know if you can run it as an eval copy or not. If not, I can ask their tech support people for permission to temporarily give you a copy of our license file.
I understand that CVI will create callbacks or events, but the functions I need to call are not events. They are asynchronous calls generated by my program. According to Mach3's support, in VS these functions show up as callable methods, so I don't understand why they are mapped as callbacks in CVI.
Tony
12-16-2009 04:17 PM
12-17-2009 04:42 PM - edited 12-17-2009 04:42 PM
TonyG,
I receive an error when trying to generate a controller... I downloaded an installed the Mach3 R3.042.032 and then restarted my computer. Is there anything else that must be done?
12-17-2009 05:32 PM
I have an additional entry in my list named Mach4 that has the interfaces in it. I'm not sure why I see that and you don't. I'll ask their tech support about it.
Tony
12-18-2009 11:04 AM
Richard,
The Mach supprto guy was stumped. However, he did give me permission to send you the version of the program I installed, which is r3.042.020. It might give you different behavior either because it's a different version or becuase it's a licensed copy. The is 26MB. Can you provide an FTP location to upload it to?
Tony
12-18-2009 12:48 PM
Tony,
You can put it on ftp://ftp.ni.com/incoming please zip it and name the zip file 1463367.zip and post back here when it is on the site. I am using Windows XP service pack 3 and CVI 9.0.
12-18-2009 01:21 PM
The file is uploaded. Hopefully this will work better.
Tony
12-22-2009 09:48 AM
After installing the software i was able to generate a controller, and for the "Code" function i generated a callback called Mach4_IMyScriptObjectRetOnCode. Have you been able to call this ActiveX server in another language such as C#? If so can you provide a very simple example of how to do this?
CVI generates functions from the wizard automatically based on their types and something in the Mach4 library is either being treated as an event callback or is not being recognized properly.