LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data logging without DSC

Hi,

 

Is there a way to store the data aquired from OPC into the Labview? I mean, I have created a datasocket connection between labview and OPC. But I need to store this data in LAbview. I dont want to use DSC module. Hence is there any alternate way to do this?

 

Regards,

Sushruth.

0 Kudos
Message 1 of 5
(2,822 Views)

Dear Sushruth,

 

Data socket is the only way (besides the DSC module) to get your data out of a OPC server. So you can use the data socket API (the functions under data communication in the functions palette) or you can bind a control or indicator by rightclicking the control chose properties and go to the data binding tab; here you can chose to bind using data socket.

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 2 of 5
(2,809 Views)

Hi Martijn,

 

I am able to connect to OPC using Data Socket. I am able to view the data in LabVIEW . But I had configured only for one device. But in future I will be connecting multiple devices through FBus which in turn sends data to OPC. I need this data in LabVIEW. So each time configuring it will be time consuming. Also is there a way to store the data extracted from OPC in LabVIEW. For Eg: Is TDMS the solution for this problem????

 

The project in which I am working doesn't require all the features of DSC since my task is only to extract data from OPC in LabVIEW. But the amount of devices will be around 100 to 200. So configuring these many devices will be pretty hard. Will the sample programs present in Examples i.e., Multiple OPC Monitor.vi will help me out? 

 

In order to aquire data from is DAQmx required to be installed? Though DataSocket is doing the job, can you please clarify me about this since in the example VIs I cam across NI DAQ OPC Client.vi

 

Looking forward to your reply,

 

Thanks & Regards,

Sushruth.

0 Kudos
Message 3 of 5
(2,804 Views)

Sushruth,

 

the purpose of the DSC module is to ease

- management

- logging

- interfacing

of items supplied by industrial bus protocols like OPC or modbus.

 

You can implement nearly everything on your own using basic functions, but you have to keep in mind two things:

a) The features are already encapsulated and ready to use. Most probable, you will not match the performance of DSC if you try to "re-implement" functions.

b) You are going to need time to implement those functions you want to use. Buying DSC does cost money, and you will need some experience before getting started, but for most cases, i would say "Implementing everything on your own is more expensive than buying DSC".

 

Nevertheless, if you still want to go the hard way:

- Use file IO functions to create a library which logs the requested data to files

- Use the database connectivity toolkit (or rewrite this as well) if you want to log to databases

- Create high level tools for management of your DataSocket items

 

With this, you will have functionality i understand you want to have without buying DSC. I cannot give you suggestions on certain examples since you will need many of them and i am not familiar with most of those since i do use DSC if i have similar requests.....

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 5
(2,799 Views)

Thanks for the help Norbert. I will keep posting my updates and findings and try to come up with a solution excluding DSC. In case of doubts or inputs I will post it. Please lend me your help. Sorry for the trouble.

 

Thanks & Regards,

Sushruth.

 

 

0 Kudos
Message 5 of 5
(2,794 Views)