LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Any example code for using the BlinkM?

I noticed the LIFA provides support for the BlinkM. This is cool. I noticed we can set the color, but can we also program the BlinkM? Do you have any examples at all using the BlinkM?

0 Kudos
Message 1 of 4
(4,974 Views)

I just put together a quick exaample using color sliders to control the BlinkM.  You can find it here: https://decibel.ni.com/content/docs/DOC-16261

As for the BlinkM Functionality you get the following:

GoToRGB

FadeToRGB

FadeRandomRGB

Play Script

Stop Script

Set Address

Set Fade Speed

Set Time Adjust

Write Script Line     (This allows you to create custome scripts to store on the blinkm.  Once you write a script and set the BlinkM to play that script on startup you only need to connect power and ground and the BlinkM will play the script with no other control neccissary).

Get RGB Color

Get Address

Read Script Line

You can get BlinkM's here: http://www.sparkfun.com/products/8579

-Sam

LIFA Developer

Message 2 of 4
(3,160 Views)

Almost two years later I would like to get the BlinkM.vi example to work on Arduino Uno R3 in Labview and Arduino 1.0.3

LIFA in LabView 2012 f3 running BlinkM.vi always gives this error: 5002 Init.vi.  Unable to establish connection with Arduino.  Please ensure that you have selected the correct COM port and that you have flashed the Arduino with the correct firmware.

I have repeatedly checked everything: driver installation for Arduino UNO REV3.inf, conversion to a VISA resource using NI-VISA 5.2, opened a VISA test panel, and tested with Arduino 1.0.3.

Any suggestions? This thread looks dead. On my system the Arduino Uno is on COM14 which I have set in LabView Init.vi and Arduino 1.0.3 Nothing helps. What's the secret sauce?

Vincent Randal

Longmont, Colorado

0 Kudos
Message 3 of 4
(3,160 Views)

Is this issue specific to BlinkM.vi? (Are you able to run other VIs?)  That error that you receive implies otherwise.  It usually has nothing to do with any one particular VI.

0 Kudos
Message 4 of 4
(3,160 Views)