Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

can myrio accepts files from database as input

hie 

I want to give ECG files in the pc as  input files to VI in myrio, is it possible?

 

 

thanks

0 Kudos
Message 1 of 11
(6,578 Views)

myRIO has nonvolatile memory of 256 MB.  I guess if you can run your VI in LabVIEW-RT, then you should be able to access this memory for your VI.  Usually the nonvolatile memory are accessible from PC via FTP protocols.

--
Ajay MV


0 Kudos
Message 2 of 11
(6,574 Views)
hie sir, I tried to access files directly when rio is connected to pc, but my vi is not running. Can you explain in detail how those files can be accessed through ftp. thanks regards
0 Kudos
Message 3 of 11
(6,530 Views)

Hi, 

 

 Lets take this step wise. 

 

1. Make sure your program is ready and working under the myRIO target when you have it connected to the PC. You can access the file stored on your PC on the myRIO in this mode. 

2. If all works well in the first option, copy paste the ECG file from your computer to the C: drive of the myRIO. To access this, you will need to ensure that "Legacy FTP support" is installed on the myRIO. If it is not, go to Add or Remove software for myRIO from MAX, and put this in. 

 

Next, you can copy the file through ftp to the myRIO, and access this file throug its path in the VI.

 

Hope this works.

 

-Suraj Pawar

AE, NI India

Message 4 of 11
(6,509 Views)

Maynak94,

 

As Suraj said, do the steps you should be able to access the files in myRIO thorugh FTP.

 

Here I have attached a sample code which makes use of a simple text file to determine if "TRUE" is written, if it's written then myRIO will set the LED0 to TRUE.  You have to create a text file named "sample.txt" with TRUE text in it and copy it to ftp://<myrio-IP-address/c/.

 

Thanks,

Ajay.

--
Ajay MV


0 Kudos
Message 5 of 11
(6,499 Views)

hie 

  I have two doubts regarding this,

1.You said copy the files in myrio folder, did you mean copying the ecg files in the folder where myrio project is saved?

2.when I tried to install 'Legacy FTP support' as you said in myrio, I dont find it in NIMAX. Is there any alternate for this?

 

thanks and regards,

mayank

0 Kudos
Message 6 of 11
(6,441 Views)

Mayank, 

 

 If you are unable to see legacy ftp support, let it be for now. Directly try to open FTP link to the myRIO. Yes, you are supposed to place the ecg file anywhere in the C drive of the myRIO. Be sure to access this file from the right path in your code. 

 

Regards

Suraj Pawar

AE, NI India

0 Kudos
Message 7 of 11
(6,413 Views)

Hie suraj 

    I have created a mapped network drive for myrio, copied ecg files in the C: drive of myrio  and when i gave same path for file input in VI ,Iam unable to get   ECG.

    Iam attaching screenshot of VI i used.

 

 

thanks regards

0 Kudos
Message 8 of 11
(6,406 Views)

Hi, 

 

 Instead of creating a mapped drive, try directly pushing the file to the myRIO through FTP. If, for example, the IP address of your myRIO is 192.168.1.1, then you should enter in Windows Explorer "ftp://192.168.1.1". This will open the c drive of the myRIO. You can paste the file there. Thereafter, you can access the path through c:/<name of your file>. 

 

In the VI you have made and tried, try to create an indicator to the error out and see if an error is coming up. I feel it hasn`t found any file in the path mentioned. 

 

Regards

Suraj Pawar

AE, NI India

0 Kudos
Message 9 of 11
(6,365 Views)

hie suraj,

   I have done as you said but when i gave output of one express Vi(read from measurement file) as input for second express Vi(wavelet denoise) iam not able to get output at second VI, I also tried to give input of first expressVI to normal tools like peak plot but no result. 

                          What my doubt is Iam able to access ECG from database but Iam not able to process it further.(iam attaching screenshot of my vi)

                                    

 

thanks for your support.

0 Kudos
Message 10 of 11
(6,329 Views)