10-21-2007 03:23 PM
10-21-2007 05:08 PM
10-22-2007 12:31 PM
10-22-2007
01:08 PM
- last edited on
04-26-2025
05:22 PM
by
Content Cleaner
Hi Rusen,
In regards to your first question, you shouldn't have trouble acquiring at 200kS/s with the PCI-6024E with the right LabVIEW code.
In regards to your second question, the BNC-2120 will work with any M Series, E Series, S Series, and NI 671x devices. This includes the M Series PCI-6259.
DAQmx is nothing more than our newer driver set. When you install DAQmx, it will verify which version of LabVIEW you have installed and install new DAQmx driver VIs within LabVIEW that can be used with any of our DAQmx supported DAQ cards. This includes both your PCI-6024E and PCI-6259. Depending on what version of LabVIEW you are using, you might need to verify which version of DAQmx is compatible with that version of LabVIEW. You can find compatibility information here. Another great resource for getting started with DAQmx can be found here. I would recommend reading through the frequently asked questions (FAQ). After you install DAQmx, you should be able to go to Help » Find Examples within LabVIEW and find various example which demonstrate good programming practices to use with your two DAQ cards.
I hope this information helps,
Paul C.
Message Edited by Paul C. on 10-22-2007 01:10 PM
10-22-2007 05:15 PM
Hi Paul,
Thank you very much! Now I will start from FAQ of DAQmx and hopefully I will be more familiar with Labview and write a good code by myself.
I am really glad that you lead me to a good start point. I had read a book on Labview. Eventually I gave up because I was completely lost in the book.
Regards,
Rusen
10-23-2007
10:27 AM
- last edited on
04-26-2025
05:22 PM
by
Content Cleaner
Hi Rusen,
I'd also like to mention that we have some great courses that we teach on LabVIEW and DAQ applications. Here is the link to our LabVIEW Basics class. The LabVIEW Basics class is a great way to start learning about LabVIEW and data acquisition techniques. I've personally taken the class and found it very helpful and informative. In addition, I would recommend using context help (Press control + h within LabVIEW). When you highlight over an VI it will populate a box with information about that VI. I've found this very helpful when I started learning LabVIEW.
Regards,
Paul C.
11-04-2007 05:45 PM
11-04-2007 07:41 PM
Hi, just recall other two questions.
1, how to do an average on the waveform? For example, I acquire the data at a rate of 1000Hz and number of sample of 500. How to average 5 data points before I plot the graph and write to the file.
2, when I gain more exprience, I might consider to make a low pass filter to the waveform. Could you please give me some suggestions on that? How to working on the waveform?
Thanks a lot!
11-06-2007
02:40 PM
- last edited on
04-26-2025
05:23 PM
by
Content Cleaner
Hi Rusen,
I mean how to write them to a text or spreadsheet file.
The best way of doing this without opening and closing the file every time the loop runs and adding the time stamp to the text file is looking at the “Write to Text File.vi” example (LabVIEW->help->find examples->search tab and type “Write to Text File”. You can use this as a guide and merge it with your code. If you run this code you will have a timestamp for column one and the tab delimited data on each other column.
The graph without scaling fact seems right, while the graph with scaling factor shows only some zigzag.
From your pictures I don’t see a zigzag on the current graph that has the scaling factor; I see a zigzag in the voltage graph. What I will suggest in this case is to first grab the data “no scaling” and make sure you are getting the values that you are expecting, after that you need to multiply the data (array) by a scalar, in you code the “scaling factor” is an array. Take a look at this example: “Add - Various Uses.vi”. Make sure to see how all the different inputs (array, numeric, waveform) can change the output of the operation..
How to make the graph to be more continuous and smooth?
Which of the graphs are you referring to the voltage graph or the current graph? The current graph looks smooth to me. The smoothness of the signal in the graph depends on how fast the signal is changing and how fast you are sampling it, to get a smooth signal as a rule of thumb you should be sampling at 10 times the frequency of you signal.
How to do an average on the waveform?
One of the easiest way of doing this is converting it from a double precision data type to a waveform data type and use the “Time Averaging” express VI, another solution is to aid yourself with some for loop and code the averaging yourself. I always prefer test code in separate VIs for testing and debugging and after you are sure the code works like you want to is a quick step to integrate it on the main VI or to call it as a subVI.
I might consider making a low pass filter to the waveform.
The best way of learning about filtering and what labview can do is getting your hands on some of the examples that we have: LabVIEW->help->find examples->search tab and type “filter”.
I would also like to inform you that if you have another question regarding a different issue as then one that started this thread it will be on your best interest to post in a different forum, this will allow us support you a lot faster. The NI website in conjunction with labview examples are the best resources to troubleshoot labview code since they will allow you to go to the very basic of your issue.
I hope it helps
Message Edited by Jaime F on 11-06-2007 02:42 PM