10-16-2012 07:13 AM
Hello
I am new in using labview. I need help in writing program to continuously record the signals form PXI 5105 using LabVIEW 2011. I prepared a program using help examples. It is recording the signal using pxi 5105 into the file after trigger. I tested the code using waveform generator with -100mV to 400mV, 1 kHz, sine wave. I have also attached the waveform of signal from the excel file recorded by the program. I have following queries
(i) Is the program correct to continuously record the triggered signals. Have I used the while loop correctly?
(ii) why some part in waveform is missing.
(iii) What should be the value of millisecond multiple ( I used zero)
I want to use above program for strain gauge signal measurement. Where I have to record the data at 20Ms/sec sample rate for 1 milli second after trigger.
thanks
10-19-2012 04:21 AM
Hi,
Sorry but I've only got LabVIEW 2010 so I can't open your file. If you can post a 2010 version I can take a look.
@vinod_p wrote:
(iii) What should be the value of millisecond multiple ( I used zero)
If you are talking about the "Wait until Next ms Multiple" function then "Wiring a value of 0 to the milliseconds multiple input forces the current thread to yield control of the CPU." (from the context help for the function - press <ctrl>+h). Is this the behaviour you want?
Normally the ms multiple function is used to synchronise loops as it waits until the next multiple (be it 10ms or 10s) before continuing the loop.
-CC
10-24-2012 04:59 AM
Thankyou for reply. I have modified the program and it is running good. When it gets signals it triggers and record data. The difficulty I am getting now that when there is delay in signal or it is not triggered, the program terminate itself after some time with error messages (1074126845) that maximum time exceeded before the operation completed. How this time duratuion can be modified?
The program is attached ( saved for previous version.)
thanks
10-24-2012 05:26 AM
Hi,
I'm glad that you managed to get your measurements sorted out.
Thanks for the down-version of your program, but without all of the subVIs it's effectively useless! A better idea is to upload your main VI and all of your subVIs in a zip file.
As I've not been able to look at your program I would have to take a guess and say that somewhere you have wired a constant to a timeout terminal. You'll have to take a look at the help for that terminal, but usually a value of -1 will give an infinite timeout duration (ie will never timeout). If you have a timeout that is not -1 then this would likely be the source of your issue.
-CC