データの保存に関して
数値データの保存に関して質問があります.
現在,compactRIOを用いて実験装置の制御を行っております.
数値データの保存には,スプレッドシートに書き込むを用いているのですが,パソコン上のファイルに直接書き込んでいるためか,サンプリング時間を5ms以下にすることができません.
1ms間隔でデータを保存したいのですが,どのようにすればよいのでしょうか?
クラスタで一度1msで表示してから,クラスタ表示機からデータをコピーしてexcelに貼り付けるなどすれば,1msで保存することが可能なのですが,表示機は1024データ以上保存することができません.
全くの初心者ですので,至らない点があれば申し訳ありません.
宜しくお願い致します.
takattakaさん、こんにちは。
1024データでは少ない、というところまで理解できました。
ゴールとしては、
1.●●●データまで取りたい。
2.無限ループで取りたい。
のどちらでしょうか?
1ms間隔で無限にデータ取り続けるのは難しいと思いますので、どこかでは停止するのであれば、
下記のような方法はいかがでしょうか?
取りたいデータ量(あるいは時間)が決まっているのなら、先に「大きな」配列を作るのが良いと思います。
関数 > 配列 > 配列初期化
を使います。
Whileループなどで、
・データ取得
・データを用意した配列に書き込み
・配列の、どの位置(指標といいます)に書き込むかをインクリメント
を、繰り返していけばいいはずです。
データ取得終了、あるいは、配列が満杯になったところで、保存、とする方法でいかがでしょうか?
注意点として、Whileループ内で配列の大きさを変更する(配列連結など)をすると遅くなりそうです。
(参考1:データのサイズを常時変更することを避ける)
(参考2:VIの実行速度)
以上、わたしCompact RIOを持っていないので、1msが実現できるか手元確認できませんが、ご参考になれば・・・。
Similar Messages
-
ошибка загрузки
Не могу установить программы в Creative Cloud пишет ошибка загрузки
Please refer to :
Error downloading and installing Creative Cloud application
Troubleshoot CCM Applet installation and download
Creative Cloud "Download Error" message
It should help you.
Regards
Rajshree -
Hello All.
I'm install R Enterprise in my ora 11 base. And try execute code.
From RStudio I run this:
## Is the ORE client connected to the ORE server?
## The output of this command should be TRUE.
ore.is.connected() - it's work
## List the available database tables
ore.ls() - It's work too
## Push an R dataframe to a database table
CARS <- ore.push(cars) -OK
head(CARS) -OK
## Run embedded R
ore.doEval(function() { 123 }) - It's ERROR
Error in .oci.GetQuery(conn, statement, data = data, prefetch = prefetch, :
ORA-06520: PL/SQL: Error loading external library
ORA-06522: Unable to load DLL
ORA-06512: at "RQSYS.RQEVALIMPL", line 17
ORA-06512: at "RQSYS.RQEVALIMPL", line 14
ORA-06512: at line 4
More, I run this from SQL Developer:
BEGIN
sys.rqScriptCreate('myRandomRedDots2',
'function(divisor = 100, numDots = 100) {
id <- 1:10
plot(1:numDots, rnorm(numDots), pch = 21, bg = "red", cex = 2 )
data.frame(id = id, val = id / divisor)
END;
It's correct.
But it's ERROR:
"SELECT *
FROM table(rqEval(NULL, 'SELECT 1 id, 1 val FROM dual', 'myRandomRedDots2'));
ORA-06520: PL/SQL: Ошибка загрузки внешней библиотеки
ORA-06522: Unable to load DLL
ORA-06512: на "RQSYS.RQEVALIMPL", line 17
ORA-06512: на "RQSYS.RQEVALIMPL", line 14
ORA-06512: на line 4
06520. 00000 - "PL/SQL: Error loading external library"
*Cause: An error was detected by PL/SQL trying to load the external
library dynamically.
*Action: Check the stacked error (if any) for more details.
Please HELP ME. Where solution?What platform (Windows, Linux, or other?) are you running?
Does libR.so exist in $R_HOME/lib and $ORACLE_HOME/lib?
Regards,
Sherry -
When I try to open my web browser or a new webpage then it writes out the next in a pop-up window: Ошибка в функции YtFlv2Mp3.DocOnLoad. TypeError: oDoc.location.href.startsWith is not a function. I hope that the problem can be solved.
Thank you so much! Arigatou! Danke schön! Köszönöm!
-
ошибка код 205 при установки Creative Cloud на windows 8.1. Что делать?
ошибка код 205 при установки Creative Cloud на windows 8.1. Что делать?
-
Установил пробную версию Adobe Photoshop Elements v.11, срок действия закончился, я её удалил.. Купил лицензионную программу, а она не устанавливается! В конце загрузки, при установке общих компонентов пишет:"Не удалось установить Shared Technologies" и делает откат программы. Как мне исправить эту ошибку? Спасибо!!!
-
Было утановлено OS X Moutain Lion 10.8. При загрузке обновлдения 10.8.1. возникает ошибка. Как все исправить???????
My mail application completely failed shortly after the upgrade to Mountain Lion. None of the user advice has repaired it from these forums, so I have now resigned myself to using my ipad and iphone to conduct all my business emails. I was hopeful that this first 10.8.1 update from Apple would restore the my mail application. I can frustratingly report that no, it certainly hasn't. No change in fact. I click on the mail app and the beachball of death continues for about 5 minutes then it comes up with a message 'there is a problem with your mailboxes' with the option to quit or quit and rebuild index. If I choose that latter, the beachball resumes it's rotation forever or until I hard reset the machine as all other programs crash at this point. Apple, please help FAST, this is no way to run a business!!!!
-
Постоянно выскакивает ошибка Buffer overrun detected firefox.exe После этой ошибки закрываю Firefox но процесс firefox остается незавершенным, и приходится его завершать вручную в Диспетчере задач. После перезагрузки компьютера эта ошибка поначалу не появляется, но затем снова выскакивает, и все чаще и чаще, и так до следующей перезагрузки. Раньше такого не случалось, это началось несколько месяцев назад, невозможно спокойно работать с интернетом. Прошу мне помочь.
-
Не пускает в ICloud ошибка 403
Не пускает в ICloud ошибка 403 что это может быть в Appstore пускает
Try сбросить пароль Apple ID.
Коснитесь Настройки> Магазин> Apple ID> iForgot -
ERROR: Media DB Error : 12 ошибка при установке illustrator
Give full permisson in to below given location also inherite the permission to sub folders and files.
Windows (64 bit OS) : C:\Program Files (x86)\Common Files\Adobe\caps
Windows (32 bit OS) : C:\Program Files\Common Files\Adobe\caps
MAC : /Llibrary/Application support/Adobe/caps
Then try to install, if still not work then Rename media_db.db located in above mentioned location to media_db_old.db
After Renaming try to install the software -
Не могу войти в мобильный интернет, всё подключено, но пишет: "ОШИБКА АУТЕНТИФИКАЦИИ PDP". Что делать?
hello, you could try resetting the file in your firefox profile that holds the certificate information, maybe it has become corrupted.
therefore go to ''firefox > help > troubleshooting information'', click on ''profile folder/show folder'' and close all firefox windows afterwards. a windows explorer window should open up - in there rename or delete the file named '''cert8.db''' (& '''cert_override.txt''' in case it is present) - it will be regenerated again the next time you launch the browser. -
Ошибка установки
При установке Adobe Degign Standart на Windows 7 возникла ошибка,
Exit Code: 20
-------------------------------------- Summary --------------------------------------
- 0 fatal error(s), 0 error(s), 0 warning(s)You have to provide exact system info. This simply looks like your system does not at all meet the requirements.
Mylenium -
mac выдает: ошибка 4sns/1/40000000:tmop/65.625. Подскажите что делать и как настраивать?
-
Good afternoon. Please tell me the answer to the question about the slow download appstore. Phone Iphone 5 6.1.2. Different modes have switched on the router. Download speed is still very low. Program 10 minutes 10 mb swings
я не знаю, есть ли у wifi адаптеров стационарных компьютеров опция энергосбережения, если есть - попробуйте отключить ее в диспетчере устройств.
x220 | i5-2520m | Intel ssd 320 series | Gobi 2000 3G GPS | WiFi
x220 | i5-2520m | hdd 320 | Intel msata ssd 310 series | 3G GPS | WiFi
Do it well, worse becomes itself
Русскоязычное Сообщество English Community Deutsche Community Comunidad en Español -
After upgrading from 15 to 18 and then to 19 version, all addons turned off.
When goind to addon manager page, it shows Loadin... and nothing more. Error from console in subj.It is possible that there is a problem with the file(s) that store the extensions registry.
Delete the files extensions.* (e.g. extensions.sqlite, extensions.ini, extensions.cache) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
*https://support.mozilla.org/kb/Profiles
New files will be created when required.
See "Corrupt extension files":
*http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
*https://support.mozilla.org/kb/Unable+to+install+add-ons
If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to check if there is a compatibility update available.
If this hasn't helped then also try to delete the addons.sqlite file. -
HELP.. Помогите пожалуйсто починить iPhone
Ну пожалуйста помогите!!!
Maybe you are looking for
-
Live Type Template not displaying correctly in FCE
I'm trying to use the "Ink Title" template from the Live Type Template Browser: File > Open Template > Template Browser. But when I import the .ipr file into FCE 3.5.1 it comes across with a transparent background and is not showing the artwork. I se
-
Using specification for GDSN attributes?
We are planning to participate in Global Data Synchronization Network (GDSN). For that additional master data must be defined and managed. SAP does not provide standard solutions for this requirement. We use EHSM for GLM and other functions. We the
-
Getting an error message of unable to check for software update when trying to update to ios 8.0.2. Can someone help ??
-
I have two Aperture Libraries, call it L1 and L2. They are on Mac Pro (two 2.8 GHz Quad core, Memory 14GB) with LionOS and the most recent version of Apertur 3, L1 is on HD2 (1TB) and L2 is on a separate HD3 (1.5TB). I started the second library (L2)
-
Hi, I need Class name for pop up menu, input as internal table. Thanks& Regards MAdhu