Go to Post We owe a lot to Bob (Hammond), he is a true gentleman. - Covey41 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-12-2010, 07:51
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: cRIO data logging

Much of the VI you posted seems to deal with a file group with some naming scheme that increments.

The write to spreadsheet string actually opens and closes the file each time. That should be more effective and a bit more expensive than a flush on an open file. If it works, go with that. If it slows down your program too much, open it up to see how the lower level primitives are used.

If you still decide to do the file group, you basically have to step through enough instances that you trust the logic. I try to avoid the file group or keep it simple, as I seem to make a mess for myself that I have to debug whenever I attempt such a thing.

Greg McKaskle
Reply With Quote
  #2   Spotlight this post!  
Unread 06-12-2010, 12:21
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: cRIO data logging

Here's a simplified example of how I intend to use it:


The "make new file" is only run once, until the program is restarted. I don't want to erase my data just because I restarted the program, but I do want to separate each session into a different file.


The reason I'm not using a "write to spreadsheet file" is because I would have to use a queue to get the data out of the loop so I could write it as an array. Since I don't need to read that data - I just need to write it to a file - I thought using the file cache would be an efficient way of doing this.

EDIT:
I fixed the VI. I found that the "list folder" function wasn't taking the regular expression "[0-9]+". I think it doesn't support the braces. Anyways, I worked around that by simply replacing it with "*". I know that the "number string to integer" function will return 0 if there is no number in the string. Since I'm only using the maximum value in the array, that will be fine.

I'll try implementing the file logging on the cRIO later.
__________________
-- Marshal Horn

Last edited by kamocat : 07-12-2010 at 01:00.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging console data to text file on crio Kingofl337 Programming 3 09-04-2009 18:57
recieve data from cRIO byteit101 Programming 9 07-03-2009 16:37
Data delay between Crio and DS Tom Line NI LabVIEW 9 17-02-2009 08:40
Data logging to internal memory JBotAlan C/C++ 13 13-02-2009 00:04
pic: Team Data Logging Device falconmaster Extra Discussion 8 13-03-2007 10:01


All times are GMT -5. The time now is 21:21.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi