LINX

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to registers

Hi!

I'm kinda noobish with both Arduino and LabView so I'm sorry if I ask something stupid. Basically I need a variable frequency PWM output from Arduino Uno so to do that I need to write to a few registers (TCCR1B/A, OCR1B/A, TCNT1) and set output (pinmode()). From what I gather LINX doesn't have such functionality and the Duty Cycle block isn't fitting. I see there's a Custom CMD block but I'm not sure how to use it in LabView and how to generate code for it and the official tutorials seem to be deleted (or at least I can't access them). So, basically commands look for example like this (in C code):

 

 

Spoiler

TCCR1B = 0x18;
OCR1A = (int) (200);

pinMode(9, OUTPUT);

 

And I'd like to have a codeblock I can feed a few values (it will have to be in the form of an array from what I gather but that's not a problem), git a button and let it upload the values. Any help will be greatly appreciated, thank you in advance

0 Kudos
Message 1 of 4
(5,353 Views)

Hi Maniak82,

Did you look into the github repo for LINX? https://github.com/MakerHub/LINX

There may be a few hints or others you can hook up with that may have some answers. I do struggle to find documentation now as well. The youtube channels are still active.

Also I just stumbled upon this: https://www.youtube.com/watch?v=DGTbRQR-x_4

 

L.

0 Kudos
Message 2 of 4
(5,273 Views)

From another post I came across this link that archives the old makerhub docs...

 

http://web.archive.org/web/20200925143051/https://www.labviewmakerhub.com/doku.php?id=learn:librarie...

 

 

Message 3 of 4
(5,025 Views)

Hi, I managed to dig through the web archive you linked and finally found a simple tutorial for custom commands here http://web.archive.org/web/20201029172546/https://www.labviewmakerhub.com/doku.php?id=learn:tutorial... (leaving the link if anyone stumbles upon this) . It's not as extensive as I thought it would be but seems like it's a good headstart and should be enough to accomplish my goal. Thank you

0 Kudos
Message 4 of 4
(4,939 Views)