LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File .bin on cRIO's memory and acquisition

Hi to all.
I have got two problem.
I'm acquiring signals with the VI that i've posted.

First Problem

Now i have put in the VI a sub_VI called Freq-Att-FIR that is a filter and that read information of filtering by a file .bin.
I've tried to run this sub_VI on a different VI (not on cRIO) and it works and i'm sure on it....the problem is that if i put this sub_VI in the VI of the acquisition it doesn't work...i suppose it has problem to read the file...i think that probably the cRIO doesn't see the file .bin on my desktop.

Second Problem

I see that after an acquisition i have always some elements remaining...i want that the elements remaining cames to the index 0 of the new array (i mean at the start of the new array). So i 've put a case structure...but i see that, also if he put the elements remaining at the start of the new array, on the graph i see some superimposition of elements. how can i avoid this problem too?

For one better understanding i've put on the block diagram of the VI a written where i've got problems.
Tnx for the help

Message Edited by Salvio on 02-08-2007 09:23 AM

Message 1 of 9
(5,638 Views)
nobody can help me plz?Smiley Sad
0 Kudos
Message 2 of 9
(5,621 Views)


@Salvio wrote:
Hi to all.
I have got two problem.
I'm acquiring signals with the VI that i've posted.

First Problem

Now i have put in the VI a sub_VI called Freq-Att-FIR that is a filter and that read information of filtering by a file .bin.
I've tried to run this sub_VI on a different VI (not on cRIO) and it works and i'm sure on it....the problem is that if i put this sub_VI in the VI of the acquisition it doesn't work...i suppose it has problem to read the file...i think that probably the cRIO doesn't see the file .bin on my desktop.


Regarding your first question, you are correct. Any VI running on LabVIEW RT can only see and access files stored on the local RT file system. It does not have access to the files on the Windows development machine. In your case you need to manually copy the .bin file to the drive on the RT system and point your Filter VI to the correct location of the copied .bin file. You can copy files to the RT system using FTP. In a Windows file explorer you can simply type in the IP address of the RT system, for example ftp://10.0.22.144/.

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 3 of 9
(5,616 Views)
df

Message Edited by martinmistere on 02-08-2007 12:08 PM

0 Kudos
Message 4 of 9
(5,611 Views)
yes i've saved the file .bin in the cRIO memory (in the system for the precision)  with the ftp but probably i'm making a mistake when i try to call it from the VI of windows....because i've done
c:\coeff.bin
but i see that it gives error and doesn't acquire nothing...
how i can correct this error?Smiley Sad
0 Kudos
Message 5 of 9
(5,608 Views)
I tested reading the filter coefficients on my RT system and it works fine here. Make sure you have the path of the file correct. In your last post you listed c:\coeff.bin, while in your LV diagram you have c:\ni-rt\coeff.bin.
 

Message Edited by Christian L on 02-08-2007 01:16 PM

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
Message 6 of 9
(5,599 Views)
i've tried again christian but and this time i've executed the VI with hightlight execution and what i've seen is that i acquire the data from file .bin and the FPGA starts but it doens't enter in the while loop.
I'm sure that the VI of the acquisition is good because i've tried to execute it without the Filter FIR and it starts without any problem.
Can u help me to solve this problem?
Tnx for the help you have given to me. Smiley Happy
0 Kudos
Message 7 of 9
(5,578 Views)
it is like if he starts to read the file .bin from the cRIO system and then isn't able to acquire the data but i don't understand why.
when you lunch the VI on your RT target does the acquisition start? or have you tried only to read from the memory?
tnx again and sorry if i'm so insistent but i don't know how to solve this problem and i need to solve it  within this evening because it is my last work on cRIO before of my thesis. Smiley Sad
Tnx for the help again.
0 Kudos
Message 8 of 9
(5,571 Views)
i've added a case structure and now it works Smiley Happy
tnx for all
0 Kudos
Message 9 of 9
(5,563 Views)