Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire data and write to a file PDA CF-6004

OK, I think I just must be stupid 😞

I want to simply acquire data from one analog channel of the CF6004 in an HP Ipaq.

I started with one of the example programs and I can see the channel being acquired, but I can't figure out:

1) how to save the data to a file (or multiple files each time I start/stop the acquisition)
2) how to find where this file is located (Can I put it in the SDRAM chip? or just inside the PDA???)

Any help is greatly appreciated.

Maybe some simple SIMPLE code to do the file writing combined with the analog input.

I wanted to read one channel at 10HZ (I can't get the configurator thing to let me go below 260 HZ??? ), Let it run and write to file until I stop it, then append or create a new file for the next run.

THanks for any advice.

Jeff
0 Kudos
Message 1 of 7
(4,047 Views)
.
0 Kudos
Message 2 of 7
(4,044 Views)
Ok
I used one of the samples, and I'm able to read channel 0 analog input.
 
It appears that the file write operation works... I now see the file when I explore the PDA..
 
but it's data is in some strange format. 

Is this not a text file created when writing directly from the data acquired?

Jeff
0 Kudos
Message 3 of 7
(4,041 Views)

Could anyone look at this VI and tell me what I'm doing wrong?

It appears to run ok and displays on the graph, but the file is full of zeros, comma delimited.

 

 

0 Kudos
Message 4 of 7
(4,039 Views)
The "array to spreadsheet" function appears to round the numbers to an integer, even though I use %f.
 
Am I doing this correctly?

Sorry for so many posts.
 
Jeff
0 Kudos
Message 5 of 7
(4,037 Views)
Hi Jeff,
 
Try using "%8.4f".  This gives the number a width of 8 and 4 digits of precision.  Does this make any difference?

Regards,
Sean C.
0 Kudos
Message 6 of 7
(4,026 Views)
Thanks Sean,
Yes that fixed it. I had a co-worker find that for me.
 
The data looks good now, just that I have other issues lol..
 
Jeff
0 Kudos
Message 7 of 7
(4,022 Views)