Quantcast
Channel: LabVIEW topics
Viewing all 66748 articles
Browse latest View live

Reading the API from Energenie/MiHome products

$
0
0

Hi All.

Bit of a newbie here, needing some help!

 

I have been playing around with HTTP calls with labview and getting back Header and Body data ok on some IOT devices.

 

Using the HTTP pallet in Labview I am trying to connect to my MiHome products via their exposed API.

https://mihome4u.co.uk/docs/api-documentation/subdevices-api/list-all-subdevices

 

Using Postman - I do the Following GET command...

Get: https://mihome4u.co.uk/api/v1/subdevices/list

 

with Basic AUTH with my username and password. This returns the expected json....

 

Trying to do a similar thing in Labview i get a body message of "Access denied"

{"status":"access-denied","time":null,"flags":{},"data":{"message":"Access to subdevices/list is not permitted."}}

 

The Header comes back ok:

HTTP/1.1 200 OK
Date: Wed, 21 Nov 2018 12:17:08 GMT
Content-Type: application/json
Content-Length: 114
Connection: keep-alive
Set-Cookie: __cfduid=d99f2a227e93c2577fe894128d74f8c581542802628; expires=Thu, 21-Nov-19 12:17:08 GMT; path=/; domain=.mihome4u.co.uk; HttpOnly
Status: 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: *
ETag: W/"82762f798be137d965924687297f1780"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: b29640f8-7cb8-44e7-b2da-d5a7ced5d5cd
X-Runtime: 0.001099
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
CF-RAY: 47d3176c78243446-LHR

 

Now - I think its related to the Auth not being set up to allow access..... I've seen a few examples but don't have the knowledge to get around it..... (No examples for MiHome by the way)

Code snippet attached..... just a pile of HTTP VI's trying to get a response!

 

Please help!!

Cheers 

James

 


My application process gets suspended in Windows10

$
0
0

I have an application built in Labview that I recently updated to Labview 2018 64 bits. With that, I hope to give the application access to more memory.

I ran the application on a new Windows10 machine and noticed that the application is sluggish, frequently showing the busy cursor. I opened the task manager and found out that the application process is being suspended every few seconds or so. Simultaneously, a process by the same name appears, also suspended. A few seconds later the process reverts to running status and the copy process disappears. The whole event coincides with the busy cursor in my application.

Any suggestions what I can do about this?

 

Application suspended.png

Hiding items in case structure

$
0
0

How can I hide the items if not selected in the radio button? In the vi below, I want to hide K and thickness (L) if conduction is not chosen and the same for Convection and radiation.

 

1.PNG2.PNG

Sparkline Chart in Labview

create VI for callback reference

$
0
0

hi

I'm first using callback events nodes. It's clear for me but I wander if there is a way to automatically create the VI whose wiring pattern is in accordance with the required vi reference that must be connected to the node (like when creating dynamic dispatch VIs)? or do I have to create it manually?

thanks in advance

 

 

Sans titre.png

Missing SubVI's

$
0
0

Hi,

I try to run a program I got and there are some subVI's that are missing.

I have attached the error list I got.

Am I missing any module/ driver? any help will be appreciated.

 

Thanks

Orit

 

Create a MySQL Database from a type def Cluster

$
0
0

I have a very large cluster.  I'm going to have to design a database to to match the cluster. 

 

I know in TestStand it is possible to automatically generate a MySQL database from a test report.  Is there any type of similar functionality in LabVIEW?  Basically, is there an easy way to do it that won't take up a lot of time?

Data saving from PIC code

$
0
0

Hi All

 

I'm having a problem transferring data from a PIC to LabView via RS232. I have 2 bytes of data per data point which are in binary. As the most significant byte only uses the 2 LSB's I'm running into those control charcters from ASCII. Also, I cannot successfully change the charcters transferred back to an ASCII No. to represent my data. It seems that the read vi doesn't like me transmitting a binary byte. I've tried the Type Cast VI but with no success. Broken wires due to data type mismatch. Any help would be greatly appreciated


Seemingly Basic Loop Problem?

$
0
0

Hello! I've been trying to figure this out for hours and have gotten to the point where I'm just haphazardly enclosing the loops with different components. Your help would be deeply appreciated.

 

This VI is partnered with an iXon Ultra CCD camera, so it unfortunately won't run unless you have the camera. However, I believe this is a problem that can be solved just looking at how I have the loops arranged. 

 

Function of the VI

There are three displays-- one being the live recording from the camera, another being a B/W version of the original, and the last displays any cells that are fluoresced in the recording using the Particle Analysis Report example. After the user clicks on that last display to choose a particle, the pixel coordinate clicked and its converted voltage value (not really relative to the problem) are outputted underneath. The user should then be able to repeat this process multiple times as the camera continues to record. 

 

The problem is... this isn't happening! 

The program freezes immediately after I click on a pixel in the last display. In fact, none of the screens update as a sequence of images like a recording should; instead, the most recent image acquired from the camera is all that is displayed and able to be put through the Particle Analysis Report. 

 

I'm fairly new to LabVIEW, so my understanding is lacking some logic... working on it though! Please let me know if you need anymore information on the VI or if the camera blocks aren't showing up for you. In case this opens to the default loop case, here is where all the action takes place: Capture.PNG

 

 

Hardware used: iXon Ultra CCD Camera, NI BNC-2110 connector block 

Software/Modules used: LabVIEW 2017, ANDOR SDK (image acquisition), Vision Development Module 2017 

 

 

Thank you in advance! 

 

Calling LabVIEW-generated .Net Interop Assemble from C

$
0
0

My LabVIEW-generated .net interop Assembly has a single class with a single method: return type is void, and the only parameter is a string array.  I notice that the method is declared as 'static' (I'm don't know how to make this non-static).  I am assuming I don't create an instance of the class, but just call the static method using the class name.  Bottom line is that I can make the call (I've referenced the dll and use the correct namespace), but the class doesn't run (there are no errors reported).

Some more detail: LabVIEW generates the .net assembly based on a single vi.  This vi contains a Netstream Reader End Point.  I have a Netstream Writer End Point on another computer.  Both end points have to be launched before either will execute.  I have the Writer End Point launched on the second computer.  If I use the vi Reader End Point within LabVIEW, it works (i.e. the writer sends data to the reader).

In simple terms, I need to know how to wake up the LabVIEW-generated .net assembly.

Thank you

Access NI Platform Bundle Installer after installation

$
0
0

Hi all,

 

I'm trying to figure out how to install additional NI Platform Bundles (or whatever they're called) after LabVIEW has already been installed.

 

When I first run the Setup program I'm presented with a dialog like this (see attached). I can select from a variety of add-ons and software packages. However once LabVIEW has been installed I can't for the life of me figure out how to access this dialog again to install more packages. I've tried the NI Package Manager but there are limited options there. I don't understand the purpose of the VI Package Manager (why is there both an NI and a VI Package Manager anyway?) but that doesn't seem to have what I want either.

For instance I would like to install Vision, Analyzer, and Signal Processing. None of these terms show up through a search in the NI Package Manager, and the VI Package Manager just seems to have a whole bunch of VIs specific to various company products. I've also tried to run C:\Program Files (x86)\National Instruments\Shared\NIUninstaller\uninst.exe but that just opens the NI Package Manager for some reason.

 

How do I get just the list of standard LabVIEW add-on bundles that I can add to my installation?

 

I'd like to avoid a complete reinstall if possible (takes forever!) but I'm tempted to do that out of frustration.

I have LabVIEW 2018 installed with the full license suite available through my institution.

Thanks

How to handle 12Gb/ minute data while writing ti binary file.

$
0
0

Hi there,

 i am trying to acquire data from fpga (PXIe-7975R with NI-5783 at 100 MHz) at the rate of 100k samples/ ms(I16 ). while acquiring the data i am getting the samples as per my theoretical calculations and there is no problem with that. but while i am trying to write the data directly into a binary file (the file size should be 12*10^9 Bytes) my host code is running slowly. to overcome it i used queues, but while i am tying to acquire data through queues and write the data into binary file i am getting error  "not enough memory to complete this operation", means the allocated buffer memory of my code is running out. please tell me if anybody knows how to handle this much data without effecting memory.

Thank you

How to write 4 - 20mA setpoint to an Alicat PCD series pressure controller

$
0
0

Hi 

I need help writing the current setpoint to an Alicat PCD series. Normally I should be writing 0 - 5 V for a 0 - 250 PSIG but the input signal is set to 4 - 20mA. Thus it is a 4 - 20mA for a 0 - 250 PSIG 

Note; I am not using a COM connection or Rs-232. I just have an 8pin din connected to the device and the other end are blunt wires connected to myRIO. 

Labview and python without installing python

$
0
0

Hello, I am using labview 2018 with the "new" python support. On my computer it works flawlessly (both LV and Python are 32bit), but now I have to run the same code on other computers where only the labview runtime is installed.

