LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with write to measurement file

My VI doesn't seem to write my signal properly when writing is enables.. however, if i change the "Write to measurement file" Express VI to a Write to Spreadsheet function, the signal is written correctly. From what I understand in previous discussions, there is a bug associated with enabling a write to measurement file, so is there a way to enable write to spreadsheet instead of using the express VI or is there a way I can bypass this bug?

 

Thanks,

 

TFlax

0 Kudos
Message 1 of 4
(3,423 Views)

It would be nice if you would define 'doesn't seem to write my signal properly' with some actual details.

 

You can place anything you inside a case statement. You've already got several case statments so I don't understand your confusion

 

p.s. Why are you using the Select Signals function instead of the Split Signal. Does the same thing without using all that screen space. And why would you have all of those separate case statements and separate constants when one of each will do. The event structure the way you are using it seems silly as well.

0 Kudos
Message 2 of 4
(3,414 Views)

This is my second program ever written, first in matlab, so I am very new to the field. So why I choose one way over another I have no reasoning, all I know is that it works. I am collecting electromyography analog signals, with a range of +/-5V.. the "bad" writing with write to meas file is that I am getting a flat signal (range between -.01 to +0.01, give or take).. where when written with write to spreadsheet, the signal has proper voltage range and normal frquency and amplitude characteristics seen in EMGs.

 

I tried using a case structure for the write to spreadsheet, however it only writes the buffer size during continuous sampling. I need it to write the entire time the boolean (enable button) is true, also the enable button is operated as switch when pressed.

 

The discussion about the write to measurement file: http://forums.ni.com/ni/board/message?board.id=170&message.id=454380

 

Thanks again

0 Kudos
Message 3 of 4
(3,397 Views)

Have you tried that patch in the link you posted? Even without the patch, you would be getting an error. Do you have automatic error handling turned on?

 

If your case statement with the write to spreadsheet is not working when the enable button is true, then my guess is you have a wiring error. Post that code.

0 Kudos
Message 4 of 4
(3,384 Views)