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

monitoring induction motor using LabVIEW

$
0
0

Hye, i have a project which to monitor energy usage of three phase induction motor by using LabVIEW and NI USB6009, can i have a clue on how to start doing that using block diagram and front panel as well


Can LabVIEW for Mac build framework?

$
0
0

In Windows, LabVIEW can build .dll file and other software can call that dll.

 

How about that in Mac OS? I found the dll in windows is similar to the framwork in Mac.

Can LabVIEW for Mac build framework? Thus other mac app can call that framework.

converting image to text using ocr along with space detection

$
0
0

How to overcome the space detection problem during image to text conversion ?

Also some characters are being wrongly converted though we have trained our OCR with correct character set is being provided in the program. For eg. "i" is converted to "l" .

Problem with ImaqDX DLL

$
0
0

Good morning, I have a problem here that i hope you can help me to solve. I had made a downgrade from the vision acquisition software 2016 to 2014 for licensing problem. After i had done that i cannot use the ImaqDX function, in particular the open camera vi broke on execution with error: 

 

NI-IMAQdx: (Hex 0xBFF69024) The DLL could not be found.

 

I already tried to repair and then to unistall and reinstall back the VAS 2014. Hope that someone have an idea, i'm in trobule here.

 

Thanks in advance,

 

Francesco.

Re: Labview serial communication with RS 232

$
0
0

I want to connect with PLC LabVIEW software. Connection to give advice.

unable to stop a while loop

$
0
0

Hello,

 

I have built a small test udp program which listens to a port and displays a message as shown in the figure and attached vi (labview 2009 format). But when I press the stop button on the front panel, it does not stop. I have to do abort. What is going wrong in here.

 

Thank you for your time.

Error 1097 on calling dll

$
0
0

Hi Guys,

 I am trying to control a Syringe Pump valve from Cetoni using their Labview API. I did not write the dll. Before I ask them about it, I want to make sure I didn't make any mistake in programming it.

 

The particular function block runs without error when Highlight execution is ON. So there is some sort of timing problrm. It waits until the hardware changes position and then moves on. Without highlight execution it throws an error.

I tried with delays using sequence structure but to no use. How else can I make that function run slowly so that hardware finishes executing.

 

//============================================================================
// Valve control test
//============================================================================
BOOST_AUTO_TEST_CASE(testValveControl)
{
long NumberOfValvePositions = LCV_NumberOfValvePositions(hValve1);
BOOST_CHECK_GT(NumberOfValvePositions, 0);
BOOST_TEST_MESSAGE("Valve positions: "<< NumberOfValvePositions);
 
for (int i = 0; i < NumberOfValvePositions; ++i)
{
Result = LCV_SwitchValveToPosition(hValve1, i);
BOOST_CHECK_EQUAL(Result, ERR_NOERR);
CThread::sleep(200); // give valve some time to move to target
Result = LCV_ActualValvePosition(hValve1);
BOOST_CHECK_EQUAL(Result, i);
}
}
 
 Here the thread sleeps for 200 milliseconds...

 

change xy graph x scale precision

$
0
0

Hello

very simply i need to have fixed  number of digit after decimal point .

I thought i can do it with :

X scale -> Display format precision 

but i have faced with this error :

 

Capture.JPG

 

As i scale programmatically scale x-axis (because having more margin) i try this way :

Capture2.JPG

 

convert float to string with desire precision and then convert it to float .

it works but i thought maybe ther is better way .

 

Best Regards 

Morteza


Unable to read quadrature encoder with NI 9411 in NI Max

$
0
0

Hello all,

 

This is my first post here as I am new to Labview. I am trying to create an application that reads in applied torque vs angular displacement. I have a socket wrench torque transducer wired to an NI 9237 module for load/torque and the other wires go to an NI 9411 module for the quadrature encoder readings. These modules are connected to cDAQ-9174.I am able to see torque fine in MAX but I am getting nothing from the encoder. I have 5 wires going to the 9411

 

Yellow - Encoder GND wired to pin 12

Green- +5V wired to pin 4

Blue-CW Lead (Assuming A signal) to pin 1

Violet-CW Trail (Assuming B signal) to pin 3

White-ID Data (Assuming Z signal) to pin 2

 

I believe these are the correct pin connections as I have looked up many tips and exampless online and nothing has worked. I create a task in NI Max >> Counter Input >> Position >> Angular and when I test the signal, nothing at all happens. The acquisition mode is 1 sample... Any advice would be appreciated!

 

Thanks,

Reading Signals from XNET session

$
0
0

I am currently working on a data acquisition system using a cRIO 9025. On the target VI, I have a low priority loop which sends live values to the HMI, and I have a high priority loop which handles creating a data stream to be sent to the host computer and logged to file. At the moment, the application uses the FPGA to collect data from 5 NI 9236 modules and now I would like to include data from a CAN bus.

 

I have added an NI 9862 to the system which is connected to a CAN bus with ECU's transmitting data at 200 Hz. At first I tried creating a signal single-point-in session and reading the signals in the low priority loop to pass the data to the computer. However, doing so caused data points to be lost. So now I am thinking that I need to read the session in the high priority loop, but I would also like to continue reading the live values in the low priority loop for the HMI. If I wire one XNET session to two different Read Session VI's in separate loops, will there be a problem?

 

This might be a silly question but I am new to XNET and I want to make sure that the two read VI's will not interfere with each other.

why my VI shows tunnel missing assignment?

$
0
0

Hello,

I need to control two relays, if one open, then the other closed. This is decided by the numberic input is higher than 47 or not. Then, i hope if click stop button, all the setting to the two relays can reset to initial status.

 

However, my VI shows tunnel missing assignment. Does anyone know why?

Thank you.

64 bit Labview 2015 memory access

