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

Using the NI9205 with a Load Cell

$
0
0

Hello Everyone,

 

I am using an NI9205 to gather voltage data from a Robot Shop S load cell. The reason I am using a NI9205 is because it’s range goes down to millivolts, making it great for load cells. The issue I am having is when I initialize my task and run the VI, the NI9205 does not output millivolts. Instead it outputs microvolts or even smaller. Loadcells are supposed to output voltage in the millivolt range. I tried multiple methods for initializing the NI9205 and none of them outputted millivolts. The methods I tried are shown below.

The final method I tried gave me an error, which is also listed below.

 

Any information would be appreciated in trouble shooting this issue!

 

Error -200431 occurred at DAQmx Create Channel (AI-Force-Bridge-Two-Point-Linear).vi:3350002

Possible reason(s):

Selected physical channel does not support the measurement type required by the virtual channel you are creating.

Create a channel of a measurement type that is supported by the physical channel, or select a physical channel that supports the measurement type.

Property: AI.MeasType

Requested Value: Force:Bridge

Possible Values: Current, Resistance, Strain Gage, Temperature:Built-in Sensor, Temperature:RTD, Temperature:Thermistor, Temperature:Thermocouple, Voltage, More:Voltage:Custom with Excitation

Task Name: _unnamedTask<7F>

 

1.png2.png3.png


Kill or stop System Exec.vi

$
0
0

I am using System Exec.vi in wait until completion and run minimized mode to run some script for JTAG.

sometime if any error in JTAG the script will keep running so is there any way/option to kill system exec.vi and come out. 

 

Capture.PNG

 

JSON unflattening

$
0
0

Hi guys, 

 

I'm having such a hard time with this little task, decoding a JSON string. I have a data mismatch. Can someone please have a look and give some advise? VI is attached. 

 

Thanks. JSON.JPG

Update Waveform Chart with every new iteration/cycle of 10 data / horizontal slider control

$
0
0

Hello,

 

I know this may be very simple for any of you here. I am desperately needing help on this as mentioned in the subject. 

 

The CSV file attached contains 84 iterations of 10 data (rows) in each iteration and 8 columns of data (from col C to J).  

 

I want the Waveform Chart in the vi to display each new iteration until completed 84 iterations in every 50ms and the x-axis of the Chart should be displaying 0 to 10.

 

I also need to include a horizontal slider control as a purpose for the user to go back and forth (to select) which or any iteration number from 0 to 84 to be displayed in another chart/graph. Can anyone please suggest me where the control should be connected to?  

 

Please have a look at the code and suggest me what to be done to achieve my aim.

and please help me understand. Any help would be greatly appreciated.

 

 

Use Integrated IO

$
0
0

...Hi!
I've just bought an Industrial PC with an integrated IO board I'd like to use.

In the Manual there is this example on hot to configure the ports but I can not figure out how to convert this in Labview

[code]#define AddrPort 0x4E
#define DataPort 0x4F
<Enter the Extended Function Mode>
WriteByte(AddrPort, 0x87)
WriteByte(AddrPort, 0x87) //Must write twice to entering Extended mode
<Select Logic Device>
WriteByte(AddrPort, 0x07)
WriteByte(dataPort, 0x06)
//Select logic device 06h
<Input Mode Selection> //Set GP70 to GP77 input Mode
WriteByte(AddrPort, 0x80) // Select configuration register 80h
WriteByte(DataPort, 0x0X) //Set (bit 0~7) = 0 to select GP 70~77 as Input mode.
<input Value>
WriteByte(AddrPort, 0x82) // Select configuration register 82h
ReadByte(DataPort, Value) // Read bit 0~7(0xFx)= GP70 ~77 as High.
<Leave the Extended Function Mode>
WriteByte(AddrPort, 0xAA)[/code]

 

Which VI family should I use?

Saving as older version, then resaving as same version

$
0
0

I have found this rather anoying lately and hope there's an easy workaround.

 

I am in the situation of having to use two different PCs for LabView, one running LV2015, the other LV2016.

 

If I work on the LV2015 machine I can save my work and simply reopen it on the LV2016 machine without a problem.
If I then want to save again, the work is saved as LV2016, meaning that next time I am on the LV2015 machine I can not open it, due to backwards-compatibility issues. So far so good, this all makes sense.


