LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Using labview arduino in mac?

Hi,

I am using mac, labview 2011 and arduino uno and using NI Visa 5.2 for mac, but I am new in mac system.

I want to build application to get data from sensors analog or digital and connected to my arduino uno using labview.

but I confused to build labview, expecialy to connect fungtion arduino init with visa resource (I can find visa resource in my labview).

Can I change to other functions? or I miss to find visa resource.

If I can change, what port do I have to put in the task? because in mac there are no com there.

Thank You

regards

Daniel

0 Kudos
Message 1 of 14
(8,013 Views)


Check out a previous discussion "Tips to get Arduino working in Macintosh OS".  See:

<https://decibel.ni.com/content/message/30264#30264>

Next look at some of the LIFA examples that come with Labview to get started on learnig what a Labview prorgram that uses LIFA llooks like and building your own programs.

hrh1818

0 Kudos
Message 2 of 14
(5,475 Views)

Thank you hrh1818,

I have set the alias in NI visa config like in the screen shoot, ni visa config.jpg

that ASRL6 is connected to arduino, and I set the name with arduino,

but the problem is the visa resource is not exist in my labview, can i change it with other?

0 Kudos
Message 3 of 14
(5,475 Views)

Hello Daniel,

I started writing a reply.  However, I made a bad keystroke and lost everythig I wrote.  I will try again tomorrow to send a reply. 

Does the Arduino IDE say the port for the Uno is something similar to dev/tty.usbmodem121 on your Mac?

hrh1818

0 Kudos
Message 4 of 14
(5,475 Views)

Thankyou for your response,

actualy I am not in the lab today, tommorow I will check whether the port of my arduino uno is dev/tty.usbmodem121

regard

Daniel

0 Kudos
Message 5 of 14
(5,475 Views)

yes I using

dev/tty.usbmodem1d11

regard

daniel

0 Kudos
Message 6 of 14
(5,475 Views)

Hello Daniel,

Here is a procedure for manually setting the VISA resource.

1.  Open one of the LIFA example.  A good one is the Arduino Read Pin.VI.

2.  Open the block diagram.

3.  Look for the Arduino Init sub VI on the left side of the block diagram.

4.  Right click in the upper left corner of the Arduino Init sub VI.

5.  Select Create > Control.

6.  You should see an Icon labelled Visa Resource connected to the Visa Resource terminal of the Arduino        Init sub VI.

7.  You should also see a control labelled Visa Resource on the front panel.  You may have to expand the front panel window to see this resource.

8. Verify the Arduino is connected to your Mac.

9  Verify that by using the "Operating Tool" you can select the serial port your Arduino board is using.  This could be either dev/tty.usbmodemfa121 or dev/cu.usbmodemfa121.

10.  Run the VI.

hrh1818

0 Kudos
Message 7 of 14
(5,475 Views)

Thx for your suggestion,

I have tried, and almost succeded, you save my days.. Do I have to put program to my arduino? because my labview cannot read the analog input

If I want to add input so I have to have another arduino init?

regard

daniel

0 Kudos
Message 8 of 14
(5,475 Views)

Hello Daniel,

To read nultiple Analog inputs do not add another Arduino Init.   Instead use the method shown in the figure in the first message in this thread.

<https://decibel.ni.com/content/message/26857#26857>

Hint, click on the block digram to see a larger figure.

hrh1818

0 Kudos
Message 9 of 14
(5,475 Views)

Thank you,

Do I have to program the arduino board if I use program labview like this? because I fail if I did not program it.

regard

daniel

arduino_labView.png

0 Kudos
Message 10 of 14
(5,475 Views)