LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1430 when writing to text file using cRio 9014/9103

Hi,

 

I am using NI 9221 modules on CRio 9014, whn I am trying to write the data in the test file using I am getting an error 1430 occured at open/create/replace file and said the possible reason is the path is empty or relative, you must use an absolute path.

 

Please help me on this issue.

 

Ajay Sharda 

0 Kudos
Message 1 of 19
(7,338 Views)

Hey Ajay,

 

First i would like you to look at this knowledge base article. This maybe as simple as changing your path extension.

 

If that doesn't work. Look below.

 

Does this occur when you are trying to compile a labview FPGA VI? If you are, in order to verify the problem create a new project from scratch which includes some I/O, create a new FPGA VI that uses these I/Os and then try compiling it.

 

If the compile is successful, then the resolution to this problem would be to check the original FPGA VI and make sure that it has valid I/O nodes corresponding to the ones defined the Project Explorer.

 

Regards,

 

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
Message 2 of 19
(7,308 Views)

Hi,

 

Thanks for your valuable comments. The mistake on my part wa that I have not taken the program under My Computer, I took there and it worked.

 

Thanks again,

 

Ajay

0 Kudos
Message 3 of 19
(7,297 Views)

Hi

 

I am using the above equipment and Ni 9221, The FPGA has a flat structure with loop timer of 10 ms and then 10 analog channels are being read. After compilation I am using this FPGA to read all channels and write the data in a text file along with get date and time.

  

The problem is I am not getting the exact 100 samples every second. They are ranging between 96 to 97 every second?? Can some one help me regarding that please??

 

I will appreciate

 

ajay

0 Kudos
Message 4 of 19
(7,286 Views)

Hi Sharda,

 

I was wondering if you could add a few ms and see if you acquire all of your samples. It just seems that you are not waiting long enough for all the values to become valid before looping. If this doesn't work, could you send a screenshot of your code? Thanks!

 

Regards,

Andrew Eddleman

Applications Engineer

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 5 of 19
(7,260 Views)
Hi 
 
 Here is the screen shot. Now I am getting almost 108 samples per channel per second as regards to 100 ideally. Also can you please correct me why I am not getting all the channels on the waveform graph?
 
Thanks
 
Ajay 

0 Kudos
Message 6 of 19
(7,239 Views)

Hi Sharda,

 

I think we can assume that your pc is just not looping as fast as the loop time rate that you set. this can be changed by adjusting your timer in your loop, until it executes properly or you could just insert a timed loop and see if that corrects the issue. As for the waveform "graph" (from the image it seems like you are putting them into a chart) , how many graphs are being displayed? It seems like you are doing things correctly, and waveform charts are able to take in more than 10 graphs, so what might help is if you could just post the vi so that I can see all the other stuff thats going on here.

 

Regards,

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 7 of 19
(7,199 Views)

Hi Andrew,

 

Many thanks for your constant help. I have run into different type of problem where in I am logging data to text file from 10 analog channels and also the true/false commands are sent to digital o/p channels and the data in the text file has two rows of same time stamp though the data values is different. Any ideas why this could be?

 

Like (time as sec.ms)

55.789   23   24   35  34

55.789    21  22   34   32

55.804   ......................

55.804   .........................

 

Please help,

 

Thanks,

 

Ajay

 

 

0 Kudos
Message 8 of 19
(7,093 Views)

Hi Ajay,

 

I guess I am confused to what you are asking. You have are getting data from 10 channels correct? Why do you have two rows of the same time stamp? It seems that you should just have one.  Could you send the file of your data as it was printed out? Also what input modules are you aquiring data from. What are Modules 4 and 2?

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 9 of 19
(7,077 Views)

Hi Andrew,

 

Please find attached the data file. My system has 1 Gb RAM 3.5 GHz processor. Is this the issue.  Also I modified the program bit. NI9221 Analog input modules. The repetition of time stamps has reduced quite a bit by changing the program but this text file give you the picture. The 5 decimal places was for trial just need 3 for the final day.

 

Many thanks

 

Ajay 

Download All
0 Kudos
Message 10 of 19
(7,065 Views)