I can however on the LV2016 machine "save for previous version". This creates a new folder with the vi in the version I selected (LV2015) inside it. If I then work on this new vi in LV2016 and save it, it gets saved once again as LV2016, rendering it again useless for LV2015...

 

Surely there must be some workaround for this...


I want to create a vi in one version (LV2015), and when opened in a newer version and saved there, still saved for the original version. Of course this will only work if the desired version is the oldest one, for it be opened in all newer versions.

Convert build script in LabVIEW not 2014

$
0
0

Hello,

I have searched about the possibility to convert an old .bld file into a newer LabVIEW project. In the menu "Tools" of LabVIEW 2014 this is possible by the "Convert build script", however i cannot find this voice in the newer version of LabVIEW despite of the LabVIEW Help document it.

Does someone if it is only hidden and is possible to unhide? Maybe adding some key in the LabVIEW.ini file?

 

Many thanks

How to automatically turn off a dialog box

$
0
0

Hello

 

I'm wanting to create a VI to control a dialog box that has the option of:

1) being used normally - i.e. the user presses a button to close the box; or

2) being turned off after a period of time without any user activity.

 

I've made an attempt with 'TwoButDialBoxWithTimer.vi' by using a case structure to control the different options. An Event Structure is used to to hold the 'Two Dialog Button' for option 2. However, when the Event Structure times-out in the 'TestDialBoxWithTimer.vi', the dialog box does not disappear.

 

I would be grateful if anyone could advise me on what I am doing wrong, please.

 

Thanks

 

RW


Overlay black and white picture transparent on Live Stream using Vision Acquisition

$
0
0

Hi All,

 

I want to overlay a black and white Picture transparent on a live stream that i got from Vision Acquisition. I have one solution that works partially (added in the bottom) but two questions.

 

First: I want to use the case selector to switch between cameras. When i do switch it in the Front Panel i get the error at the "IMAQ ImageToImage 2" vi and at the "Array to color image" vi. Although when i then stop the vi and start it again with the case selector already at AP it works perfectly fine and there's no error anymore so it probably has to do something with switching the case. 

 

Second: As it is very ineffective to overlay every pixel the live stream is very laggy. I want to optimize it and think about converting both pictures to black and white and overlay those to make it faster but it doesnt work with the same principle using Build Array.

 

Does someone have an answer or a suggestion to this? it would help me a lot!

 

Thank you

Switch until released myRIO / cRIO

$
0
0

Hi

 

I would like to control a stepper motor with buttons on the Front panel. They should have the function of switching until released.

But when I try to run the VI on myRIO or cRIO the attached error message occur.

 

Could anyone tell me how I can run those VI's on real hardware or how to cheat / create another way of getting the data of how long the button is pushed?

 

Thanks!

Power Supply Controller (ES 030 10 Delta Elektronika) Using LabView / NI Myrio

$
0
0

I am a student , an for my thesis project I have to build a power supply controller that should control voltage and current output and generate different types of signals , fo this project I have to use :

  • lab View
  • NI Myrio
  • Delta power supply ES 030 10
  • potentiometer and buttons and LCD screen

My problem is with DATA Aquisation from the power supply , i have to use RS 232 programming but i heve no idea how to connect the power supply to the laptop using the D 15 pole connector , and what drivers i have to use ?

I would be grateful if some one would answer :

Simulated Device - Can you View Activity?

$
0
0

I am using a Simulated 6343 Device in MAX.

I have some Digital Output Tasks defined which are called from my program.

My program is happy to use the tasks with the simulated device.

Is is possible to view the state of the simulated Output channels so that I can verify that my signals are really getting through? 

i.e if I set Port_0_0 to On in a task, Is it possible to see the effective output going on and off on a panel status somehow, say in MAX?

 

Extract data from a file while still being written

$
0
0

Hi,

 

I have a DAQ program which writes measurments to a text file. I need to write a parallel program in LabVIEW which takes the data from the text file every 2 mintues, and writes it to a new text file with another name. actually I would like to split the data text file to multiple sub-files during DAQ while the text file is still being written.

 

given the file path and name, is this program possible ? 

 

Thanks,

Lior.

Using myRIO Analog Pins as Digital Out Pins?

$
0
0

