From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading, writing and sending http request using myRio

Solved!
Go to solution

Hello,

i created simple .vi to save data and send simple http request through wifi, but when i add them to my project file, they dont execute. The error i get is presented below. I'd like to add, everything works fine when i open vi outside project. The wi_fi.vi stands for sedsing simple http request and tdms.vi stands for simple datalogging. Also reading from .csv file acts the same. I tried to specify multiple paths (relative, absolute) and none worked. Please help,

Greetings

Damian

wififront.pngtdmsfront.pngtdmsback.pngwifiblock.pngproject.png

Download All
0 Kudos
Message 1 of 3
(4,348 Views)
Solution
Accepted by topic author Szyszku

The solution for following problem was:

.csv
In order to read from .csv file you need to put that file on myRio disk.
You need to think about it as a little computer. The same stands for saving TDMS file.
Use control "current VI path" to specify where your project is. For example, .csv path can look like this:
"/c/ni-rt/startup/KMC512.csv"
You can use string constant and string to path control.
For TDMS file, use build path control, and specify base path as:
"/c/ni-rt/startup/TDMS"
and get additional TDMS name.


If you want to access files on disk, make sure you have installed webdav packages for myRio.
In order to install additional packages, get into labview window select:
Tools -> Measurement & Automation Explorer -> Remote Systems -> NI - myRIO -> Software -> Add/Remove Software
In Wizard pick custom software installation and you will get this window:

current software.pnginstall software.png

 


Following this link u can get access through PC using disk mapping:
digital.ni.com/public.nsf/allkb/4EBE45E8A816B19386257B6C0071D025

 

For HTTP request or sending emails you need HTTP or SMPT packages, which you can install like the ones before.

0 Kudos
Message 2 of 3
(4,283 Views)
 

image.png

0 Kudos
Message 3 of 3
(3,184 Views)