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

10-Tap 8-Bit camera with one DRAM bank

$
0
0

Hi, 

 

We have installed NI 1483 adapter + PXIe-7972R. I want to utilize "10-Tap 8-Bit Camera with DRAM.lvproj" example to capture image from camera-link camera (Camera Link Full (10 taps, 85 MHz)). However, our PXIe-7972R only have one DRAM as Fig. 1, and I also cannot select the Socketed CLIP as Fig. 2. Is there any way to modify this program with only one DRAM? The sample code I found on the internet all use two DRAM Banks, thanks.

 

Best,

Yong

 


DaqMx two digital output module synchronisation

$
0
0

Hello,

How Can I synchronize (Hardware synchronization) between two digital output modules using a digital input trigger

(it means that the digital input module is the master and the two digital output modules are slaves)

I am using C series modules on a compactdaq

Thank you

 

 

 

 

 

Help with pressure control VI

$
0
0

I have a very specific task to change a VI that we use for testing products from a time controlled VI to a digital input control. I have minimal experience with labview and these requirements are mostly out of my skillset. My supervisor is looking for a VI that can,

  1. Create a digital signal waveform generator that can hopefully control all the valves in one to four sub-vi(s) or DAQ assistant. 
  2. Record the pressure at 6 locations
  3. Using the analog input card count 6 individual prox sensors and compare it with the overall cycle count
  4. Stop the test at an indicated cycle count or when the difference between one of the prox sensors and the cycle count exceed 10.

My issue comes with #'s 1 and 4 as I have never done something like this before. I've done some research and looked in to state machines and DAQ assistants to help but my understanding of those two topics is not high enough for me to implement them into this VI.

 

If someone could help explain how state machines work or what the best way to tackle this might be that would be awesome! I took on this project to learn more about labview and I am hoping that I will find assistance here.

 

Thanks.

Feedback doesn't work with this

$
0
0

I think there's a more elegant way to do this with the Feedback control but I can't get it to work.Capture.PNG

 

 

 

 

"Run executable at end of installation" doesn't if software is already installed

$
0
0

Hello all you helpful forum-goers!

 

I have created an installer for my LabVIEW software, and used the "Run executable at end of installation" feature to run a batch file to copy some files into the installation directory afterwards.  This setup allows me to change the files that are copied afterwards without having to rebuild the installer, which means I don't have to reconfigure it with CM or rerun the installer-specific tests.

 

However, doing it this way means that the installer version has not changed, and if I give someone the same installer with different files to copy over, the installer appears to exit without running the post-install batch file.

 

I understand that a relatively simple work-around would be to give the customer the new files separately without involving the LabVIEW installer, and instruct them to place the new files in the correct Program Files subdirectory, but for the purpose of consistency in how we deliver to our customers, is there any way to get the installer to run the post-install batch file regardless?  Or is there anything else about the situation I'm misunderstanding?

 

Thank you for your time and assistance!

 

-Joe

 

