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

NI VISA - Temperature sensor - serial communication - 25*35 pixels - slow print to labview

$
0
0

Hello, 

 

I am using a temperature sensor which has 25 * 35 pixels and i have programmed it to print the temperature 8 or 16 frames per second. On any serial application it seems to work as expected but when i try to have labview display it it seems to print very slowly.

I have tried to go into device manager and change the baud rate to match my program but it did not help.

 

I have previously programmed a similar sensor which had 4*16 pixels (temp values) and it worked absolutely fine and i at least did not have this problem.

 

Attached below is the previous .vi file for the 4*16 pixels sensor which works great and also the .vi for the 23*35 pixels sensor which has the problem of printing the data very slowly ( with a delay).

A screen capture is also included.

 

Please Advise.

Thank you 

Atif


How to edit LVOOP object constant?

$
0
0

Does exist any easy (or even more complicated - programmatically) way to edit LVOOP object constant ?

Socket connection - Read error when data not avalible

$
0
0

Hi guys, 

 

I need your opinion in relation to reading some data over a socket connection. 

 

So, I have a server running on the local host and I have created a client with Labview to communicate with this server. I can read/write to and from server under normal conditions. But I'm facing an error when I try to read when the data is not available from server. TCP-Read function generates an error at this instance. Is it possible to check first before trying to read and read only if data available ? What is the best way to handle this situation ?

 

Thanks in advance. 

ProgramFiles at install

$
0
0

Hello,

 

I got two independants applications. They have their own installer with "Destination" configured as below :

ProgramFiles \ MyCompanyName \ ProjectNumberX \

"ProjectNumberX" folder Set as default installation directory.

 

When installing my two applications i am expecting to get each applications under each ProjectNumberX folders.

 

When installing app 1 then app 2, ProjectNumber2 is replacing ProjectNumber1 and i can't launch my App1.exe since folder and data as been replaced by App2.exe and its own data.

 

It seems i can only get one projet installed at one time... How to change that... ?

 

I tried to set Destination as "ProgramFiles \ ProjectNumberX \" and got same issue...

 

Any help will be appreciated.

Best Regards

 

Using LabVIEW 32bits 2016 f5, win 7 64bits

NI cDAQ-9185 Watchdog Expiring Even Though Reset Command Sent

$
0
0

I need to implement the Watchdog Feature on a cDAQ-9185.

I'm using the following code to reset the watchdog (which configures correctly - or at least without fault). The watchdog timer is set to 20 seconds for testing. After approx 7 seconds, the below Vi begins executing every 0.1 seconds, however the c-DAQ still times out. The below Vi also reports correctly that the watchdog timer has expired and fails my system.

 

Here's the code I'm using:

cDAQ Watchdog.png

 

Is there something I am missing? I've also ensured that there is no error on the error wire, but there is a warning (which is a Uninitialised Shared Variable warning, but it shouldn't cause an issue?)

Force LabView Instrument Driver Wizard to cdecl

$
0
0

Hi,

 

we use the LabView Instrument Driver Import Wizard to creat a LabView llb from a LabWindows/CVI VXIpnp diver. This works fine. But to be compatible with other platforms, we compile the driver with MinGW. For this we use the cdecl instead of stdcall. But the LabWindows Intrument Driver Import Wizard creates the vi with stdcall. Is there a way to force the wizard to create the cdecl functions? At the moment we have to switch in every vi manually from stdcall to c.

Realización de un contador dentro de un IF

Simultanous Vi execution: one feeds in to another to stop it... help!

$
0
0

Hello,

I want to run two Vis in parallel, essentially a motor program will start and after 60 sec the motor will run. I want to simultaneously start another Vi that will be collecting current data. The idea is that once the motor program finishes it sends a true to the other Vi, which will stop the data collection loop inside that  program, save the data and stop running. It doesn't seem to work. Any ideas? I have attached the separate Vis and theyre compiled program idea for better clarity.

 


Why column data of a database table is not getting updated in each iteration?

$
0
0

Hello All!

I am trying to uodate my database table which is structured as:

Column0: Number of Frames in a AVI (Total 868 Frames in my AVI)

Column1: Blob1, Column2: Blob2, Column3: Blob3 i.e particles/blobs present in a AVI

Each cell of table: represents a set of (X,Y) coordinates of all the pixels available in a particular frame. 

I have successfully inserted  frame number  and pixel coordinates of blob1 values in Column0 and Column1 respectively.

Next, I want to update column2 i.e Blob2 with it's corresponding pixel coordinates for each  frame of AVI. I have done this inside a FOR Loop so that it gets updated for each  frame.

Instead of updating each row of Column2 i.e Blob2 with the corresponding frames , I am getting an output where only the values (pixel coordinates) of the last frame is updated in all the rows of Column2. This means in all the rows of Column2, I am getting the same pixel values in all the rows of Column2 instead of different values in each row.

Can someone help me out what is my mistake or any Information?

 

 

acceleration to velocity

$
0
0

Hello,

I am trying to convert acceleration data to velocity. But I am getting ramp down when integrated(using time Domain math VI) and also a mean Offset value. I don't know the method to do it. Please explain how to correct it. Thank you.

Interrupt at at specific time and date

$
0
0

The big picture: I have quite big program that needs to do some things at specific times. I already have an array of timestamps.

