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

Connect to cRIO using a browser

$
0
0

I used to use Silverlight with an older version of IE.  How do you use a recent browser like EDGE or FireFox to communicate with my 9038 cRIO?


Termotek P310 Chiller Control via RS232

$
0
0

Does anyone have any experience in trying to remotely control a Termotek P310 Chiller via RS232?

 

P300 (termotek.de)

 

I have contacted Termotek and they have sent me a bunch of information (attached). 

 

I made a LabVIEW VI that sends an inquiry to get the chiller temperature setpoint, but I have not had any luck in getting any kind of response back from the chiller.

 

Any help is greatly appreciated.

UDP Read problem on cRIO

$
0
0

Hi all,

 

I am using a cRIO 9036 to communicate with a third-party device using UDP to read data and send commands (the device is a SMA Sunny Webbox). The communication is based on a remote procedure call - RPC, and is described here: https://files.sma.de/dl/4253/SWebBoxRPC-eng-BUS112713.pdf

 

It works fine when I use LabView running on my PC. However, when I run the same VI on the cRIO, no data is received (UDP Read vi) and I end up getting a timeout error. I've tested UDP write and it works fine (cRIO sending commands to the Third party Device is ok!).

 

The VI is in annex. The cRIO sends a request and the third party device is supposed to answer once the request is received. 

pedrotorres_0-1628196395585.png

 

To further test any connection issues, I have emmulated a UDP server on my PC to communicate with the CRIO operating standalone, and in this case the cRIO was able to both read and write to the PC. The cRIO, PC and the Third-party device I am trying to communicate with are on the same network. The cRIO is connected to the network via 9036's Ethernet port 1.

Timeout Error while trying to read voltage from 2182A

$
0
0

Hi, 

I am using 2400 Keithley sourcemeter to bias a 10 Ohm resistor with +1mA (then -1mA). I want to use the 2182 to read the voltage across the resistor when the 2400 sources this current. On the hardware/physical set up the 2182 reads the correct voltage (9.8 mV). 

On the software side, I keep getting a timeout (VISA (Hex 0xBFFF0015) ) error when I run the code. 

 

lodhi33_0-1628198032657.png

(this is the part in the code where I config, initialize and start the 2182 buffer VIs. full code file attached.)


I ran the 2182 example VI 'Data buffer store and acquire' for DC voltage reading and it works just fine. So I do not believe there is sth wrong in my timeout settings/termination character. 


Pretty new with labview so any guidance at all is appreciated! Am I using too many time delays or not enough? I tried increasing the timeout of my instruments in VISA panel but that does not help. 

String controller help with showing English and Chinese without spacing

$
0
0

I'm having issues with unicode in labview with string controllers.

I want to be able to type english and chinese together in a single control and being able to backspace.

ex)

ricky48_9-1628220096652.png

However when I'm using Force Unicode Text, the english letter became represented as UTF16LE and requires me to backspace twice to delete a single letter. If i only delete once, it screws up the whole input.

ricky48_5-1628219619799.png

 ex) deleting the space between a and s

ricky48_6-1628219644870.png would  return ricky48_10-1628220553805.png ???

 

I've found that I could use Update Value While Typing with NI Update String in the Value Changed Event 

ricky48_7-1628219746717.png

This lets me input/backspace properly, but it also caused more bugs with the font size resizing and becoming double lined when entering long strings.

As well as scrambled overlapped characters and the display remains on the first line eventho multiple lines were entered.

ricky48_8-1628219898940.png

 

 

Currently I have set the following 

ricky48_1-1628219192596.png

Event: SControl -> Mouse Down

ricky48_4-1628219327628.png

 

 

 

Can anyone help? 

 

automatic addressing to display an image / adressage automatique pour afficher une image

$
0
0

Hello,

I am trying to automatically display the last image that the camera is saving.With the program I have for the moment, I have to give it the address of the last photo each time.Attached is VI. Can you help me ? 

Thanks in advance

 

Bonjour,

Je cherche à afficher automatiquement la dernière image que la caméra sauvegarde. Avec le programme que j'ai pour l'instant, je suis à chaque fois obligé de lui donner l'adresse de la dernière photo. Ci-joint le VI. Pouvez-vous m'aider ?

Merci d'avance

Labview 2020 sp1 community will not open…Apple afraid of malicious software

Error -2147220324 during base image install on cRIO

$
0
0

Hi everyone

 

I am trying to install a base image onto a cRIO 9047 over a slow VPN connection. After one minute, the installation process fails with this error:

 

Error -2147220324 occurred at nisyscfg.lvlib:Install Set.vi:1500001

Possible reason(s):

NI System Configuration: A file transfer error (FTP or WebDAV) occurred.