$
0
0

I wondering if anyone has work around to prevent memory crash or if this is fixed by some later release. I could remove some UI code but why bother with 64 bit and 16G of RAM.

 

I am doing a fetch data from an RSA test instrument. I convert the data from little to big endian and plot. I've minimized memory allocation as much as possible. The 32 bit Labview reports Memory Full (2 sec acquisition) and from viewing Win7 task manager this occurs when memory hit 2G. I recompiled and save the Project to 64 bit Labview and an issue still persist. I can view the memory going up to 3G and 64 bit Labview crashes. The is no error message about "Out of Memory" but just a crash report. I'm fetching 200MB. Anyone else experience this?

 

I wondering if anyone has work around prevent memory crash or if this is fixed by some later release. I could remove some UI code but why bother with 64 bit and 16G of RAM.

SUBVI connections issue

$
0
0

Hi,

 

I have a Eurotherm 3504 temperature controller connected to my VI including a number of SUBVIs to set the set point value and read the current temperature. The main code which is attached was not very new, so in order to make it communicate with Eurotherm I had to replace most of the SUBVIs with their 2008 version of drivers. Now, all my SUBVIs are working fine, I can read the current temparature from Eurotherm by both the subvis separately and by the main VI and I can set the setpoint through the "set setpoint value" subVI, but I can not do that by the main code. The fact that subvis are working fine but the main code is not, tells me that something is wronge with their connections. Can anyone help me find out what is going wrong in my connections?

If it helps, the "set setpoint value" subvi is in "run test" section of the code.

 

Thanks

 

Thermofisher Genesys 20

$
0
0

Greetings all,

 

My group was resently gifted a thermofisher gensys 20 from another group. They did not have the software with it that would allow it to scan across the spectum. Is there any way that we can use labview to run this instrument or do we have to go with the proprietary software?

 

Thank you in advance

Can't Install LabVIEW (messed up uninstallation of previous version)

$
0
0

Hey everyone,

I can't install LabVIEW 2014. The first time I tried, it placed all the files into the file system but LabVIEW wouldn't start. Now, when I run the installer, it doesn't even try to install, instead leaving me with an "Installation Complete" message on the main window and a new window that says that it couldn't complete the licensing step.

 

This is entirely my own fault, and I freely admit this. I screwed up downgrading from LabVIEW 2016 by deleting files from the filesystem directly rather than running the uninstaller (which I couldn't find until *after* I deleted files from the filesystem). In a poor attempt to get back to a clean state, I deleted National Instruments entries from the registry. This didn't help. I have no backups. Truly, I am my own worst enemy here.

 

Is there any way I can repair my system without reinstalling the operating system? I'd rather not have to reinstall all of my other software just because I was an idiot with this software.


LabVIEW Exe Crash Error: Exception Unknown (0xE0434352), Humidity Sensor Sensirion

$
0
0

Hi,

 

I created a LabVIEW *.exe file and during long runs (more than 24 hours) it always crashes at some point. I uploaded the error message (error_LV_RHonly.png) and the error log file (lvlog.txt).

 

I kind of figured out that the problem came from my humidity sensors from Sensirion (SHT21 with EK-H4).

I created a program only with this sensor(s) and it crashed again (this time after only ~1 hour I think). I uploaded this simple program (MultiRH_Only.vi) and the sub-programs (in .zip folder, downloaded from Sensirion website, see VI Tree).

 

After a quick search about the error message I found that there could be some problems with a .NET assembly. But that didn't really help me (Link). Probably something with the "EKH4API.dll"?

 

Also, when I end my program the EK-H4 doesn't shut down so if I restart the program (without closing the window) I cannot access the EK-H4. To do so I have to close the window and restart the Labview *.exe file.

 

Thanks a lot in advance! Please let me know if you need additional information.

Tobias

Event Structure

$
0
0

Hi,

 

I am learning how to use an event structure with state machine. The state machine is able to go from state to state when the "wifi module" boolean is pressed. However the program hangs after I press the "stop" button when the "wifi module" boolean is executing. May I know how to stop the program when the wifi module is executing? 

beginners question - NI PXIe-8100 operate without LabVIEW Real-Time Module suite

$
0
0
hi, I really hope you can answer my question here and i'm a beginner. If I haven’t LabVIEW Real-Time Module suite in my LabVIEW environment, I'm not able to develop, download, and debug my program to the NI PXIe-8100 via Ethernet, even if my program isn’t Real-Time application. is it right?

NI1752 smart camera with LabView

$
0
0

Hi,

    I am doing a project in which I have to get image from NI 1752 smart camera and save it to the system from Vision Builder via Labview.  I am acquiring the image in Vision Builder and sending it to a LabView vi.  When I try to create a vi in labview ( under the added smart camera remote target), when I right click to get the control vi, I see an empty list.  Even when I try to use shared variables in Vision builder, no images are getting shared.  I am using Vision Builder 2014 (same installed on camera too) and have Labview 2014 and 2015 installed.  Can someone give me a list of softwares that must be installed on the smart camera?

 

P.S: NI-MAX detects the camera and I am able to grab frames there.

Thanks in advance..

Storing Spectral measurement data

$
0
0

Ive been stuck on this for days please help! I have generated a multitone and can see its output in the time domain and frequecy domain ( frequency domain using spectral measurements). What I want to do is store the gain in dB from the spectral measurements block into an array and then compare each dB value to corresponding dB values of a speaker which will also be in an array. I unbundled the cluster wire coming from the FFT output of the spectral measurement and it has an array for magnitude but its only 255 elements long and I have no idea how to correspond each frequency to its magnitude, and where are the other dB values, I say this because the wave form graph has a max limit of 20kHz?  

Viewing all 66767 articles
Browse latest View live


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