10-21-2009 05:11 AM
Hi,
i'm currently working on my graduating project and i'm using Labview Signalexpress 2009. I'm measuring with a pneumotachograph using a NI CB-68LPR card. I've filtered the signal and it's looking good right now. Now my question is, how do i get this signal (or data) realtime into matlab or another program?
(goal is to let a ball move on the value of the signal. So higher voltage means higher speed of the ball. Therefore everything must be processed in realtime.)
Greetings,
Eriktw
10-22-2009 01:58 AM
Hello Erik,
thank you so much for your post on our webforum. Labview signal express is intended for simple data loging. So you can save your data in file, but there is no way to make the data available in another program.
I think it is best to create one application that does do both; you can talk with the DAQmx driver not only with Labview but also with other programming languages. With Labvie you will have the advantage that you are able to export your current signal express configuration to Labview code and extend this code with the neccesary functionality. You can try this by using the evaluation version of Labview/
If you are moving to Matlab, you can find some great tools about using your hardware in Matlab here . Please let me know if you have any further questions.
Best regards,
11-17-2009 03:05 AM
Hi Martijn S,
i've contacted several people about this problem but none of them knew how to do it. One of them showed me that I can also do everything in Labview. I've seen an example in Labview about the "solar system" and this included all kinds of rotations and so, I don't need this but this picture-moving-program is what i want.
What I want: i've developed a simple game where a balloon moves up and down, when it goes down to much it hits a needle and the balloon disappears. Can i load this in Labview (it's a .exe program) or should i load the background and then load the balloon, then let the balloon move up en down over the background? (so make something like the "solar system example")
Greetings,
Erik tw
student Biomedical Engineering
11-17-2009 04:50 AM
Hello Erik tw,
The first thing what came in my mind was to use a control and change the properties (visible, position) of that control. You can create a custom control (for example Boolean) and use a picture on top of this indicator. Jus put a control on your front panel and right click => advanced => customize.
I made a quick example of how this looks like; example was made in LV 2009, in the folder you will find one saved in an older version. Increment position; top property to move the custom control down your screen and increment to move it up again. Write a 0 to this property to move back to the start position.
When the balloon hits the needle; write a Boolean false to the visible property (also reset the position?). Again the example is just a quick fast one to give you an idea how this should look like.
Best regards,