LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog Signal Acquiring Problem

Hi, I'm using a DAQCARD-AI-16XE-50 for acquiring 6 Analog Signals Channels @1000Hz. At the first time I used the program that labview has as default by following "Labview->Daq solutions->Program the input scaling myself->custom daq solutions->Analog input->Acquire continuosly to spreadsheet". I can use this program on my laptop (Toshiba Satellite 4090CDS @300MHz and 64Mb RAM but not in my desktop Pentium IV @2,6GHZ. Do you have a clue?

Thanks
Maria
0 Kudos
Message 1 of 9
(3,341 Views)
Hi Maria,
some general questions:
- Have you configured and tested the board by MAX on your desktop?
- Can you run any other LV DAQ example?
- What error, if any, you get?

Alberto
0 Kudos
Message 2 of 9
(3,341 Views)
Hi Alberto, thanks for your help. I've tested my board in MAX and it's passing the test normally. I can run other programs not including output file storage. Thats the problem but I don't know how to fix it. See attached for the error.
0 Kudos
Message 3 of 9
(3,341 Views)
Hi again,
try to increase the number of scans to write at a time, if you set it to 200 you have 5 updates/second at SR=1000.
Increase also the buffer size (at least 5000) and check the scan backlog if it remains stable, better if zero.
There are some more suggestions, but first try this and let me know.
Alberto
0 Kudos
Message 4 of 9
(3,341 Views)
Hi Alberto, I've done it and I didn't get any better results. I've copied the figure for you to see the changes. What I've realized is that if I change the frequency sampling up to 100Hz, then is working, but it's failing if I use a frequency higher than 100Hz and for my aplication it's necessary to sample @1000Hz

thanks
Maria
0 Kudos
Message 5 of 9
(3,341 Views)
sorry, I've forgot to include the figure.
0 Kudos
Message 6 of 9
(3,341 Views)
Hi Maria,

I can see you are trying!

What you need to do is remove the file writing operations from your data collection loop.

The simplest solution would move the data formatting and file write operations to after your data collection loop. That way the file I/O nad formatting will not get in the way of your data acquisition operations.

There are limitations in this simple approach i.e. you need to buffer all of your data in memory until it is time to write the data to file.

If you need to log while collecting, then you may want to use a queue to pass the un-fromatted raw data to a parallel loop that saves the raw, un-formatted data to disk. Latter on you can read the raw data and fromat the interesting parts.

To help you better, please let us know
how much data you want to save, how often etc.

I have done what you are attemting for over a hundred channels but I did not even entertain the possiblity of converting the data to text until after all of the hard work was done and the computer was just sitting around board.

Please post an image of your code with your questions and let know more about what you are trying to do.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 9
(3,341 Views)
Hi Ben, I'm a new user of Labview and what I did is to use the default program for acquiring analog signal that Labview has in Labview->Daq solutions->Program the input scaling myself->custom daq solutions->Analog input->Acquire continuosly to spreadsheet.
I have been using this program for over a year and I've acquired lots of data with no problems at all in my laptop and my AMD k6-2 @ 450MHz old desktop and now that I have improved my computer to a better one is not working!
I just want to save some data @1000Hz of sample frequency. Normally I get around 79200x6channels to after analyze it with Matlab.I don't mind saving it after all the proces of acquiring is finished, so if you think that could be the solutions tell me what do I have to ch
ange in the file. But again, I don't know how to use labview, i'm new on this.
I've copied it to an image. Hope this help!

Thans again,

Maria
Download All
0 Kudos
Message 8 of 9
(3,341 Views)

I can only offer quick tips because I do this stuff for a living.

Instead of wiring your data to the format node, wire that output to the right edge of the while loop. Right click on the output tunnel and select enable indexing.

To the right of your main DAQ loop drop a new "for" loop. Wire you data from your new output tunnel to the for loop. Move your format and file write operations out of the DAQ loop into the new for loop and then finsih up your wiring.

If you have follow up Q's tell us what the difficulty is and post a picture of your code along with the Q.

Now speaking generally.
Your laptop has a faster CPU but its I/O speed is slower than your old machine! This is what is causing your error when you run the code on the new mach
ine.

Trying to help without taking fodd out of my family's mouth....

Ben


Ben Rayner
Certified LabVIEW Developer
www.DSAutomation.com

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 9
(3,341 Views)