06-10-2010 05:48 PM
Hi all,
I get a project invovled a serial port reading, then use the band pass filter and FFT to process the signal. At last, locat the peak frequency of the spectrum. This project used to be achieved by dasylab as shown in the attachment. Since I am not familar with labview, can somebody please spare me several minutes to convert this program to labview VI. Thank you very much for your kind help.
Baicy
Solved! Go to Solution.
06-10-2010 06:06 PM
As far as I know, there is no longer a tool to convert Dasylab to LabVIEW and even if there were, attaching a image would do no good.
I would suggest you start with the free LabVIEW tutorials. It seems most of this could be done with Express VIs (a rough equivalent to Dasylab).
06-11-2010 03:08 AM
Thank you, Dennis!
It seems to be such a simple problem, while I'm having a very tight schedule to go through the tutotial now. If someone can spare me several minutes to help me start, I'm very appreciate. Many thanks.
06-12-2010 02:09 PM - edited 06-12-2010 02:09 PM
As I said, images are worthless because they tell no one how you have those functions configured. If you do decide to post the actual code, then you will have to be somewhat lucky in finding someone who has both DASYLab and LabVIEW.
The Express VIs that you will want to look at include the Instrument I/O Assistant, Filter, Spectral Measurements, and Statistics. Probably just need a loop areound the Instrument I/O Assistant if you need to collect x number of points.
06-12-2010 08:54 PM
Hi, Dennis!
Thank you very much for your replay. You are right, it is exactly I want to attach a picture rather than the code.
This is pretty much what I want, except I am using a bluetooth connection for data collection. The seriel port is a virtual com, therefore It is not suitable to use Intrument I/O. Any suggestion about it? Could you please attach the VI? I can not tell the block between the I/O and filter, you know, not familar with Labview. Again, many tanks!
Baicy
06-12-2010 09:10 PM
Instrument I/O is intended for use with com ports. So if your device is a virtual com port, you just have to set up the Instr I/O for that com port. And know what kind of commands to send to it and how to interpret any information it sends back.
That image is a snippet. Drag and drop the image from your browser onto a blank block diagram and watch the magic happen. (If you are using LV2009, maybe 8.6 it works also, but I don't remember).
The small blue express VI is To DDT in the Express/ Signal Manipulation palette. It converts the array of doubles coming out of the For Loop to the dynamic datatype (the blue wire) that always seems to go hand in hand with the blue Express VI's.
Not familiar with LabVIEW?
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
06-12-2010 09:18 PM
Why would you not attach the actual code?
By the way, the instrument I/O Assistant is just a dummy. You'll see that there is a random number generator underneath just to get an output from the while loop.