?
Solved

Analyzing data in real time data in Labview using c

Posted on 2005-03-26
6
Medium Priority
?
301 Views
Last Modified: 2012-05-05
Hello all,

I am performing buffered data acqusition using labview. The data i acquire is stored temporarily in my buffer and i have an existing c program to work on my recorded data. I record the data as a binary file using write to SGL file. This analysis is performed offline ie., I analyze the data only after I record it. I want to analyze my data on real time basis. Could someone tell me what instruction do i have to use to read from the buffer in my c program so that i can analyze the data real time. Is there a tutorial online where i can have examples to perform analysis of realime data using c and labview

Kelly
0
Comment
Question by:kelly_jesicca
  • 3
  • 3
6 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 1200 total points
ID: 13638628
google around for IPC (Inter Process Communication) tutorials ...

You can either
- Put the labview data into a shared memory buffer, read it from your C program and analyze it ... ofcourse this assumes that you have such control over labview program to be able to put data into shared memory regions .... And yes, you will have to build synchronization mechanisms to be able to synchronize access to shared memory

- Establish a pipe between your C program and labview. Pipe the output data directly into the C program. This should be possible evn if you have limited control over labview.

http://www.ecst.csuchico.edu/~beej/guide/ipc/pipes.html
http://users.actcom.co.il/~choo/lupg/tutorials/multi-process/multi-process.html
0
 

Author Comment

by:kelly_jesicca
ID: 13639593
Thanks for the suggestion, I dont think this would work as I am looking at labview specific. Labview has some commands that can read from the buffer and i am not sure how to use them. To call an external peice of code from labview i think i have to use code interface node and there are also otherways to do it. and the other one is CNN. I want to use one of these to perform my task.

Thanks
Kelly
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 13639687
Hi Kelly,

People here are C programming experts and I suspect not many would be well versed with labview. There seems to be no better suited TA which I can recommend here.
However, it might help to post pointer questions in C++ and Programming TAs. Wait till monday morning before posting the pointer as most experts are away during weekends.

Cheers!
sunnycoder
0
The Firewall Audit Checklist

Preparing for a firewall audit today is almost impossible.
AlgoSec, together with some of the largest global organizations and auditors, has created a checklist to follow when preparing for your firewall audit. Simplify risk mitigation while staying compliant all of the time!

 

Author Comment

by:kelly_jesicca
ID: 13639713
Thankyou I shall wait. Can you recmmend me someother place place where i can find some TA for labview

Kelly
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 13642097
I am afraid I am too ignorant of labview to recommend you a good source. Best I can say is to dig into their documents which I believe you already must have done by now.
0
 

Author Comment

by:kelly_jesicca
ID: 13645876
Yes I have already seen that
0

Featured Post

The Lifecycle Approach to Managing Security Policy

Managing application connectivity and security policies can be achieved more effectively when following a framework that automates repeatable processes and ensures that the right activities are performed in the right order.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question