Need som basic help, I am brand new to AMX programming.
oleabakk
Posts: 8
Hi there.
I have just started working with AMX programming, and have a NI-3000 to work with. To start with I have two IR senders which I wan't to try out with a receiver and a projector. I have followed all guides I can find, and thought I was doing things right, but apparantly not.
First thing, I have telnet into NI-3000 to try to send commands via telnet. To just do a basic operation, I wanted to send on IR port 2, with channel 9 which I understood is power for the receiver after reading from IREDIT. I tried "pulse[1:10:0,9]" which then states that it pulses. I see a small flash at the IR light on the NI-3000, but nothing happens. I try different IR ports, and find out that this is the only IR port that flashes when I try this command. I of course changed the port number, like: "pulse[1:9:0,9], pulse[1:10:0,9], pulse[1:11:0,9], pulse[1:12:0,9], and so on..." If I try the "ON" command, port 2 is the only one lit. What does this means? Is all of the others broken, or isn't it supposed to light at all? If I try port status via Netlinx Studio, they all come up with the same result. And I suppose it isn't as easy to just send a pulse via telnet. Is it a easy way to send commands through Netlinx Studio the same way?
And I have read about the DUET firmware which is able to run Java modules, I don't think I have the DUET firmware installed now. Is it possible to upgrade from regular to DUET? And is there a good guide on using Java modules instead?
If someone could help me with some of this questions, I would be very thankful. I am a complete newbie when it comes to AMX programming.
I have just started working with AMX programming, and have a NI-3000 to work with. To start with I have two IR senders which I wan't to try out with a receiver and a projector. I have followed all guides I can find, and thought I was doing things right, but apparantly not.
First thing, I have telnet into NI-3000 to try to send commands via telnet. To just do a basic operation, I wanted to send on IR port 2, with channel 9 which I understood is power for the receiver after reading from IREDIT. I tried "pulse[1:10:0,9]" which then states that it pulses. I see a small flash at the IR light on the NI-3000, but nothing happens. I try different IR ports, and find out that this is the only IR port that flashes when I try this command. I of course changed the port number, like: "pulse[1:9:0,9], pulse[1:10:0,9], pulse[1:11:0,9], pulse[1:12:0,9], and so on..." If I try the "ON" command, port 2 is the only one lit. What does this means? Is all of the others broken, or isn't it supposed to light at all? If I try port status via Netlinx Studio, they all come up with the same result. And I suppose it isn't as easy to just send a pulse via telnet. Is it a easy way to send commands through Netlinx Studio the same way?
And I have read about the DUET firmware which is able to run Java modules, I don't think I have the DUET firmware installed now. Is it possible to upgrade from regular to DUET? And is there a good guide on using Java modules instead?
If someone could help me with some of this questions, I would be very thankful. I am a complete newbie when it comes to AMX programming.
0
Comments
You are using the right method to pulse them from Telnet (well, one of the right methods ). Have you actually uploaded the IR files to those ports?
I fell kinda stupid right now, but no I haven't uploaded the ir file to the IR port. I haven't done it before so I thought perhaps it would be sufficient if the .irl file existed in my workspace.
Do I use Netlinx Studio to upload the IR file to a spesific port? And is it possible to see what IR file that allready exist on the actual port?
Yes. Here is the conventional method (there are others)
Create a program in NS2 which declares the relevant device:
You may have to compile it to make it visible in the workspace pane.
Add the IRL in the IR branch of the workspace pane: Right click on IR folder - Add existing file.
Map the IRL to the device: Right click on IRL icon - select device mapping - select dReceiver - click on Map.
Add to the File Transfer list: Tools / File Transfer - Add - select the IRL.
Now click on Send.
I don't think so. It shouldn't matter - just replace it.
1. Open IR file to use with IREdit.
2. Select: Tools, Comm Settings. Select Device Connection tab. Select the connection parameters needed for your system.
3. Select: Tools, Send. In the dialog box set the D:P:S for the IR port you wish to use. Select Send.
4. Select: Tools, Actuate. In the dialog box set the D:P:S for the IR port. In the channel list, select the command you want to test. Select Pulse. This will pulse the IR emitter.
Even IREdit requires the file to be loaded to the IR port first.
3. Select: Tools, Send. In the dialog box set the D:P:S for the IR port you wish to use. Select Send.
Rubs eyes vigorously ... . Ah, so it is . Entirely missed that.
Looking forward to trying it out. I am on course yesterday and today, so will try out til monday. Have I nice weekend meenwhile:-)
No wonder we werent getting any signals through when we didnt have any IR files attached to the IR senders
Now we have a fully working system controlled from the mobile phone, via telnet/python code. As for now we are just sending individual signals via Python and telnet to the NI-3000 box,and it isnt the fastest - and we cant seam to set the pulse length, so makes tweaking the amp a little hard.
Is it possible to access code from the program code on the box after compiling it?
Like, you make a program to "AMP:SHUTDOWN" - and you can just call on that from telnet? Since we want some of the things we do to pulse fast, and you cant seam to put in any pulse timer command directly into telnet.
If any of this makes sense and anyone understands what I am asking
Now just telnet into the NI master, turn on messages with ?msg on?, and SEND_COMMANDs or SEND_STRINGs to your virtual CLI.
HTH