?
Solved

Analyzing data in real time data in Labview using c

Posted on 2005-03-26
6
Medium Priority
?
299 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

771 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