LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Some issues with LabVIEW (2013)

Hello, I was trying to use my LabView with Arduino, but it just didnt wanted to work, after some analisis, I decided to try it in a virtual com port (Virtual COM2 connected with virtual COM3) using an example from internet to see if it is a LabView problem.

 

So, the example was just a high/low output selector with a switch, but it doesnt work the first seconds (Watch the video), and I dont know why. In this period, LabView is sending this (continusly): 

"ff 20 20 20 20 20 20 20 20 20 20 20 20 20"   (Hex)

 

I can figure out taking a look at Arduino's Firmware that the 0xFF means "Im Labview" but the commands and the checksum are all wrong (?)

 

Finally, when the switch decides to start working, LabView stop sending to the comport. What am I doing wrong ? Thanks

 

This is the video: https://youtu.be/1l1VumYjYLI

And I will attach the .vi just in case you need it.

0 Kudos
Message 1 of 7
(3,927 Views)
I can't see enough detail with the video and I'm posting by phone. Can you attach an image of the block diagram?
0 Kudos
Message 2 of 7
(3,857 Views)

Sure, here they are.

 

Please, note that I made an error before, I didnt notice it until now, really sorry. What LabView is sending is NOT this : "0xFF 0x20 0x20 0x20 ... " 

 

IS this: "0xFF 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00"

 

 

Download All
0 Kudos
Message 3 of 7
(3,811 Views)
The VI it's set to constantly send 0 and that seems to be what you are seeing with the 0x00. This is sent every 500ms to drive digital pin 0. I'm not exactly sure what your question is.
0 Kudos
Message 4 of 7
(3,793 Views)

Sorry if Im wrong but what I can get from this example is that the value sent depends on the switch state, 1 or 0. The problem is that it always send a 0, no matter what the switch state is. This also happends with all the examples or programs I make

0 Kudos
Message 5 of 7
(3,778 Views)

Ok, so I went deeper in the problem, I executed an example of a blinking led: Sin título.png

 

Using a probe, I can read that the function output changes between 1 and 0 each 500ms as expected, but Im getting this error: 

Warning 1073676294 occurred at VISA Read in LabVIEW Interface for Arduino.lvlib:Send Receive.vi->LabVIEW Interface for Arduino.lvlib:Set Digital Pin Mode.vi->BlinkLED.vi

Possible reason(s):

VISA:  (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available.

TX and RX leds from the arduino are blinking each 500ms but the output of pin 5 is always low. I have googled the error, and all I could find was "Ignore it" or "you must the pin as output before". Any ideas? Thanks

0 Kudos
Message 6 of 7
(3,767 Views)
Ignore it. The warning happens when the configure serial port is set for a termination character but one is not received. Never configure a termination character and use bytes at serial port.

Are you aware that LIFA is obsolete? You should be using the LINX toolkit. If the arduino is not sending s termination character, that is something that needs to be changed in the sketch.
0 Kudos
Message 7 of 7
(3,757 Views)