P.S.  It also occurred to me that I could set up a batch file to copy the files and then run the LabVIEW installer, but that involves changing other parts of our standard setup (i.e. changing the autorun.inf file to call the batch file instead of setup.exe and other changes like that, so I'd like to see if there is an easier solution first.

ActiveX control error

$
0
0

Hello, when I try to use ActiveX in Labview 2018 (the first attached png file) and the error shows up (the second png file). I found some of ActiveX selections work fine, but some not. Is there any compatibility issue between Microsoft control and Labview in Windows 10?

 

Thank you very much!

 

 

Convert from LabVIEW 2018 to 2014

$
0
0

Hello,

Could someone be kind enough to convert the attached VI from LabVIEW 2018 to LABVIEW 2014 ?
If the conversion does not work for some reason, I could use a screenshot of the VI block diagram to reproduce it manually.

Thanks in advance!
Antoine

Convert from LabVIEW 2018 to 2014


List attached devices

$
0
0

Hi

Not a National Instrument user but IT Support for people who are and I've been asked to help but really haven't a clue about this.

I've been asked to test a camera is viewable in NI Max 

It is a Firewire device and in my PC I can see the Firewire card in Win 7 Device manager and it does work when I plugged in a firewire connected external hard disk.

When I look in My System -> Devices and Interfaces I can see ASRL1::INSTR "COM1" and ASRL:: INSTR "LPT1". and the machine is a Dell 980 which has a 9pin serial and 1 parallel printer port. 

Question would I expect to see an IEEE 1394 reference in the list.

Please see attached

 

Reset the For loop

$
0
0

I am Reading a Spreadsheet File from my computer and editing it Using For loop, I have a problem when i run the program more than once i got an error

For Example I have a sheet with 50 columns
When i run the program at the first time and it works well .. at the second time i run the program, it starts to read from column 51 to 100 and actually there is no data to read in the sheet so i got an error and the program stops.
I have to change something in the VI or reopening the vi to work again

How can i reset the for loop to read from first column again ?

Force IEPE Sensitivity Units bug?

$
0
0

There seems to be an error when trying to manually initialize an input Force IEPE channel, relating to the code used to choose the sensitivity units. I'm using the DAQmx Create Channel VI and manually wiring the required inputs, which has worked fine for a similar input Acceleration IEPE channel, including the code for sensitivity units.

 

However, with the force input, I get an error -200077: "Requested value is not a supported value for this property." The documentation specifies using 14891 or 14892 to indicate units of mV/N or mV/lb. So far, I have tried directly entering these unit codes both as an Int32 and as a listbox with unit labels corresponding to their code.

 

Adding to my confusion, the sensitivity units work fine when using the DAQ Assistant, with both unit options not causing an error.

 

Has anyone replicated this error or have a thought on what I might be doing wrong?

 

___________________

NI 4431 - Labview2017

How to suppress initial SV value change events

$
0
0

I am running LV 2016 with the DSC. The code uses shared variable value change events. When the event structure initializes, LV will fire each of the registered SV events one time with the variable's current value. I have been trying to get around this behavior with little luck. The attached code is what I have come up with so far. The curious thing is that is I run it with execution highlighting turned on, the code does what I want. However, if I turn off highlighting the initial events still fire.

 

Any ideas would be helpful, or if you have any thoughts on alternative means for getting to my goal that would be good too...

 

Mike...

How to illiminate some local variables

$
0
0

I started this conversation in another thread but this is not the same topic, so here's the new question. I was told that I was using too many local variable but I don't know how to get rid of them. Here's the updated code with some other fixes. This code works great butif I'm doing something wrong I'd like to fix it.

 

Capture.PNG

Measure single analog current pulse duration

$
0
0

Ladies and Gentlemen,

 

I am attempting to measure the pulse duration of an analog current input. I have created an open circuit that closes on physical impact of a hammer and anvil (terms for pieces of an accelerometer calibration apparatus). When the circuit closes a 2V .015A (limited) signal is collected via cDaq 9174 and 9203 C-module. I am recording a current pulse. The image is attached. I need to measure the duration in seconds that the signal transitions from low ~0 to high .15 and back down to ~0. So far I have attempted using the timing and transitions vi, with an error (shown in the second image). I have since done some reading and I now know that I need at least one full period to use this function.

 

Is there another way to do this?

 

My whole apparatus is an in house peak G meter. Please do not ask why, I don't make the jobs, I just do them. I am using a photodiode and laser to get instantaneous velocity and then using the impact time duration to then calculate G force. I can save the data for the current pulse and get the time duration that way, but I would rather automate it.

 

Thanks again for your help. Using Labview 2013

Accessing a Laser through Active X

$
0
0

Dear all,

 

I currently have a setup using a Polytec UHF120 vibrometer system in which I have made a custom LABVIEW program for control of my actuation system and data acquisition. The data is demodulated and I conduct frequency sweep testing which works fine. However, I have to start the vibrometer using the software "Vibsoft" supplied by the company, in which, I turn on the laser for measuring then run my LABVIEW program. This means that the laser is continuously on through out my entire experiment but the samples I am testing are highly reactive to heat due to the laser so I want to be able to turn the laser on/off between test points in order to allow time for a quick measurement say 50 us then if the actuation frequency is the same to turn the laser off say for 2 seconds until a new frequency is detected and the next frequency point is measured. This is a swept sine test so a few seconds between test points is fine just the toggling the laser on/off in labview is my concern.

 

There are active X controls for the polytec vibrometer, however, I didn't locate one for the laser on/off routine and the company doesn't want to reply how to handle this problem. Has anybody else encountered this problem before or have any ideas? In the Vibsoft software the key command "ctrl+1" will toggle the laser, I am not sure if this could be an alternative way to do this but I am not sure how to send the keys to another software and keep labview as the main program running and only send keys to vibsoft to toggle the laser.

 

Any help is most appreciated

 

Kindest regards,

Tanju


Problem with Configure OPC Client IO Server dialog in LabVIEW 2018

$
0
0

I have LV 2018 SP1 Professional with 2019-01 DD and the OPC Servers 2016 (latest).  I also have KEPServerEX 6 installed.  I am following a Kepware tutorial for setting up a labview interface to a PLC using their demo simulation opf project.  I have the kepware project opened within their configuration tool and connected to the simulator - no problem.  I started a blank labview project and created a new IO Server and selected the OPC Client - as shown in the screen shots below.  Then the Configure OPC Client IO Server dialog opens.  It has a short delay and then an installation window pops for configuring LabVIEW Runtime Engine 7.1.1?? It progresses for a few seconds and then hangs for at least 10 minutes until I have to completely kill LabVIEW.

 

Any ideas here as to what other software or pre-configuration I should be doing to get this to work?  Can't understand why it would be needing runtime engine 7.1.1 for anything.  I remember one time about a year ago (using LV 2017) I opened this dialog successfully and flipping through the various settings just to explore.  But I didn't actually configure anything.  Now I need to use it and it hangs LabVIEW in a bad way.  Suggestions?  Thanks!

 

 

 LV New IO Server.JPGCreating New I/O Server

LV OPC Client Selection.JPGSelecting OPC Client

 

Configure OPC Client Hang.JPGConfiguration of Run-Time Engine 7.1.1 Hangs

Plot electricity usage to Waveform Chart every hour of the day

$
0
0

Hi all i would like to know what settings should i do to my waveform graph so i can display hourly electricity usage for a day. I only want 24 markers on the x axis and for this graph to only update once every  hour and reset after 24 hours. The picture bellow is something like what i would like to achieve. 

Image result for hourly electricity consumption data

cRIO 9035 with finished late

$
0
0

Hello, guys

 

This is my first post, if there is anything wrong, please let me know. 

 

I use cRIO 9035 to control my motor system with 9263 and design a timing loop with 1ms sampling time as the main structure to send the command to my driver. All Vi codes are run on the FPGA.

 

When I send short commands (about 15 seconds), everything works well. However, the longer command causes the timing loop finished late. For example, send command for 30 seconds and it works well before 25 seconds and starts to have finished late until to the end. 

 

After several testing, I can bypass this situation by "Run continuously". That is, send 30-second long command will have finished late at the first round and the same command works well at following rounds until I click the abort execution button. 

 

Anyone can tell me what happens and how to solve it?

 

Thank you

Applying dither to proportional valve control in cRIO

$
0
0

Hello Community,

 

I'm involved into a project of a test stand for valves testing - solenoid proportional valves control will be needed.

We are going to use cRIO with AO modules and utilize FPGA target.

Leaving the hardware apart for now, I would like to design the software for applying and controlling dither parameters.

 

On which target (RT or FPGA) the dither should be added to the control signal?

Can you recommend any solution (design pattern, function, library) for applying dither to the valve control signal in cRIO?

If not - how should I start?

 

Thanks for Your time.

Darek  

 

Creating unit test to subvi that only gives an output an STD output to CMD

$
0
0

So I wrote a program that sends a message to the CMD that opened up my program through the console Invoke Node but I didnt find a way to read what I wrote so I can made a Teardown VI for this SUB-VI for testing purposes.

I tried using the invoke Node for console "Readline" but it only waits for me to echo a statement so it can read it and doesnt read what I already wrote.

Any idea how to read the messages that I sent to the CMD through Labview.

Viewing all 66787 articles
Browse latest View live


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