Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Write To Measurement File in Real-time application

Hello. I have a problem with "Write To Measurement File" block. In example vi it works fine, but when i try to use it in my Real-Time application, it doesn't even create the file no matter what the input signal is (real or simulated). When I check "Ask user to choose file". I get this warning.

Error 1 occurred at -> target - multirate - variables - fileIO.vi

Possible reason(s):

LabVIEW:  An input parameter is invalid. For example if the input is a path,
the path might contain a character not allowed by OS such as ? or @.
---
NI-488:  Command requires GPIB Controller to be Controller in Charge.

I have tried to save data even as C:\test.lvm with only input signal and error out conneced, but it still doesn't work. I use PCI-6229 with SC-2345. Can someone help with this?

-Sami

0 Kudos
Message 1 of 4
(3,880 Views)
I forgot to mention that software varsion is the latest 8.2.

-Sami
0 Kudos
Message 2 of 4
(3,878 Views)
Don't forget that eventually when you compile your RT application, the front panel will be removed. It doesn't make sense to ask the user to choose the file name if the you can't see the front panel. It will work if you uncheck that feature and wire a file path constant to it. So what you need to do is ask for the file path on the host PC and have it transferred over to the RT using a shared variable. Although most of the time, you just generate a temp file name on the RT and have the user select the file name he/she wants on the PC instead because that's where it matters the most, I believe.
0 Kudos
Message 3 of 4
(3,812 Views)
Please could you post your code?
Regards
Pierre R...

Certified LabVIEW Developer
0 Kudos
Message 4 of 4
(3,618 Views)