LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with 6071E to write data on file?

Hi,
 
I would like to save my value from analog input of my 6071E card on a text file, I've only on channel selected but when I run my program I've an error.
I'm in continuous mode but over than 10kHz and 10000 samples the program doesn't work, and I need to be at 100k or 1MHz.
 
Thanks a lot
 
Under labview 8.0

Message Edited by drikc on 01-23-2007 06:18 AM

Message Edited by drikc on 01-23-2007 06:18 AM

Download All
0 Kudos
Message 1 of 4
(2,968 Views)
drikc,

you are running into a perfomance-issue here.
There are two ways to solve the issue:
a) Buy a faster PC....
b) instead of just configuring your application you should start to programm it.
Regarding b) i'd advice you to take a look into the "Cont Acq&Graph Voltage - To File (Binary).vi" which is installed with DAQmx. You can find the example in the example finder of LabVIEW.

hope this helps,
Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(2,952 Views)
Thanks Norbert,
 
To change the computer, I forget this solution but, it would be easiest.
For the programming, indeed I've already looked the "Cont Acq&Graph Voltage - To File (Binary).vi", but the file is binary and I need to write voltage value, so text file.
I'm going to concentrate myself on this exemple.
 
Thanks
 
0 Kudos
Message 3 of 4
(2,929 Views)
drikc,

if the file-format is the only headache for you in this example, then the solution is very easy: Just replace all binary-functions from the file IO with appropiate ASCII-functions. Of course, you have to convert your data into string(s) first.
Since ASCII files are very slow compared to binary and the conversion takes time as well, you have to benchmark if you achieve the performance you need with this mechanics....

Norbert

Message Edited by Norbert B on 01-26-2007 02:08 AM

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(2,919 Views)