Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save data for AI channel in RT sysem

Dear All,
I am having problems in saving the waveform information to a file.
When I use the simulated device in  MAX  and choose the channels in it the program works perfectly, But when I open the new project and choose the real time target and add a file such and deploy the VI the to the RT Engine, the VI runs but does not ask where to save the file and the file cannot be saved. I have tried this with all the funtions such as write to measurement file express VI,  write to binary file and write to text file funtions for writing to a file but they do not work after deployment and before deployment using the simulated device they are working and saving the files.
Any suggestion is most welcome, Thank u
SIncerely,
Munir Afzal Bhatti
0 Kudos
Message 1 of 4
(3,956 Views)
With this information it's hard to tell what's going on. Please provide more information:

  1. LabVIEW version
  2. Type of real-time target
  3. Type of DAQ device
  4. Do you get any error?
  5. Does the data acquisition work on the real-time target?
  6. You haven't used error handling for your file functions. Please add it. Do you receive any errors?
In general please describe your exact system setup and what you plan to do.

Jochen Klier
National Instruments Germany
0 Kudos
Message 2 of 4
(3,952 Views)
Dear Jochen,
I am using
1)LabView 8.0, NI DAQmx 8.0, MAX 4.0
2)Real time remote system, PXI-8184 RT, celeron 850 MHz Controler with RT embedded SW,PXI chassis 1031
3)M series multipurpose DAQ card PXI-6259
4)I do not  get any error.
5) data aquisation does work on the real time target.
the RT target is connected to the Ethernet with my host computer,
I am trying to save a sine wave right now but it will be used to save EEG waveforms.
 
I also read that to save data on the RT target I must first save it to the RT controller by using File I/O funtions? which File I/O funtion would be better for this purpose and what is the procedure to save it on the controller? do u have any link u could send me ?
0 Kudos
Message 3 of 4
(3,947 Views)
Thank you for the information. I think the issue that you describe can be solved with this article in our knowledge base. For best performance my suggestion is to use low level file I/O functions to save data in binary format. Please refer to the file I/O examples that ship with LabVIEW.

Jochen
0 Kudos
Message 4 of 4
(3,942 Views)