I will simplify my question to one timestamp, and to turn on LED at that specific time.

I have a working VI (added) that checks the system clock every X miliseconds but i find this solution to be somewhat cumbersome.

pic of the VI:

interruptat.JPG

Does someone know or have an idea for a better way to do that?

 

Elen.

Enqueue Error only in executable

$
0
0

Hello everyone,

 

I got 2 applications working fine in developpement system.

App1 executable works fine.

App2 executable doesn't work (got error 1 when enqueueing)

App1 and App2 are similar with same queues pattern.

 

My conclusion is that create Queue went wrong (only on executable) but i don't have any other error comming up.

 

I tried this :

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PAiTSAW

But i can't fill up MachineName or IP Address, no projects found... so i managed by adding indicators and rebuilding app to find queue Ref was empty.

 

I tried to recode the generic call of queues contained in a PPL into the MainProject itself (in order to see if it was dependencies problems) but the problem remains, same error code, same ref empty.

 

I am stuck right now. I can't think about a new workaround, any help will be apreciated.

BestRegards

 

Background correction and Normalizing Image

$
0
0

Hello All,

 

I am trying to removing the background and normalizing the image data. I have an image which I attached here. 

All I want as end result of normalized image with no background. 

At last  I want to check the beam profile before and after.

 

Is anybody previously worked on it?

Any VI?

Any help would be appreciate.

 

Thanks in Advance 

Discussion forums "Access Denied"

Limitations of the Producer Consumer Template

$
0
0

Hello Everyone,

Before I ask my question let me explain my setup. I am using the NI9205 with a load cell, the NI9201 with five pressure transducers, NI9212 with two thermocouples. All of these are connected together in the NI9174 chassis. In order to collect data I am using the Producer Consumer Template to read and write data. In the Producer section I am generating fifteen data points, these data points include the instrument's converted voltage value, the raw voltage value, and time. I am writing all of these to a text file at 500 samples/sec.

 

My question is, “What is the limit of the Producer Consumer Template?” How many data points do I need to generate per second before the Producer Consumer Template stops working correctly? Surely big companies don’t just use a MASSIVE Producer Consumer Template to collect all of their data. Or do they?

 

Any thoughts and information would be appreciated!


Create a program that uses a DB to be shared

$
0
0

I want to create a labview program that uses the db connectivity toolkit to insert data into an access db. I then want to create an installer and insert the db in the installer so that I can install this app on multiple computers.

From what I have seen on the internet, I have to connect to the db using an address on my machine, but I want to know if its possible to do this with an address that can change among machines.

If this is possible, can someone please tell me how to do this?

Some instructions will be greatly appreciated.

Thanks.

Realization of a counter within an IF.

$
0
0

Good, I summarize my problem: I have a series of conditions and each time one of them is fulfilled I would like a led to light up and an accountant to increase, that is, having 4 conditions, there would have to be 4 counters. I show it in an image what I have done together with the code in java so they can understand me.

 

Java code:

for (i = 0; i <10; i ++)

if (x <0.25) {

     Turn on a led1;

     r1 = r1 + 1;

} else if (x> = 0.25 & <= 0.5) {

     Turn on a led2;

     r2 = r2 + 1;

} else if (x> 0.5 & x <= 0.75) {

     I turn on a led3;

     r3 = r3 + 1;

} else {

     I turn on a led4;

     r4 = r4 + 1;

}

}

 

I have made the conditions and the for loop, but I do not know how to pass a counter to each condition so that each time one of the ifs is fulfilled, the respective led lights up and the counter accumulates.

 

I hope you can help me !!

Where I can find LabVIEW Run-Time 7.1 (or compatible) for Windows 7?

$
0
0

Hi everyone,

 

I'm trying to download LabVIEw Run-Time 7.1 for Windows 7. I do have installed other versions of the Run-time but the program (LabJack U12) that I'm trying to use wants specific this version of the Run-Time.

 

I found this link to the Run-Time, but it didn't mention that works for Windows 7. I downloaded and run it, but this error appear: "The resource of this executable is corrupt. Unable to proceed with installation".

http://www.ni.com/download/labview-run-time-engine-7.1.1/716/en/

 

Other colleague have this program working and he is running that LabVIEW Run-Time in Windows 7, but he doesn't have anymore the installer he used back then.

 

I have enter to the LabJack website and download the SW where this Run-Time it's supposed to be included, but when I install the program I get the same error when with the NI Run-time.

https://labjack.com/support/software/installers/u12

 

So, does anyone have or know hot to install LabVIEW Run-Time 7.1 on Windows 7?

 

Thanks in advance.

 

Julio

which is best for image processing labview or matlab.

$
0
0

hi ,can any one  tell me which is best for image processing labview or matlab. if matlab best then why? or if labview is best then why?

scan engine setting

$
0
0

Hello,

 

I'm working on cRIO 9035 with scan mode, the scan engine setting is 10ms for scan period, 100ms for network publishing period. In the code, the timing source is synchronized to scan engine, dt is set to 100. Does this mean the scan engine run at a rate of 10ms per scan and completing a total of 100 scans per execution, and output one value for each data channel? i.e. 1 Hz data sample rate. Thank you guys.  

scan engine.JPGtiming.JPG

Viewing all 66787 articles
Browse latest View live


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