Because I don't have admin rights on this computer, I thought I could simply copy the python folder from my computer to the target computer and then add the path of the python folder to the system environment (as "normal user" I can add an environment path for the current user but not for all the users).

Unfortunately this doesn't work: I created a simple executable that opens a python session and runs a dummy python function, but as soon as I open the python session the python dll (python36.dll) is not found.

But if I INSTALL a very very basic python downloaded from here https://www.python.org/downloads/release/python-367/ then it suddenly works.

So what I tried was the following: make a copy of the python folder before uninstalling it, then uninstall and then place the python copy back where it was and then set the environment path exactly as it was before uninstalling. And it does not work.

So my question is: what is the difference between copying the python folder + setting the environment path and installing python?

Is there a way to simply copy the python path without installing it? We have so many computers and users, I can't install python everywhere and for every single user, but I could automatize the folder copy and system environment creation (if it would work...).

What am I doing wrong? Is there anybody who can help me?

Thank you in advance

Cognex DM362

$
0
0

Hi All, Is anyone help me for How to load the Config file into DataMan 362. I am using DataMan 362Q, 8 numbers in my Project. I developed my application using Lab-view 2017. Using Cognex Action Command (||>Trigger on) i can able to scan the 2D code via TCP/IP. But i have many different types of bar codes, So need to Load different Config file for Different models. How could i do that using Labview... Please Help me asap. Thanks. I attached my current Vision File Image... For your reference...(This one for Just Read the Data).


Chart X axis time

$
0
0

Hi all,

I'm working with CRIO.

I need to display with a chart:

- y axis: two double measures

- x axis: data and time of every point

 

Can you help me?

 

Thank you

cannot realize Producer / Consumer Build

$
0
0

Dear Ladies and Gentlemen

 

i need a tiny bit of your help. I'm from Germany and am not very experienced in english language. So i hope you are able to understand me.

 

In my bachelor semester i want to establish a new FMCW microwave module on a existing device to measure defects/cracks in M(aterial)UTs (like DUTs only with material ^^ ). The Module produces differenial IQ Signals, Ip In Qp Qn. In my first tasks it will be DC Voltages + Noise. I need to track them continiously, substract them, and plot them (Ip-In) on real (x axis) and (Qp-Qn) on imaginary (y axis).

 

SInce weeks i'm trying to wobble around, play with labview, read forums, tutorials, examples, helps, etc to get what i want.

There are multiple barriers on my way (for me). I'm not able to handle type conversion in a right way especially when array are included. I want to measure Data continiously, save some Snippets (e.q. 5 s data sampling) in a file (spreadsheet) and so on.

 

While practicing on examples like roll the dice and save, plot whatever in a file, on a graph i can make it. But if i want to adapt it on data, my tasks i fail so far.

However:

In this following try, i've read a Producer/Consumer thing to seperate continious logging and further handlings.

https://forums.ni.com/t5/LabVIEW/Multichannel-DAQ-and-2D-waveform/td-p/2021044

I wanted to rebuild it in my labview and only got broken wires if i wanted to wire from DAWmx-Read.

main_overview.JPG

 

 

 

Can someone push me into an abyss or rescue me =) ?

 

 

Remote multiples front panel from one application

$
0
0

Hi to all,

I have multiple applications in the same intranet.

Now, I would like to develop One different application where I will be able to control all of those application (in the same intranet ass well)

 

I think about develop and application where when user press a butten of which line they want to controll, then inserting a browser in front panel and open it.

 

Can it be possible? any more ideas?


Thanks a lot.

How to set concatenated String name

$
0
0

I have concatenated two strings.  Is there an easy was to set the name of the concatenated string?

RT FIFO used on a non-RT environment?!

$
0
0

Hello everybody, I recently was assigned to porting/enhancing a project for Windows + cRIO/RT.

 

The Windows part of the code surprised me quite a bit when I noticed it was using RT FIFOs... but I was under the impression those would only work on an RT target, definitely not under Windows (I'm using a virtualized Windows 7 Enterprise environment + a cRIO 9066)

 

Tried to search this board and many other places but I can't seem to be able to find any documentation about this very specific case.

 

If I had to make an educated guess I would imagine that in a non-RT environment a call to an RT FIFO function simply gets re-routed to a standard Queue function... but it would be nice to have a confirmation on this (likely non standard/non supported?) use case.

 

Best regards

Viewing all 66748 articles
Browse latest View live