Datasocket ActiveX problem
I have an issue with the standard Datasocket VI's that come with Labview 8.2.1. Datasocket has an ActiveX component which should theoretically act the same as the canned VI's. I wanted to test the ActiveX functionality so that a fellow programmer could pass/receive data from my Labview program into his Visual C++ program. I will use the Datasocket Read/Write vi's and he could use the ActiveX components in C++.
I'm using the 'DS 3D Graph Reader.vi' and 'DS 3D Graph Writer.vi' from the examples as the base to test out ActiveX. I spent most of a day trying to get the reader portion to read the standard output of the Writer. I kept ending up with an array of the correct size with all zeros instead of the data. If I switched the reader back to the canned vi, it worked fine. No matter how I configured the ActiveX settings, I could not read the data.
Then I modified the Writer to use ActiveX to write data to the server instead of the Datasocket Write vi. Once I did this, I can read the data using either ActiveX or the standard Datasocket Read vi.
What I can't figure out is why the write portion makes a difference. This is my first time using Datasocket, but not ActiveX, which I've used to communicate with Windows components and devices many times in the past. The documentation included with the Datasocket ActiveX is pretty sketchy and missing several settings which are available (the Sync settings and the Buffered settings).
I've attached the vi's I modified to try out. Make sure to start the Writer first.
Thanks in advance!
Tom
Attachments:
DS 3D Graph Reader.vi 54 KB
DS 3D Graph Writer.vi 49 KB
Thanks, guys.
No joy, unfortunately.
I tried 'Datasocket Open' outside the loop and then closing it when quitting, but I'm still having the same issue: an ActiveX read cannot see the data, but a DS Read can.
I've attached the new 'DS 3D Graph Writer' vi and the 2 subvi's, though Labview should have been able to find them - they're from the standard example vi.
I don't see how to configure the Datasocket Server. Diagnostics lets me see the 3dgraph folder with the 'data' item in it, but not modify it's characteristics in any way.
Any other suggestions?
Attachments:
DS 3D Graph Writer.vi 52 KB
create waveform.vi 30 KB
Launch DS Server if Local URL.vi 30 KB
Similar Messages
-
ActiveX problems after upgrading to 7.0
I upgraded from 6.1 to 7.0. I kept the 6.1 version intact. Afterwards the ActiveX functions did not work in either version. For example, the 3D plots within Labview did not work. I had to uninstall 7.0 and reinstall 6.1 for it all to work again. Any comments?
Greg McKaskle wrote in message news:<[email protected]>...
> > I upgraded from 6.1 to 7.0. I kept the 6.1 version intact.
> > Afterwards the ActiveX functions did not work in either version. For
> > example, the 3D plots within Labview did not work. I had to uninstall
> > 7.0 and reinstall 6.1 for it all to work again. Any comments?
>
> I suspect that this isn't a general ActiveX problem, but a problem with
> the specific 3D graph control. I don't really know why that happened,
> but the first thing to do would be to install 7.0, on a safe machine and
> see if other ActiveX, such as to Excel, or dropping the calendar control
> works or not. You might then want to search the support site and see if
> this is alr
eady known, otherwise contact them and see if they can help
> you debug it.
>
> Greg McKaskle
Here is a simple test I would do if I fall into such a problem.
I would install LabVIEW Express(7.0)on a windows 2000 machine (a clean
machine would be prefereable).
Then drop a automation open function. Create a Control and then select
an ActiveX class to the Microsoft Common Dialog Control Version 1.0
type library.
Select the CommonDialog (MSComDilg.CommonDialog.1) object.
You can select any of the objects depending on the type library
choosen.
Now go back to the diagram and drop the property node. Connect the
property node and take care the error handling. Now by selecting
different properties, one ata time you can check if there is any error
returned.
Repeat the same procedure with LV 6.1.
If there is an error returned in one property when using LabVIEw
Express but it works fine with LV6.1, then probably this is to be
reported to an Application engineer of NI.
Good luck -
ActiveX problems with 3.0.F.2 (fwd)
This is the message I sent to tech support. Has anyone else seen this
type of thing? Any suggestions (even half-baked) would be appreciated.
-- Adam
---------- Forwarded message ----------
Date: Tue, 17 Mar 1998 13:48:17 -0600 (CST)
From: Adam Mckee <[email protected]>
To: [email protected]
Subject: ActiveX problems
Product: Forte
Version of Forte: 3.0.F.2
Server OS: HPUX
Client OS: NT/Win 95
DBMS: Oracle
Reproducible(?): Yes
Brief description of issue:
I have experienced problems using ActiveX controls. I have tried several
controls, including:
o Microsoft Forms 2.0 SpinButton
o Microsoft Forms 2.0 CheckBox
o Microsoft Forms 2.0 EditBox
o AddSoft Gantt/OCX
o Sheridan MonthView
o Sheridan DayView
o Sheridan DateCombo
o Microsoft Calendar Control
(specifically mentioned in a Forte technote)
I have experienced problems with all of these controls. With the Sheridan
DateCombo, the Forte environment crashes when I attempt to drop the
control into a form using the "Insert Control..." button. Before the
environment crashes, I get a series of informational and error dialog
boxes as follows:
o error: unexpected exception -10737415717
o error: The Error Manager stack is empty (repeated 3 times)
o information: the workspace is now read-only because the
repository is disabled.
o error: Exception escaped from terminating task CW.Display
o ERROR: TMgr.Terminate: fatal error terminated partition
With all the other controls I tried, the ActiveX support appears to work
properly until I attempt to bind an instance of the olegen-generated
class to the control itself in the window's Init() method:
--- MyWindowClass.Init() ----
super.Init();
myActiveXControl = new();
After this has been done, the Forte environment may "hang" when I interact
with the control at run-time. For example, each time a generate a mouse
event inside the control, I risk hanging the Forte environment. I might
be able to interact with the control 50 times before the environment
hangs, or it might hang after a single mouse click. Until the crash/hang
occurs, the ActiveX support appears to work properly: I am able to trap
mouse events, and interact with the control using the provided interface.
Any help or advice you can offer would be appreciated. I would be happy
to provide any additional information you may require.
-- Adam McKeeI don’t recall any problems importing to “selected item’ which I always use so I define where it goes and what it’s called.
Do you have Aperture’s Activity Window open so you can see where it is hanging up? Is it just busy generating Previews etc.? I know it sounds more serious than just ‘busy’ but would be interesting to know what it’s doing then.
After these problems, assuming that previews and thumbnails are generated correctly, it may be a good precaution to restart Aperture while holding down the OPTION and COMMAND keys so you can Repair Permissions or Repair the database. Even rebuilding the database is fairly quick if those first two options are ineffective. -
Documentation for DataSocket ActiveX control
I'm using the DataSocket ActiveX control in a VB6 application. I need to obtain *ALL* data values and not only the last published on DataSocket server.
I know I have to use "buffered" connection, but I wasn't able to find any documentation about this issue in the online help, samples and so on.
While browsing properties, methods and enums exposed by the control, I find many undocumented items, and their names suggest they may be useful for my application (i.e.: method SyncConnectTo).
Any help will be appreciated.
T.I.A.
CarloX
Carlo A.
MegarisHello
I already know about that (brief) document, and I already experimented on DS server side buffering.
This is not enough for a reliable communication between my client and server applications.
So I am forced to use the undocumented client-side buffering features of DS ActiveX.
I used the cwdsReadBufferedAutoUpdate AccessMode parameter for method ConnectTo and the ClientBufferMaxPackets property.
As stated in my previous message, I also found the following interesting methods:
SyncConnect
SyncConnectTo
SyncDisconnect
SyncRead
SyncWrite
Are all these items unsupported, undocumented or whatever ?
Or discovering the pu
rpose and the right way to use them is left as an exercise for the (busy) programmer ?
There are no references to all the bold keywords in all NI docs in my knowledge, on paper, CDs and even online on this website.
These will be the first ones
Regards
CarloX
Carlo A.
Megaris -
Hi all,
When I use the new condensed "DataSocket Read" vi in Labview 6i (which is
unfortunately not editable and is supposed to replace old vi's like "open
connection", "update", "close" and so on) a single time to read automat
words through an OPC server, the vi returns "zeros" all the way. The only
solution I found to read the right datas is to place the "DataSocket Read"
in a "While Loop" which loops until datas are different from zeros, which
is very inconvenient and time consuming. I tried diffferent settings with
"DataSocket Read" (wait for update, timeout) but the problem remains.
Have you also faced the same problem ? Is there a solution ? Thanks for your
assistance.
Gaël RENEVIER
Responsable Maintenance & Développement
Tél : 04 74 82 20 08
Fax : 04 74 82 24 92
e-mail : [email protected]This is a problem with the 6i data socket routines ... use the old routines
from the data socket examples (with the open,update, close drivers), and it
works fine.
Dave Gianetto
http://www.gianetto.org
> From: [email protected]
> Organization: UUNET
> Newsgroups: comp.lang.labview
> Date: Tue, 21 Nov 2000 16:05:38 +0100
> Subject: DataSocket Read problem
>
> Hi all,
>
> When I use the new condensed "DataSocket Read" vi in Labview 6i (which is
> unfortunately not editable and is supposed to replace old vi's like "open
> connection", "update", "close" and so on) a single time to read automat
> words through an OPC server, the vi returns "zeros" all the way. The only
> solution I found to read the right datas is to place the "DataSocket Read"
> in a "W
hile Loop" which loops until datas are different from zeros, which
> is very inconvenient and time consuming. I tried diffferent settings with
> "DataSocket Read" (wait for update, timeout) but the problem remains.
>
> Have you also faced the same problem ? Is there a solution ? Thanks for your
> assistance.
>
>
> Gaël RENEVIER
> Responsable Maintenance & Développement
> Tél : 04 74 82 20 08
> Fax : 04 74 82 24 92
> e-mail : [email protected]
>
> -
ActiveX problem in windows 7 64 bit version...
I have x64 bit windows 7 version operating system i used my all report as printmode="Activex"
1. http://i41.tinypic.com/k9861g.png
Check this URL.
I just want to know after installed the printconrol.dll, how the printcontrol.dll get registered / also in register
entry.
Let me know the procedure...
2.i hAVE INSTALLED THIS Crystal Reports Basic for Visual Studio 2008 x64 Redistributable Package (64 bit) IN MY
WINDOWS 7 64 BIT VERSION ON MY LOCAL PC WHICH HAS NO INTERNET ACCESSS
FROM THIS LINK
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap
(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes
%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636
453735364436323635373233443330333033303331333633343335333033303336%7D.do
YOU HAVE SHOWN HOW TO REGSITER FOR vs2010..
regsvr32 "%programfiles(x86)%SAP BusinessObjectsCrystal Reports for .NET Framework 4.0CommonCrystal Reports
2011crystalreportviewersActiveXControls
BUT IM NOT FINDING THE PATH LIKE the above TO REGISTER MY PRINTCONTROL.DLL IN WIN7 64BIT AFTER INSTALLING Crystal
Reports Basic for Visual Studio 2008 x64 Redistributable Package (64 bit)
so would you please tell me how the above location comes for you..? to REGISTER DLL for us we are not getting the
location in my pc.
3. I COPIED PRINCONTROLL.DLL IN D: drive of win 7 64bit THEN I USED rEGSVR32 D:PRINTCONTROL.DLL IT SHOW DLL
REGSITER succesfully on clicking print button in CR toolbar the print dilogues comes get disapper?let me know whats
the problem. I applied the same pocedure on windows xp machine it works fine..
4. I have printcontrol.dll in downloaded prgram file. I just want to register the dll, it is no registering, please
let me know how to register.
thanks lot to Ludek Uher and Don Williams hows support are very good.. I hope i will get all the aboves in details1) After Installing this software https://smpdl.sap-ag.de/~sapidp/012002523100009351332008E/CRBasicVS2008_redist_x64.zip what i have to do let me know other steps and will active x print control works or i have to do some more things...
2) i asked you above if i have internet in win 7 64 bit pc on clicking print button it shows me this dialogue
http://i41.tinypic.com/k9861g.png
after clicking Install Printcontrol.dll it goes to C:\Windows\Downloaded Program Files so how it register i want to know..?
2 point is my important want....
Thanks for your quick reply
Edited by: Priya_here on Nov 16, 2011 6:14 PM -
LabVIEW, LabJack, activex problem
Hello,
I have a problem
running a LabJack vi with LabVIEW 7.1 but only in one of the user accounts on my
computer. I have a computer that has two
user accounts. There is no problem with account “A”, but when I log into
account “B” and load the LabJack vi I get the message “Control can not be
loaded” on the Front Panel. The name of
the LabJack vi is AISample.vi. I believe
this is an Activex vi and in the system32 folder there is a file called
ljackuwx.ocx. I have run “regsvr32
ljackuwx.oxc” but that did not fix the problem. Please let me know how to fix this problem.
Thank You,
GarySee the following:
http://www.labjack.com/forums/index.php?showtopic=2669 -
hello
I'm afraid there was huge amount of such questions, but having spent half an hour in Google, I didn't find the real solution
so, that's my problem:
having tried to get "Replace inline" script from there http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1046463# , I extracted the archive into "where-I-should" folder, went to window>automation>etc., clicked on the script and got a message "ActiveX component can't create object (run-time error 429)"
as I think, I need to get this script registered, but I never did that kind of things in InD, just .dll's (not .VPB)
can anybody help?
thanks in advance
P.S. I use InD CS3, the way to the folder is C:\Program Files\Adobe\Adobe InDesign CS3\Scripts\Scripts Panel\Version 4.0 Scriptshi
you can't use it with ID CS3 because it is only for ID 2.0.2
robin
www.adobescripts.com -
RT 6.03 and ActiveX problem
If a have installed RT 6.03 the ActiveX does not work (I select activeX
in a container but I dont see anything on it). If remove RT the ActiveX work
fine.
I need solution.
Thanks.I have install the DAQ 6.9.1 SP2 and my problem fixed.
Thanks.
"Lab Viewer" wrote in message
news:506500000005000000BD6A0000-1016899309000@exchange.ni.com...
> As RT FAQ states (
> href="http://amp.ni.com/niwc/labviewrt/lvrt_faq.jsp?node=2381#8">What
> are the programming differe...
), ActiveX is not supported (being a Windows-specific
> functionality).
>
> Hope this helps -
Hello All,
I think every body knew that If I move spreadsheet ActiveX control from one version to other. It will not work and we need to reconnect.
I built an application, which can be used in several countries and mostly I am facing the problem with ActiveX. Because of version change.
Now even we are thinking not to give Microsoft office to the customer to reduce the cost of machine.
So is there any LabVIEW internal tool, which can used to design as Excel and use. It is so important that not to use any ActiveX control of Microsoft.
Please let me know, if any body knows,
Thanks,LVTestek wrote:
Hello All,
I think every body knew that If I move spreadsheet ActiveX control from one version to other. It will not work and we need to reconnect.
I'm not sure that everybody knows that, and I'm not quite sure I actually understand what you're saying here. Yes, if the ActiveX interface changes then you need to update the code to reflect the API change. I don't understand what you mean by "reconnect".
Now even we are thinking not to give Microsoft office to the customer to reduce the cost of machine.
So is there any LabVIEW internal tool, which can used to design as Excel and use. It is so important that not to use any ActiveX control of Microsoft.
The only thing that NI has available is the Report Generation Toolkit, but that requires Office in order to work. I do recall people asking about an interface to Open Office, but I don't recall how far any kind of development has gone related to that. You can do a search for "Open Office" and see what's available. What are you trying to create? Are you trying to create spiffy reports, or just saving data? If it's the latter you can probably get away with simply writing text files using the Write to Spreadsheet File VI or the Write to Measurement File VI. -
Hello
I have a problem with Datasocket, when I try to read from the "NI OPC Servers", I can't. But, if I execute the program with the option "Highlight Execution", there are not problems. I've already tried to put a "Wait" between readings, but the problem doesn't disappear.
Thanks for your comments
Solved!
Go to Solution.Thanks NitinD and billko for your answers.
I've already solve the problem, i'll try to explain it (excuse my English please).
Before, I put "DataSocket Open", "DataSocket Read" and "DataSocket Close" in the same loop iteration, without time between open the connection and read from the OPC Server. This made than the result of the reading was '0' all the time. Here we can see a screenshot:
To solve this, I've separated the "DataSocket Open", the "DataSocket Read" and the "DataSocket Close" in three diferents loops, and I've added a wait in the first loop:
No problems now, I think there wasn't enough time between open the connection and read from the OPC Server.
Regards -
ActiveX problems???
Hi all,
My mom just got a mac recently and she hates it. She states "it's not for business applications" and thinks the OSX versions of Office are a joke. Anyway, my problem is that she needs to access a remote desktop terminal via internet explorer for her work and she needs ActiveX to do so (which to my knowledge isn't available to Mac users). Does anyone know a workaround?"...she needs to access a remote desktop terminal via internet explorer..."
Sounds to me like she's locked in to Windows. Install Windows on the Mac using Boot Camp.
Unfortunately ActiveX is not an open standard/protocol, but one that requires Internet Explorer. Her complaint is really with Microsoft, but good luck convincing her of that. -
Re: ActiveX problems with 3.0.F.2 (fwd)
Forte has very specific requirements for ActiveX controls. We found out the
hard way that Forte does not support the use of all ActiveX controls.
Here is some information I received from Mark Cooper at Forte:
With a bit more digging I found that ActiveX controls are required to adhere
to two restrictions in the Forte environment. ActiveX controls are required
to provide a single interface (and cannot include irrelevant nested
interfaces) and must implement Apartment model threading (technote 11344).
You can use the OLE-Com Object Viewer to determine whether a control
fulfills both of these requirements.
Hope this helps. As I understand it, a future release (3G or 4???) will have
better support of ActiveX controls. But in the mean time you are stuck to
these limitations.
Regards,
Jason Carpenter
CSC Consulting & Systems Integration
[email protected]
3811 Turtle Creek Blvd.
20th Floor
Dallas, TX 75219
214.520.0555Forte has very specific requirements for ActiveX controls. We found out the
hard way that Forte does not support the use of all ActiveX controls.
Here is some information I received from Mark Cooper at Forte:
With a bit more digging I found that ActiveX controls are required to adhere
to two restrictions in the Forte environment. ActiveX controls are required
to provide a single interface (and cannot include irrelevant nested
interfaces) and must implement Apartment model threading (technote 11344).
You can use the OLE-Com Object Viewer to determine whether a control
fulfills both of these requirements.
Hope this helps. As I understand it, a future release (3G or 4???) will have
better support of ActiveX controls. But in the mean time you are stuck to
these limitations.
Regards,
Jason Carpenter
CSC Consulting & Systems Integration
[email protected]
3811 Turtle Creek Blvd.
20th Floor
Dallas, TX 75219
214.520.0555 -
Hi, all
previously I asked a question about "control can not be loaded" problem with MS treeview. by registering mscomctl.ocx, this problem's solved. But now I met another problem:
I made an executable with installer, and installed it on another clean computer. Even I did the registering(that computer has the ocx installed), the control still can not be loaded. I did the registering before the installation and restarted the computer before I ran the program.
Anyone can tell me what I should do?
Thanks a lot.Hi,
You also have to register nicont.dll and nicontdt.dll. (At least, this
helped at my system.) This should be done by the installer, but it is not.
It is best to make an .exe from a vi that registers these dll's. Then you
can execute this exe automatically after the installer is finished.
Regards,
Wiebe.
"inhaler" wrote in message
news:[email protected]..
> Hi, all
>
> previously I asked a question about "control can not be loaded"
> problem with MS treeview. by registering mscomctl.ocx, this problem's
> solved. But now I met another problem:
>
> I made an executable with installer, and installed it on another clean
> computer. Even I did the registering(that computer has the ocx
> installed), the cont
rol still can not be loaded. I did the registering
> before the installation and restarted the computer before I ran the
> program.
>
> Anyone can tell me what I should do?
>
> Thanks a lot. -
When I try to add an ActiveX control to a word document I get the error message:
The program used to create this object is Forms.
That program is either not installed on your computer or is not responding.
To edit this object, install Forms or ensure that any dialog boxes in Forms are closed.
FM20.dll is present in c:\windows\syswow64\
Reference to Microsoft Forms 2.0 Object Library is set.
ActiveX control works ok in Excel 2013.Hi,
Thanks for your question. We have noticed that Macro/Active X control might not be working after installing the latest Office updates.
We have submitted this issue through our internal channel, and Microsoft is working on this. We'll let you know if we have any updates on this.
For now, please try the workaround that shared by our MVP <Hans Vogelaar> in
above link, and see if it works for you:
"Quit all Office applications.
Start Windows Explorer.
Select the system drive (usually C:).
Use the Search box to search for *.exd
Delete all found files."
Thank you for your understanding and patience.
Regards,
Ethan Hua
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.
Maybe you are looking for
-
Can you program a Slave's Node ID or Zone ID using the USB-8476 as the LIN Master?
I am planning on using the USB-8476 LIN interface as the LIN bus Master in an application. The application would require the USB-8476 (Master) to program a Node ID and Zone ID into a slave device that is on the LIN bus. The slave device is a PIC12F
-
Two columns in a fact referncing one dimension
Hello, I'd like to have two columns in a fact which are connected to the same dimension. Is this possible in OWB and how ? Thanks !
-
BAPI to update Forecast values? (important, asap)
Hi, Is a BAPI available to update forecast values? This is very important and needed asap. Points will be rewarded and answers will be highly appreciated. Thanks, John
-
Need one to many toplink+Jdeveloper tutorial with example
Hi I need tutorial with example of one to many with Toplink+J developer Thanks Edited by: user11802935 on Aug 18, 2009 1:06 PM
-
Cancel CC single app & keep CC photography program
Can I cancel CC single app for $49.99 a year but still keep CC photography program for $9.99 a month? I only use PS and LR. I signed up for the single app before the photography program became available. I don't want to lose the updates to PS or L