NI Labs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Cloud Dashboard Service Discussion

Hey Chris,

trying to test your example: What do you mean by "Default data folder" on the myRIO?

I changed the path value and now I can deploy the source code withou any problems.

But an error is encountered stating that the file was not found.

Here ist the changed path (also copied the file to that location):

error_file_cdb.PNG

Still have no idea why my code won't compile...

Kind regards

Niels Göran

0 Kudos
Message 11 of 43
(2,451 Views)

The file should be on the myRIO at /home/lvuser/natinst/LabVIEW Data/keyFile.txt

Here is a document describing how to transfer files to the myRIO

http://digital.ni.com/public.nsf/allkb/4EBE45E8A816B19386257B6C0071D025

I build web apps for LabVIEW
http://chrislarson.me
0 Kudos
Message 12 of 43
(2,451 Views)

Hey Chris,

got your example working now.

I had to also install "NI Sysem Configurator 5.6.0" as well...

CDB_Software.PNG

Feature Requests:

- Disable device notification email per device
  Especially during testing I'm flooded with emails when I restart the device.. Since I know which device is going to show up, I would like to disable the email notification just for that device

- Allow modification of the device name or correlate key name with device.. (I assume, each device should use an unique key anyway...)

Still no luck with my own source code...

Could you try to deploy my source code on your myRIO ?

Thanks!

Kind regards

Niels Göran

0 Kudos
Message 13 of 43
(2,451 Views)

Hi Niels,

1. Below is the way to turn off email notifications

Click on your user name on the top right corner which will take you to the page where you can turn off the

notifcations using a toggle.   

notifcation1.png

notification2.png

2. You can always update a key name (to something correlating with the device) in the keys tab.

Below are the steps to do the same

  • click on the "Keys" tabs

key1.png

  • click on the gears tool associated with the key and update the name or permissions

key2.png

key3.png

Do you want to be able to change the name of the device by an API call from the VI, or in the portal?  Can you tell us the use case so we can get a sense of how important this feature would be?

Thanks,

Revanth

0 Kudos
Message 14 of 43
(2,451 Views)

Dear Revanth,

thank you very much for your answer. Especially the notification toggle is helpful.

Regarding the feature requests:

From the portal, I'm able to change the name of the key, whihc doesn't equal the name of the device.

In the LabVIEW program I can use different names for different devices with the same key.

I would prefer a one key = one device (=fixed name of the device via the key) principle.

That way, you could interchange systems (from one hardware setup to a second hardware setup) by interchanging the key.

For example a temperature logging system with the myRIO:

On a USB memory stick, there is the key file.

I have multiple temperature loggers. If one fails, I just remove the memory stick, replace the device and insert the memory stick again and the new data logger (containing general software) will become the measurement node that just failed. That way I wouldn't have to change the ID within the source code and devices would be identified via the key and not the name.

Hope that helps. If not, please ask again about the specific part in question...

Thank you very much for offering Cloud Dashboard as a new tool in the LabVIEW "toolkit" to simply creating web-connected devices !!

Regards

Niels Göran

0 Kudos
Message 15 of 43
(2,451 Views)

Dear Chris,

I modified your example and I'm still able to deploy it. Whatever went wrong there with my source code...

In your example code, there are certain error removal VIs, especially regarding the error 554003.

What is the exact purpose of these or why are these errors disregarded?

During testing the Cloud Dashboard, I repeatedly ran into error, that appear to be related to timing.

For example, the VI runs fine, when Execution Highlighting is enabled, but encountered error 59 quite often, when executed normally.

Another frequent error is shown below:

Error_1.PNG

Could you explain this a little more or even better, give some advice on how to avoid timing error (probably caused by HTTP connection over the internet ?) ?

For everyone interested I attached my example code:

A simple LabVIEW program for the myRIO using its 4 built-in LED as relais simulators (as well as driving 4 digital outputs active low accordingly) and offering 4 corresponding triggers. This example is used with a SainSmart 8 Channel Relay Board (http://www.sainsmart.com/8-channel-dc-5v-relay-module-for-arduino-pic-arm-dsp-avr-msp430-ttl-logic.h...).

Key needs to be named "keyFile.txt" and be placed in the data directory as described by Chris.

Thank you for all your support and the good work!

Regards

Niels Göran

0 Kudos
Message 16 of 43
(2,451 Views)

I wasn't able to get your example running, without first deploying my example. It seems your Main.vi has a references to a Cloud Dashboard VI that is broken. If I first load my Cloud Dashboard.vi and run and then load your Main.vi and run it, then it works.

Error 554003 happens if the program tries to create a new event/control/trigger, but it already exists.

Error 59 occurs on the myRIO when an HTTP call fails, usually due to network failure, such as not being connected over WiFi, or probably in this case making an HTTP call while another HTTP call is still in process.

The timing errors occur because it takes 200ms (on average) for an HTTP call. I am working on ways to minimize this by combining multiple calls into a single call and also exploring other protocols.

Hope that helps,

Chris

I build web apps for LabVIEW
http://chrislarson.me
0 Kudos
Message 17 of 43
(2,451 Views)

Quick comment ....  I installed clouddashboard in 2013 SP1 and 2014, but the example that ships with the package isn't working. triggers are ok, but the graph on the page isn't updating.

I get 'Data published successfully.'  from the HTTP vi's used in:

CDB_Client\Feeds\PublishAiData.vi >> infoParameter\Update.vi

Data that is translated into string is the same data as the graph in the demo vi.

W.

0 Kudos
Message 18 of 43
(2,451 Views)

We were performing maintenance on the server. It is working now. Just refresh the web page before trying it again.

Thanks,

Chris

I build web apps for LabVIEW
http://chrislarson.me
Message 19 of 43
(2,451 Views)

Thx Chris. Works very nice.

0 Kudos
Message 20 of 43
(2,451 Views)