Test and Measurement Forum

Exporting data from PicoScope 6 to Vb.net?

Post your .Net discussions here

Exporting data from PicoScope 6 to Vb.net?

Postby Eminar1101 » Sun Mar 11, 2012 5:52 pm

Hi all,
Can I use PicoScope 6 to export data, or rather "stream" data, from PicoScope to VB.net and if possible, can u please give me a hint or how to do that?
Thanks
Eminar1101
Newbie
 
Posts: 0
Joined: Mon Mar 05, 2012 8:12 am

Re: Exporting data from PicoScope 6 to Vb.net?

Postby Martyn » Mon Mar 12, 2012 4:34 pm

Can you give some more detail about exactly what you are trying to achieve, which scope your are using, and if you actually need to be running Picoscope 6 or would be able to control the scope from within a VB.Net application.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2344
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Exporting data from PicoScope 6 to Vb.net?

Postby Pras » Wed Mar 14, 2012 11:53 am

Eminar1101 wrote:Hi all,
Can I use PicoScope 6 to export data, or rather "stream" data, from PicoScope to VB.net and if possible, can u please give me a hint or how to do that?
Thanks


Hi,
I am also interested in this feature, if available. My interest is to acquire oscilloscope data along with collecting temperature information from a hot stage connected to the serial port of the PC. Thus I need to write at least part of the code myself, which would be done, for example, in Excel VBA. I especially like the Active filter and trigger mode facilities on the PicoScope 6 software. If data acquired on PicoScope 6 can be sent to Excel (in a loop manner), but addressed through Excel, it would be ideal. Greatly appreciate any help in this regard.
Pras
Newbie
 
Posts: 0
Joined: Wed Feb 29, 2012 6:54 am

Re: Exporting data from PicoScope 6 to Vb.net?

Postby Martyn » Fri Mar 16, 2012 11:36 am

PicoScope 6 can export data to a file in a number of formats including csv and txt, it can't export to another application. The process can be automated by using the Alarms functionality by writing data to file on buffer full or similar conditions thay you specify.

However all data exports will be of raw data and so will not achieve any advantage over controlling the scope directly from within the VB.net application or Excel VBA macro using the driver API.

Sample code is provided in the SDK that should help point you in the right direction.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2344
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Exporting data from PicoScope 6 to Vb.net?

Postby Pras » Thu Mar 22, 2012 9:20 am

Martyn wrote:PicoScope 6 can export data to a file in a number of formats including csv and txt, it can't export to another application. The process can be automated by using the Alarms functionality by writing data to file on buffer full or similar conditions thay you specify.

However all data exports will be of raw data and so will not achieve any advantage over controlling the scope directly from within the VB.net application or Excel VBA macro using the driver API.

Sample code is provided in the SDK that should help point you in the right direction.


Dear Martin,

Thank you for the reply. I need to set "Simple Edge, falling and 2V" setting for the External trigger input being fed from a FuncGen sync output. I am struggling to do this with Excel VBA. Additionally the manual does not seem to mention the method to get the active filter working through Excel. Kindly help in both the regards

Prasad
Pras
Newbie
 
Posts: 0
Joined: Wed Feb 29, 2012 6:54 am

Re: Exporting data from PicoScope 6 to Vb.net?

Postby Martyn » Thu Mar 22, 2012 3:05 pm

The triggering has been addressed in the other post and works using the SetSimpleTrigger function. The filtering is not something you can turn on/off in the driver or scope, it is performed by processing the data in software.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2344
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Exporting data from PicoScope 6 to Vb.net?

Postby Eminar1101 » Mon Apr 16, 2012 7:39 pm

Martyn wrote:Can you give some more detail about exactly what you are trying to achieve, which scope your are using, and if you actually need to be running Picoscope 6 or would be able to control the scope from within a VB.Net application.


I will be running Picoscope 6 and exporting the data from the Picoscope 6 to the VB.net or any other .net program.
Do you have an example code that I can follow?

What I'm trying to do is to get the signal from the circuit i have designed to the picoscope 6---> achieved
then take this signal from picoscope 6 to any .net-based program so I can finally send it to an ASP.net website.
Any idea of how to do it.

thank you,
Eminar
Eminar1101
Newbie
 
Posts: 0
Joined: Mon Mar 05, 2012 8:12 am

Re: Exporting data from PicoScope 6 to Vb.net?

Postby Martyn » Mon Apr 23, 2012 10:24 am

You can use alarms to export data from PicoScope6 to a file which you could then open from within another application.


If you wish to stream the data then I would suggest that you cut Picoscope 6 out of the loop and code the functionality to collect and stream data in to your application.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2344
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to .Net Languages (C#, VB.Net, .)

Who is online

Users browsing this forum: No registered users and 0 guests