06-17-2014 10:21 PM
Hello everyone,
I'm now acquiring data from analog input using DAQ assistant using PXI6259 with Embedded controller PXI8186,
I'm trying to write an xlxs file format using write to measurement express vi, every time i implement no file has been created
i tried several file directory such as C:\test.xlxs and C:\Users\name\Desktop\data test\test.xlxs
still not a single file created on my host pc nor in the PXI 8186. after i implement the program window displaying "Are you sure? Your data will not be saved to a file" and have two choice to choose Donot save or Try again
I really want to creat the file on host PC if it possible pls help Thank you in advance.
Best regard,
Wuttikrai
Solved! Go to Solution.
06-17-2014 11:06 PM
Are you trying to deploy the express vi in your RT controller? You should try using the low level VIs and you may use shared variable to transfer the data to the Host. The method that you are trying may work only when you have the card in your PC. Also you will get only the last data logged in your file since you are writing the last element coming out of the loop execution. Try to restructure your code and check LabVIEW examples.
06-17-2014 11:42 PM
06-18-2014 12:20 AM
Here is the 2009 version of the code (Note: since the .xlsx format is not supported in 2009 I have configured to .tdms format, everything else remains the same)
06-18-2014 01:23 AM - edited 06-18-2014 01:24 AM
Dear P@Anand,
Thank you very much for your kind and fast reply. Now i have reconstruct the program by following your advice, the file is saved to the RT module but i still have no idea about the rate the data would be written in the file also i want to know about the header for each channel if it possible to have diffrent header for each channel not just the data itself. I have to apologize i am very new to LabView, if you have any furthure recomendation please tell me. Thank you again
Best regard
Wuttikrai
06-18-2014 01:50 AM
Please go through this link and use the sample project for a good start. Please go through basic programming with LabVIEW RT and you can move forward.
06-19-2014 04:04 AM
Dear P@Anand
Thanks a ton that link and your earlier suggestions really help me out.
Best regard
Wuttikrai
06-25-2014 02:57 PM
does anyone know how I can reduce the number of measurements in the Write to Measurement ... I get data from an oscilloscope, and then generate a graph into another program ... but the file that it generates has lvm 1000000 measurements in a very short interval time ... how could reduce this amount also using a table, because when you insert it, the VI hangs with as much information .....??
06-29-2014 06:04 AM
Read data as single sample/ channel/per iteration and have a delay in your loop. Lets say if you have 1ms delay in the loop at a max you will have 1000 samples per channel on your file. Do you have any requirement to read the data at a higher sampling rate.
@godinhoer wrote:
how could reduce this amount also using a table, because when you insert it, the VI hangs with as much information .....??
I am sure you are doing something wrong. Please post the code for improvement
06-30-2014 02:53 AM
P@Anand wrote:
Read data as single sample/ channel/per iteration and have a delay in your loop. Lets say if you have 1ms delay in the loop at a max you will have 1000 samples per channel on your file. Do you have any requirement to read the data at a higher sampling rate.
@godinhoer wrote:
how could reduce this amount also using a table, because when you insert it, the VI hangs with as much information .....??
I am sure you are doing something wrong. Please post the code for improvement
Is your vi creating individual files or something?Please post your modified code as suggested.