Local file: c:\program files (x86)\national instruments\rt images\base\17.0\7755\base.tar
Remote file: base.tar

 

MAX gives the same error. This happens with every base image I try to install. The VPN link works fine and task manager shows an upload speed of 16 MBit/s during the installation.

 

Since this error consistently occurs after about one minute, I assume this is because of a hard coded timeout.

 

Is there a way to increase this timeout? Is there another way to "manually" install the base image by e.g. copying it to the cRIO by SCP and installing from command line?

 

Cord


Hello,please help

$
0
0

Hi everybody, im asked to do a simple voice changer from man to woman in Labview.

 

now i made the audio file.wav and read it in the labview, but im not sure how can i change the frequency of this sound so i get higher or lower pitch.

can someone please provide some help??

thx

NI-VISA

$
0
0

Hello everyone,

 

I have trouble accessing my USB port with NI-VISA. I get the same error in my LabView VI as when I try to open the VISA TEst panel from NI MAX. The Error is the following:

 

Error opening resource:
ASRL1::INSTR

VISA: (Hex 0xBFFF0072) Die Ressource ist zwar gültig, aber VISA kann im Moment nicht darauf zugreifen.

 

I found various post about this and none could resolve my problem. I have checked if a programm is accessing the port via cmd promt wiht the follwoing command:

netstat -aon | findstr '[port_number]'

 

and none has been listed. I also tried to rename the port via the device manager. I even complete uninstalled all NI programms and reinstalled them. Nothing seems to help.

Has sombody an Idea what the issue might be?

 

Thanks for your help.

Cheers,

Jeremy

Triggering multiple GoPro cameras at the same time with LabVIEW

$
0
0

Hi,

 

does anyone have experience with triggering multiple GoPro cameras at the same time with labview? Specifically, it's about taking different measurements, both visually and via sensors. Since multiple cameras are to record at the same time, it makes sense to have the sensors and cameras both triggered at the same time and in the same development environment. A wired solution would be my preference, either via USB or HDMI. I would also like to avoid disassembling the cameras to trigger them with a signal generator (TTL). This means that the videos are not to be further processed, nor is the data to be stored on the PC direktly. So it would be purely about the synchronous start of both cameras. What I already found out is the usb manufacturer id (vendor id) and the usb model code (product id) via the ni-visa driver wizard. I'm not exactly sure right now if this information is of any use to me and if I can use it as an address to control the cameras. Unfortunately, the suggestions in this forum so far have not helped me. I am very grateful for any advice and would be very happy for any shared solution. Thank you very much for your help and information.

 

Sending keystrokes to a Excel Workbook via SharePoint

$
0
0

All,

 

I have an program that sends keystrokes to any open application using the .NET System.Windows.Forms.SendKeys.SendWait method which works great and I haven't had any issues until users wanted to use this functionality within an Excel Workbook that has been placed on SharePoint.

 

Anyone who has used SharePoint and Excel knows that SharePoint lets you open the workbook within the web browser (I use Edge) and you can interact with cells, add data, etc. I had assumed that using this method would work just like it did before within any workbook using the Excel app but it seems that it doesn't. It acts like the data never gets sent or SharePoint is blocking it somehow.

 

Has anyone else ever ran into this before? I haven't tried any other browser. The workaround is to open the workbook using Excel. I wondered what others users have experienced, if any. I've attached a sample program to try out.

 

Eric

How to pass multiple values to a callback?

$
0
0

I am learning how to watch a folder for new files. I need to test new files written for certain attributes.

 

I have the attached example from NI that watches a folder for new files. The example that NI provides retrieves the filename with the base path. I need the entire base path and filename so I can load it in my callback and process it.

 

The bottom line is I do not understand how the watcher and callback are working together to get the filename. 

 

It looks to me like the watcher "sees" that a new file is saved and calls the callback and passes parameters. From there I am completely confused as to how the two vi's get what data and who passes what to who.

 

How would I pass a cluster of data to the callback to be used by the callback?

Handeling Control references inside a cluster, change properities of a specific control inder a cluster.

$
0
0

Hi,

 

Control and Indicators are mentioned as (CI) in this post.

 

I am working on some UIs and they generally have a minimum of 30 CI, some, I put in tabs (easy to show and hide, just switch to an empty tab), some in cluster and some placed directly on front panel.

 

I am trying to find  a better and scalable solution to handle front panel CI. For this post, I am focusing upon the idea of putting everything inside a cluster and use "Control[]" reference array to further handle each reference as per requirement. Generally, following changes are required in their property:

1) Enter a specific value to CI

2) Reset control to default value

3) Enable & Disable Specific control/indicator

