Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when running Measurement Studio for VB tutorial (with DataSocket tool).

I am learning to use Meas. Studio 6.0 with VB.NET and started with the NI on-line tutorial "Acquiring, Analyzing, and Presenting Data with Measurement Studio for Visual Basic." I think I've sorted out most of the changes required to make this VB6 tutorial work with VB.NET. However, when I try to acquire data, immediately after connecting to the specified URL (dstp://weather.ni.com/msdemo) I always get the following Error message displayed in the DataSocket status textbox - "Error: Not Permitted to Create New Items". Any ideas?
0 Kudos
Message 1 of 2
(3,173 Views)
I think that this is happening because the there is no pre-configured item nor is there a writer writing data to the URL dstp://weather.ni.com/msdemo. You can verify this by creating a new VB project, dropping a DataSocket control on the form, drop a button on the form, double-click on the button, and type CWDataSocket1.SelectUrl in the button's Click event handler. When the Select URL dialog comes up, type weather.ni.com into the "Browse host" field, click Refresh, and look at the items that are shown under weather.ni.com - msdemo is no longer there. Instead, I would suggest running the DSWriter sample locally and try your project with that instead.

- Elton
0 Kudos
Message 2 of 2
(3,173 Views)