10-29-2014 07:18 AM
This is the modified VI.
10-29-2014 11:09 AM
Is this VI running on the windows computer or on the sbRIO RT system?
If you are trying to create a file or folder on the sbRIO target, a syntax starting with "C:\" is incorrect.
10-29-2014 02:33 PM
@altenbach wrote:
Is this VI running on the windows computer or on the sbRIO RT system?
If you are trying to create a file or folder on the sbRIO target, a syntax starting with "C:\" is incorrect.
It also depends on the LabVIEW version. Since the original VI is in LabVIEW 2011 I believe your statement may be correct. In newer realtime targets they actually create simlinks such as /c/ni-rt and similar pointing to the actual Linux directory which makes a path showing C:/something on Windows translate correctly into /c/something on the NI Linux realtime system.
With sbRIO being VxWorks based and using LabVIEW 2011 your statment is however most likely true.
10-30-2014 12:21 AM
Hi,
You were all right. I had used "create folder" on the sbRIO target. When I created a new vi under Windows target (My computer), I got the log file.
If I want to create on sbRIO target, what should the syntax be?
So will the log file be stored in sbRIO's memory? How to access it?
10-30-2014 01:50 AM
10-30-2014 06:50 AM
Or create a shared folder on your main computer and let the sbRIO write to that folder using the network path.
10-30-2014 07:04 AM
Hi,
I am able to access the file now through FTP. Thanks
But I am not able to view continuously (simultaneously). That is, everytime I have to refresh my page to view the newly logged data.
Also, the data does not appear column wise (I mean the respective data is not under its respective column) even though I used a tab constant between them.
What could be wrong?
Here is the vi.
10-30-2014 07:20 AM
I don't think it will make any difference, but you shouldn't use Build Array when building up your report string. You should be using Concatinate String. I'm not immediately finding anything else that would cause the columns to be off. Do you have an example of your output?
10-30-2014 07:57 AM
Oh yes! Silly me. It should've used concatenate string.
Thanks.
06-15-2021 11:03 AM
GerdW - you are "newbie shaming" for no reason. In fact BOTH of the below methods are correct. If as you say "You create a file path by using string constants. THAT'S PLAIN WRONG! Use path constants whenever you want to handle paths!" were in fact even remotely true, why would "String to Path" even exist? Yes, your way is more efficient and what a seasoned LabVIEW programmer might do; but shaming someone AND providing incorrect information in the process simply because they did something a different way than you think is correct is both inaccurate and unfair. Both ways work. You should apologize. I know this is an old thread, but I felt compelled to comment.