Hi Community,
I was just wondering, can we use the analog pins of myRIO as digital output pins? I need 48 independent PWMs for an application and there are 40 digital pins of myRIO. I'm short of 8 digital pins. So, I was thinking that is it possible to use analog pins of myRIO as digital output pins? I would really appreciate any kind of help. Thanks in anticipation.

Ahmad

power supply controller using MyRio

$
0
0

I am supposed to control the voltage and current output of a Delta ES 030 power supply , using Myrio and labview programming .

Can someone help ?


Ensure Completion of Asynchronous Loops from User Event

$
0
0

I have a Main.vi that generates user events which are received by 2 Asynchronous (x80 called) SubVi's. However, I need to eliminate a race condition when I'm saving my data.


What is the best way to make sure that my SubVi's have finished their tasks (saving their data to a common folder) before my Main.vi zips the data and archives it to a database?

My gut solution is to have an FGV/Action engine passed between the VI's that will act as a busy flag, but I don't know if there is a better way.

 

Using ActiveX is it possible to edit the text of shapes in Excel?

$
0
0

Hello!

 

So I have an excel file that I am filling in using ActiveX in Labview. I ran into an issue however where I have some "shapes" in the excel file that are being used as check boxes. I need to be able to change the text in them so that they may contain an "X" in certain situations. Is it possible to edit the text of a shape in excel using ActiveX, or do I just need to re-format the excel file so those shapes are actual cells?

 

Here is a picture for reference as to what I am talking about:

excel boxes.PNG

 

Thorlabs DCC USB camera error .NET 1172

$
0
0

Hello,

I've got a Thorlabs CCD1645 USB camera, and I can't get any of the example VIs to run.

I am getting the general 1172 .NET error, even for the most basic 'Initialise Camera' VI.

I have no experience with .NET unfortunately.

I have tried reinstalling the Thorlabs camera software and LabVIEW drivers.

When I open the VIs there are some warnings about file locations (please see attached).

 

Thanks for any help!

Graham

Proof My vi

$
0
0

I am trying to improve the efficiency of my vi as much as possible and was wondering if anyone has any tips, tricks, or corrections. The vi is a temperature monitor that will be built into an exe application. The front panel has numeric indicator for temperature and a waveform chart that will record temperature over the course of a week so it need to be memory efficient. There are also other programs on the computer that will be running alongside this vi so Im also trying to make it the least CPU intensive as I can.

 

My vi reads the voltage drop across a thermistor using a Labjack( this part of the code will replaced soon with Daqmx when my ni daq comes in the mail). Voltage data is collected at 5 samples/second and the average of those samples is fed into an event structure that times out every second. The event structure calculates the temperature from the voltage and displays the reading on the front panel and also adds it to a waveform chart. I have designed it so the temperature indicator is updated every second while the waveform chart will update less frequently to save memory. In the final build the waveform chart will update every 1 minute, 5 minutes or 10 minutes. depends how efficient I need it.

 

I used a Case Structure inside the event case to control when the waveform chart updates the while loop iteration is divided by a number to be determined and if the remainder is 0 the chart updates. Is there a way to do this operation so that the case structure inst continuously polling?

 

shown in the second image is the sequence structure containing the while loop. The first sequence when it starts up is it reads default values from a text file and writes them to local variables. The last sequence writes the local variables to the same file.

 

Any help is appreciated, Thanks!

USB device work fine in VISA test panel but VISA read VI in LabVIEW it does not work

$
0
0

Hello, I am trying to connect my Gauge Digital Gratten (or Atten) GA1202CAL to my PC through the usb, but I can not read the oscilloscope response. The oscilloscope (USBTMC class) works well with its original software, but the software is too simple and does not take full advantage of the oscilloscope's capabilities. Therefore, I am doing a VI to control it, but the "VISA read VI" always returns the error: (Hex 0xBFFF0015) The waiting time expired before the operation was completed. The "VISA write VI" works excellently, I can write all the commands and the oscilloscope executes them without problems.
When I use the NI MAX "VISA test panel" it is possible to establish communication without problems, I can write all the commands and read the answer correctly, but it does not happen in LabVIEW.
I have no idea what the problem may be, help is needed.
thanks

Viewing all 66852 articles
Browse latest View live


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