10-09-2014 10:28 AM
Hello,
I have a problem with the measurement data function; My instrument is the "Hyoki 3532-50 LCR meter".
I´m tring to save the data in a text file using the "write to measurement file VI" . From the instrument i receive an array containing the data of the measure and then i use a for loop to obtain the single data obtainig the dynamic data necessary like input in the VI function.
The problem is that i receive ( for example) the Rp data and the Cp data in two separate moment and the result using the VI is something like
1 56
2 68
3 95
1 0,12
2 0,30
3 0,56
(this is a stupid example to explain my situation)
What i would like to obtain is
1 56 0,12
2 68 0,30
3 95 0,56
The fact that i can+t receive all the three dynamic data in the same moment present also the problem that i don´t have the possibility to save in a different file every time i start the measure but to do it i have to reset the labview program ( this is due to the fact that in the property i select "ask only once" because otherwise if i select " ask at each iteration" the second data flow overwrite the file) .
If you need some image from code i can provide them
10-09-2014 11:00 AM
Yes, attach some simplified code.
10-09-2014 11:04 AM
10-10-2014 02:29 AM - edited 10-10-2014 02:30 AM
This is the image of the part of the code that do the measure. Then i receive an 1D array from the instrument and i pass it to the save vi
I repeat this code for each parameter i have to measure and so i pass an 1D array per time at the saving function
10-10-2014 08:06 AM
Hi,
I´m testing a new solution but i´m not sure that it works because i have not the instrument with me in this days.
I have eliminated the "write to measurment data function". Now i create three 1D array and initialize each of them in the beginning of the program. Then i simply write the data into the three array in separate moment and then i merge them into an 2D array and i write the 2D array into a file (using the Write to a file function)...i try this solution with a stupid programm that generate random numbers and it works...
could be a good idea?
10-10-2014 10:07 AM
You really need to attach some code. We are graphical programmers and don't undestand longwinded text explanation 😄
Also the code images you attached earlier are useless. The abundance of local variables, stacked sequences, express VIs, and dead code make them impossible to debug by looking at a picture.