-
Posts
692 -
Joined
-
Last visited
-
Days Won
21
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by Jordan Kuehn
-
What do you think of the new NI logo and marketing push?
Jordan Kuehn replied to Michael Aivaliotis's topic in LAVA Lounge
Perfect. I know exactly what I missed. Thanks! -
LINX SPI CE Line select - Raspberry Pi
Jordan Kuehn replied to Jordan Kuehn's topic in LabVIEW Community Edition
At risk of derailing my own topic I'd like to see if someone might be able to shed some light on my original problem. Below is a snippet of code that I've put together in an attempt to replicate a python routine that is not functioning properly. It works fine in python. Address is 1 and I have tried a variety of CS pins, modes, bit order, and asserting the Frame line or not. And the Python routine attached, relevant sections below. This is for a RELAYPlate hat. GPIO.setmode(GPIO.BCM) RELAYbaseADDR=24 ppFRAME = 25 ppINT = 22 GPIO.setup(ppFRAME,GPIO.OUT) GPIO.output(ppFRAME,False) #Initialize FRAME signal time.sleep(.001) #let Pi-Plate reset SPI engine if necessary GPIO.setup(ppINT, GPIO.IN, pull_up_down=GPIO.PUD_UP) spi = spidev.SpiDev() spi.open(0,1) localPath=site.getsitepackages()[0] helpPath=localPath+'/piplates/RELAYhelp.txt' #helpPath='RELAYhelp.txt' #for development only RPversion=1.1 # Version 1.0 - initial release # Version 1.1 - adjusted timing on command functions to compensate for RPi SPI changes def getID(addr): global RELAYbaseADDR VerifyADDR(addr) addr=addr+RELAYbaseADDR id="" arg = list(range(4)) resp = [] arg[0]=addr; arg[1]=0x1; arg[2]=0; arg[3]=0; ppFRAME = 25 GPIO.output(ppFRAME,True) null=spi.xfer(arg,300000,60) #null = spi.writebytes(arg) count=0 # time.sleep(.01) while (count<20): dummy=spi.xfer([00],500000,20) if (dummy[0] != 0): num = dummy[0] id = id + chr(num) count = count + 1 else: count=20 GPIO.output(ppFRAME,False) return id RELAYplate.py -
What do you think of the new NI logo and marketing push?
Jordan Kuehn replied to Michael Aivaliotis's topic in LAVA Lounge
If they would make the product page usable again I wouldn't care one bit. It is absolutely miserable to find a c-series module for example. They did at least move the data sheet link to the pop-up but wow is that thing bloated and terrible. -
LINX SPI CE Line select - Raspberry Pi
Jordan Kuehn replied to Jordan Kuehn's topic in LabVIEW Community Edition
I also noticed after looking around some more that it was a static call to spidev0.1. Ironically this is what I think I need so I may have another issue. It sounds like you are making some serious updates to the code. I agree that if there is no arbitrary CS pin selected it shouldn't force you to pick one and toggle it for no reason. Are you planning to submit these changes as part of a contribution to the github or release the changes at all? -
After some googling and looking at the LINX Source Code I could find, it seems like the SPI functions do not make use of the CE lines on the Raspberry Pi and perhaps default to CE0 in parallel with whatever GPIO line is selected by the user. The device I'm looking to connect to uses CE1 and I'm having some trouble finding a way to make this work, short of breadboarding the thing and making the connections manually. Does anyone have any insight here?
-
Did this update happen and is this alive still? Looking to give it a try on some linux targets as well as Windows. Thanks!
-
Installation Failed Raspberry Pi 3b (and 4)
Jordan Kuehn replied to Jordan Kuehn's topic in LabVIEW Community Edition
The QwaveSys Raspberry Pi Package for LabVIEW 2.0 appears to install the Digilent LINX Toolkit as a dependency. -
I have an application where I have a handful of windows and linux cRIOs (and potentially RPis) that all need to talk to each other and (already) communicate to an existing remote MQTT AWS instance. Some of the discussion at the end of this topic is relevant as I've looked at DDS, but I didn't want to resurrect that post and take it further off topic. The licensing for DDS is quite expensive and they don't have a "LabVIEW toolkit" pricing package, rather a mix of product line pricing per project and developer licenses. The speed and "determinism" of the databus is attractive, but perhaps unnecessary for this application. The built in LabVIEW options aren't as flexible as I would like in regard to automatic discovery and establishing connections (and NSVs are not supported on RPi, but streams might be?), but I would be happy to have my mind changed. This all is to say I keep coming back to the concept of using MQTT locally as well as remotely and bridge the brokers, much of the logic is in place or could expand to fit the local requirements. The local communication would handle commands and tags/current values between systems and the brokers would package a subset of that to be sent remotely. This blog post from 2017 gave me some inspiration. Has anyone gone down this road and has any feedback or suggestions pro/con?
-
Installation Failed Raspberry Pi 3b (and 4)
Jordan Kuehn replied to Jordan Kuehn's topic in LabVIEW Community Edition
I had originally left things as is. However, there was an error with the LMH-LINX I2C Open VI when I tried to run it in an example program. It was an unknown error. That is what prompted me to pull down the LINX toolkit from VIPM thinking there was a more up to date version. This did resolve the error and things worked after that. Until I tried to configure another Pi. Is the LMH-LINX toolkit also included with LV2020CE? I supposed it's possible that I had that dependency included in the example code I was running (The Automation Hat code from MediaMongrels that I grabbed from the VIWeek presentation) and it was somehow out of date. If this is of interest I can recreate this as it's just in a VM. I don't like that installing the package broke the tool included in CE, but I will not make that mistake again 😀 -
Installation Failed Raspberry Pi 3b (and 4)
Jordan Kuehn replied to Jordan Kuehn's topic in LabVIEW Community Edition
Good question. This is LV2020 Community Edition in a VM. The toolkit VIPM pulled down is Digilent LINX version 3.0.1.192. -
Installation Failed Raspberry Pi 3b (and 4)
Jordan Kuehn replied to Jordan Kuehn's topic in LabVIEW Community Edition
So, I decided to try formatting the SD card once more and running the repaired LINX installer. That seems to have solved my problem. However, I am a little disturbed that installing the LINX package broke the built-in LINX tools and seemingly reverted them to the LV 2014 version. I don't think I did anything out of the box here, just opened the VI Package Browser and installed the LINX toolkit. -
Installation Failed Raspberry Pi 3b (and 4)
Jordan Kuehn posted a topic in LabVIEW Community Edition
I am working with a Raspberry Pi 3b and am having trouble with running the LINX Target Configuration on it. I had initially done this without issue. Then I reformatted the SD card and tried to do this on a Raspberry Pi 4 and the installation failed. I formatted the card again and tried to go back to the 3b and cannot get it to work. I had installed the LINX package from VIPM when working with it initially and that seemed to fix some connection issues in the labview code, but it also changed the target configuration wizard. I've uninstalled the toolkit, repaired the LV installation and it is back to the original wizard, but still it is giving me an issue. Now I finally have an error log to look at and there seems to be an issue with the feed from Labviewmakerhub as shown below (also it thinks it's a Pi 2 b for some reason, but it did that the first time too): Any suggestions on what to try next? LINX_Log.txt -
We had a customer a while back use GSM modems from SEA like this and configure it with a VPN that worked well for them. I believe when all was said and done it could be targeted from within the Project Explorer on the local PC in LabVIEW even, in addition to accessing it via FTP/MAX/etc. I can look back through my notes and see if anything else jumps out, but I think this is a good approach if you can deal with setting the VPN up.
-
LabVIEW Community Edition Announced
Jordan Kuehn replied to hooovahh's topic in LabVIEW Community Edition
From the VIWeeks post: Tuesday 19th May -
NXG, I am trying to love you but you are making it so difficult
Jordan Kuehn replied to Neil Pate's topic in LabVIEW General
To be fair, CG has so many oddities regarding where you need to place the mouse to get Auto-tool to work correctly as well. For most of us they are second nature, but at times when I'm coding in front of someone I suddenly realize how ridiculous (and intricate) some of the mouse work is. I also notice when having to code over a remote connection and there is even a tiny lag on the mouse. -
LabVIEW Community Edition Announced
Jordan Kuehn replied to hooovahh's topic in LabVIEW Community Edition
I've had this one for years now and I love it. Fortunately (or unfortunately) the stay-at-home order has not affected my daily commute to the home office. -
LabVIEW Community Edition Announced
Jordan Kuehn replied to hooovahh's topic in LabVIEW Community Edition
You always make me smile when I read something similar to "just some busy work to do"! It's been a long time since I have had occasion to make LabVIEW wrappers with the CLFN and I did not relish that experience! Perhaps the open source code is workable? https://github.com/mccdaq/daqhats/ -
LabVIEW Community Edition Announced
Jordan Kuehn replied to hooovahh's topic in LabVIEW Community Edition
A raspberry pi or an MCC HAT? I’d send you a pi, but I doubt I’ll buy a HAT until I know it will work with LabVIEW. -
LabVIEW Community Edition Announced
Jordan Kuehn replied to hooovahh's topic in LabVIEW Community Edition
The reply I got back from MCC. -
LabVIEW Community Edition Announced
Jordan Kuehn replied to hooovahh's topic in LabVIEW Community Edition
I was unaware of that. Good to know! -
LabVIEW Community Edition Announced
Jordan Kuehn replied to hooovahh's topic in LabVIEW Community Edition
I too was looking at those hats. I haven't gotten too deep into it, but it does seem like they haven't built LV drivers for them yet and would require calling some custom commands from the Raspberry Pi. At least according to the existing LINX webpage: https://www.labviewmakerhub.com/doku.php?id=libraries:linx:faq#6 However, I have used MCCDAQ products before (TC-32) and they do seem to have some good LV support in house. I wouldn't be surprised if they add support to the product. If I'm wrong about needing custom commands/drivers that would be great! -
LabVIEW Community Edition Announced
Jordan Kuehn replied to hooovahh's topic in LabVIEW Community Edition
Fair enough 😀 -
Perfect, thank you! I think I was at this presentation, but I lost the information.
-
I've seen the demos for webuis at NI Weeks past and it is an intriguing part of NXG for me, but not enough to get me to move over. Well, that and nearly every project I work on involves RT... But with the community edition I may wade in a little. Anyone care to point me in the right direction? I suppose I could just install it and see what gets thrown at me in terms of shipping examples... 😆
-
LabVIEW Community Edition Announced
Jordan Kuehn replied to hooovahh's topic in LabVIEW Community Edition
I'm shocked that one isn't already available.