Page 1 of 1

Labview problem: IR Link with Power function

Posted: 02 Jun 2013, 14:57
by hknssn
Hello

I have recently dowloaded the 30 day trial version of labview 2010 (https://decibel.ni.com/content/docs/DOC-15615) and atm im trying to figure out how to use the diffrent sensors that i normaly use.
The problem is that i cant seem to get the IR link sensor to work :(.

The ir link sensor was not in the nxt toolkit that you got in the download but i found a ir link block at Hitechnics webpage "IRLink - Power Functions (Extended) VI" (https://www.hitechnic.com), however it said that its for labview 7.1.

Here is a attempt to get the block working and control the pf motors. The result is that nothing happends.
ImageImage
Im not sure what the sequence flow in does so i just connected it to a switch so i could try it in both condidtions.


Image of the "IRLink - Power Functions (Extended) VI" block.
Image
The block diagram for the block was really big but i can upload some images of it if needed.

So far my only experiance with labview is basic controll of the nxt servo motors and reading values from the touch, color and ultrasonic sensor with/without multiplexor.
So if anyone with some experiance with the IR Link sensor for labview could give me some hints of what im doing wrong it would be really appreciated.

//Hknssn

Re: Labview problem: IR Link with Power function

Posted: 03 Jun 2013, 13:52
by hassenplug
A couple comments...
1) Make sure the NXT port is NOT 0-based. The easy way to do that is to use your same program, and plug the IRLink into port 2.
2) The sequence beam is only required if you want to execute several block in sequence. Not really needed here.
3) Is the stop set to true? (does the program continue to run, after you press the run button?)

For some reason, I think the ports are 0 based. That may have caused me problems, also.

Good luck
Steve

Re: Labview problem: IR Link with Power function

Posted: 03 Jun 2013, 21:44
by hknssn
hassenplug wrote:A couple comments...
1) Make sure the NXT port is NOT 0-based. The easy way to do that is to use your same program, and plug the IRLink into port 2.
2) The sequence beam is only required if you want to execute several block in sequence. Not really needed here.
3) Is the stop set to true? (does the program continue to run, after you press the run button?)
1.Tried to change the port, didnt do anything.
3. the program continued to run forever.


Eventually i gave up and dowloaded another IR link block.
With this one i managed to get a motor to start. However it didnt work every time and i could only use the power function speed 7, -1 and -5 so i couldnt stop the motor on the rare occasion that it acctually started.
After several hours bashing my head to wall i figured that either A: Hitechnic realeses bad labview block or B: somehintg is wrong with my software/computer.

So to remove my computer out of the equation i ran the program in "VI for NXT target" instaid of "VI for computer Target" which worked fine to run the servos and other sensors.

I downloade a program to the brick and then all the IR-link function worked as the should instantly...

So i guess the lesson is, you cant use the IR-link sensor in "VI for computer Target" mode, which is sad since the plan was to have a control interface for my machines/robots on the computer.
But i guess its possible to have 1 nxt using "VI for NXT target" and another with "VI for computer Target" and just send commands between them with bluetooth.

//Hknssn