10-30-2012 09:54 PM
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
10-30-2012 10:47 PM
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
10-30-2012 11:49 PM
Thank you hrh1818,
I have set the alias in NI visa config like in the screen shoot,
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?
10-31-2012 11:37 PM
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
11-01-2012 05:19 AM
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
11-01-2012 08:21 PM
yes I using
dev/tty.usbmodem1d11
regard
daniel
11-01-2012 11:00 PM
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
11-01-2012 11:25 PM
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
11-02-2012 09:24 AM
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
11-02-2012 09:40 PM
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