4) Check if all the controls are populated by user, some value other than the default

5) Change color of specific control, if required

 

Above mentioned tasks are triggered per case/state requirement of the program. So each state would require some changes in properties of a CI.

 

In the attached VI snippet, Below is what I came up with for the bullet 1,3,4, named as Case1,2,3. I believe same logic can be applied for other bullets.

Cluster Reference Handler.png

I was wondering if any one has any suggestions to better handle FP CI.

 

PS: I store control reference in an FGV at the start of the program for a cleaner diagram and use a subVI that has different hard coded cases triggered by a enum when required.

 

EDIT: Changed "Under" to " Inside". Update made to subject and body as corrected by @ 

Why error codes like ERR 5, ERR 5003 and 1073676294 occurring in the interface of LabVIEW with MPU-6050 using LINX (Makers Hub)?

$
0
0

Error codes like ERR 5, ERR 5003, and 1073676294 occurring in the interface of LabVIEW with MPU-6050 using LINX (Makers Hub).

 

1: Connecting MPU-6050 with Arduino UNO, then from Arduino is connected to PC using a USB cable. Sensor working, the board also working (verified - light blown). Before running the VI, Arduino ON (light blown), L (light blown), TX (light blown), RX (light not blown) are shown in the image.

rajavmech_0-1628277099727.jpeg

RX (light not blown)

rajavmech_1-1628277164730.jpeg

 

2: Block diagram created with MPU60X0, LINX showed in the image.

 

3: Arduino codes are not uploaded to the board. After running the VI, RX (light blown constantly - not blinking, several minutes later not blown, sometimes even in running also) is shown in the image.

rajavmech_3-1628277249667.jpeg

 

4: VI running, but nothing happens, values not coming. After using the Highlight execution button, it shows error codes like ERR 5, ERR 5003, and 1073676294 occurring in the Linx start, MPU60X0 open and MPU60X0 open.

rajavmech_4-1628277350115.jpeg

rajavmech_5-1628277372441.jpegrajavmech_6-1628277391659.jpeg

5: This type of error occurs in a random manner. i.e. Firstly ERR 54 coming, next time ERR 5003 coming.

 

How to solve this problem?

 

 

 

 

 

 

 

 

 

 


.NET System.BadImageFormatException with Tobii Pro .NET SDK

$
0
0

I'm trying to use the .NET  nodes inside LabVIEW to run eye tracker Tobii Pro's .NET SDK, but I've been getting errors as this post's title. I also tried adding a configuration file as other posts suggested but still not working. I can confirm both the LabVIEW software and the SDK is for 64-bit, are there other solutions? Thanks in advance!

Image from web browser to 2d array

$
0
0

Hello everyone,

 

I am having trouble converting a black and white image from a web browser into a 2d array to be displayed on a graph. Here is my code and subvi:

 

The code is supposed to navigate to a web address (which will be a picture taken by a camera in my local network). The code will then take the image data from the web browser and convert it to a 2d array to be displayed on a graph.

 

I'm not quite sure how to get Labview to convert the image data into data for a 2d array. In the VI I posed you will see a failed attempt at this. If you know how to convert the image data type into a 2d array of values. It would be greatly appreciated.

 

Thank you in advance!

 

Control the speed of DC motor

$
0
0

Hello, I want to control the speed of my dc motor and also want to monitor the speed and voltage in LabVIEW.

I made a program but there is some issue I can only monitor the speed and voltage but cannot control the speed.

please help.

OPC-UA: LabVIEW cannot read "Struct DataType"? (error "Bad_TypeMismatch")

$
0
0

I have an OPC-UA server on Siemens S7-1200 PLC and I'm trying to read the data with the OPC-UA Client Toolkit from LabVIEW 2019

The software UaExpert shows the data without any error (see image below) 

UaExpertUaExpert

 

But LabVIEW does not show any data and I'm getting the error code:

2155085824

BadTypeMismatch

The value supplied for the attribute is not of the same type as the attribute's value.

 

Here's my VI (LabVIEW 2019):

 

Front panelFront panel

 

Block DiagramBlock Diagram

 

Am I doing something wrong of LabVIEW 2019 (with OPC-UA Toolkit "ni-labview-2019-opcua-toolkit-x86_19.0.0.exe") does not Struct DAta Type?

 

My VI was created according to the example "OPC UA Demo.lvlib:Data Access Client.vi"

NI ExampleNI Example

 

PCI to PCI bridge error

$
0
0

I am connecting USRP-RIO 2952R to the laptop through PCI express card , there is pci to pci bridge error appear in the device manager , I tried to update the driver but no change happened!Untitled.png

 

Viewing all 69160 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>