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

Watlow F4T

$
0
0

Hello,

 

i worked on Watlow F4S and used LabView drivers to add to the code and use it for my application. now that watlow developed the F4T the code I'm using does not talk to the new F4T, so i downloaded the new driver but i get a errors on the .NET. i don't really understand the *.net. do i need to associate the file or link it some how? i men i try to link the DLL file but still get errors. sorry never use the new way of doing things with NET.

 

my link is broken and the errors are multiple to display in short it has to do with NET.Any help would be greatly appreciated.


NI-VISA

$
0
0

I read that NI-VISA 18.0 is not compatible with LabVIEW 2014 Sp.1 (Education Edition). I just did a fresh install of LV 2014 on a rebuilt computer and ran all the upgrades and did not note what NI-VISA version was getting installed. How do I find the version of NI-VISA installed?

 

Thank you,

T. Jump 

SMTP Email with Attachments Issue

$
0
0

I am running LabVIEW 2013 SP1 for Mac.  I am using the lower-level VI's to send an email because I need attachments, specifically 2 text files.  If I try to send a file that is any larger than 54 bytes, then I get Error 363514, with the source:

 

LabVIEWSMTPClient.lvlibSmiley Frustratedend.vi:2280001<APPEND>

 

<b>Complete call chain:</b>

   LabVIEWSMTPClient.lvlibSmiley Frustratedend.vi:2280001

   SendEmail.vi

 

Why the random tiny size limit, and any way around it?  Thanks.

Heisenbug? Initialize to Default doesn't occur first, except in Debug

$
0
0

I have a "Success!" indicator that I want to set TRUE if the external library call to the DLL was successful. I also want to set it FALSE when I run the VI, so that I'm sure that it's TRUE because the call succeeded, and not because the state is left over from the last run.

 

So I went to Create Invoke Node: Initialize to Default and placed it on the VI. When I run the VI, the indicator stays FALSE, even though the library call successfully returns values from the DLL (which also proves that the call succeeded). It's as if the Initialize happens _after_ the compare returns true, instead of before the compare runs.

 

I turned on Highlight Execution to debug it, and now it works properly. Smiley Frustrated. This is 100% repeatable. If I turn off Highlight Execution if indicator stays FALSE after a successful run; if I turn on HE, it turns to TRUE after a successful run.

 

I thought the whole point of the Invoke Node: Initialize to Default  was that it would occur first, no? Or is my understanding incorrect?

 

I think I found a workaround, which is to wire the Error Out from the Initialize to the Error In on the library call, which I think forces Init to run first. Is my interpretation correct? I can't prove this, because debugging it also avoids the problem. But this also is 100% repeatable.

 

Without that wire my indicator is always incorrectly FALSE after a run, and with that wire my indicator is always correctly TRUE after a run (unless I disconnect the hardware to force a failure, e.g. then it's correctly FALSE after a run). With that wire, if I run the VI again and again, I can see it briefly flash to FALSE before turning TRUE, e.g. the intended behavior. But why do I need this workaround, and/or why does this behavior change when HE is on? Thanks!

 

InitToDefaultHappensLate.png

DLL

$
0
0

Dear all, I am using a Call Library function to call a DLL. However, I am getting an extremely weird error. My code is attached, its extremely simple. 

Visa read error 1073807339

$
0
0

I get error 1073807339 at the visa read.  This program works on my laptop but not on my test computer.  I have reinstalled NI488.2, visa, niserial, and nimax.  My whole program works with gpib and usb daq equipment.  I just cannot get this RS232 tachometer to work.  

- checked the port settings and they match

- ran Nimax and it works.

- tried a usb-serial adapter.  Works on my computer but not the target computer.

- had previously put this file on another computer and it worked.

- I added the *IDN? write option because the Nimax would give me something back if I used this.  But my application works on my laptop without this.

 

Any help is appreciated.  

LabVIEW freezing when opening a new VI under My Computer target

$
0
0

Hey guys,

 

I have a strange problem. When I open a new or existing VI under the local computer target in a project, my LV freezes/stutters for 5-10 seconds and my CPU usage jumps to ~35%. This only happens with the local computer target. When opening or using VIs under an RT it works fine. The same project on different computers dont have this problem, only mine seems to have it.

 

I am using 2015 labview. My computer is identical (spec wise) to my colleagues whom has no issues at all. Do you know what could be causing this?

Thanks.

VI failed to compile. External component or driver missing.

$
0
0

 Hi:

 (1) I try build project

firstlook U point xxx

(2) It failed  build and message as

Broken VIs:
- First Look OCU GetAudioFreq.vi:Instance:0:
VI failed to compile.
External component or driver missing.
- First Look OCU GetAudioFreq.vi:Instance:1:
VI failed to compile.
External component or driver missing.
- First Look OCU Initialize Test CMD.vi:
VI failed to compile.
External component or driver missing.
- First Look Payload Port Test CMD.vi:Instance:3:
VI failed to compile.
External component or driver missing.
- First Look Payload Port Test CMD.vi:Instance:5:
VI failed to compile.
External component or driver missing.
- First Look Read AMT encoder flipper.vi:
Contains unwired or bad terminal
Invalid property
Invalid refnum class
Contains unwired or bad terminal
Invalid property
Invalid refnum class
You have connected two terminals of different types.

 

(3) But when I open these vi. they are fine.

(4) also, I saw missing resource file "NI845x.rc"

I have windows7 , labview 2013

check the NI compatible, NI845 2.12 is OK.

but I install 16 too.

still have this error when I open in fold 1.

but it is fine from fold 2

I try copy from fold 2 to fold 1 for this vi.

I used copy and replace .

but seem the error still exist

(5) I attached the project.

 Thanks for help.

 

 


Synchronizing tasks using LabVIEW and NI USB 6001

$
0
0

Hello, 

 

I am using an NI USB 6001 to synchronize my output and acquisition but I am not sure this DAQ model can help me with what I need to do.

 

1. I need to generate a slow not periodic ramp (10-100s)

2. I need to send a trigger signal to the wave-function generator for initiating the application of the signal to my circuit. I need this trigger to be synchronized with the analog output (the ramp at point 1.) in such a way that it starts after a given time the ramp has reached the final value.

 

I have generated the ramp as an analog output of the NI USB 6001 but I am having troubles generating the trigger signal synchronized with the analog output. All the solutions I try they give me some kind of error and I am starting wondering if I can do it at all with NI USB 6001 or I need another model.

 

The errors I get are: 

Error-200375 when I use DaQmx Export Signal to export the start trigger and when I use DAQmx Create channel (Co-Pulse Generator ticks) to generate a pulse it does not allow me to select the output terminal to which send the pulse.

 

 

Thanks in advance for the help!

Best way to pass data between Main and Sub VI

$
0
0

Refer the data flow plan between the Main and Sub of a large machine code. I have just shown one Sub.VI. In reality there will be at least 20 odd sub.vi s. When the code starts it starts with the main and from the menu there, the user chooses the required sub.vi. The sub.vi loads and the main.vi then runs in the background ( FP is closed ). I would like to know what is the best option to pass data between the main and sub. Actually it is a bi directional flow as you can see from the image below. The options that we are used to is Globals / Functional Globals / Queue.  Anyother method that is more efficient ? The data rates are not very high - maximum we touch 10millisecond. In this scheme the DAQMX tasks reside only with the MAIN.VI.  It fetches the AI and DI signals , does some smoothing like moving Average and passes the arrays to SUB.  The SUB in turn handles the inputs , takes some decisions and passes back the required AO and DO signals to the MAIN which then writes it to the relevant task. 

DataFlow.jpg

Image Processing - Rectangle recognition

$
0
0

Hi,

 

I am trying to find a way to recognize the rectangle (or square) pattern in my images, and I tried to do it using NI Vision Assistant. I find a function for shape recognition, but it does not see my rectangle which is quite big (enclosed picture ShapeDetection_Rectangles.png), and it does recognize elipses (enclosed picture ShapeDetection_Elipses.png), which are not even supposed to be there. Can someone help me to understand better the shape recognition function and propose maybe another way to find my squares?

 

Thank you very much for your help!

 

Best regards,

Jola

Incompatible image type IMAQ Correct Calibrated Image

$
0
0

Hi,

 

I got the following error message when I run 'VT; Main.vi' en pressing the Calibrate button on the front panel.

 

VT; TRACK.vi error-1074396077 occurred at IMAQ Correct Calibrated Image

Possible reason(s):

Incompatible image type.

 

Typecasting the input 'Image Src' from U8 to RGB U32, which is the calibration template image reference, solves the problem. However, then thereafter I must immediately typecast the result of the 'IMAQ Correct Calibrated Image' function back to greyscale U8 as the input of 'IMAQ Find Pattern 4' needs U8 (only supported type).

 

Why does it not support grayscale (U8) input for 'Image Src' input node of the 'IMAQ Correct Calibrated Image' vi? In the help file it is stated under supported files:
U8, U16, RGB U32, I16, SGL, HSL U32.

So, it SHOULD not be needed to typecast the image...

 

Can anyone explain me this behavior?

 

Many thanks!

Property Definition Folder

$
0
0

Hi,

I am trying to learn object-oriented programming. Hence as a part; I am trying to code a simple basic addition function. I created a class with numerical private data. Then I created a property definition folder and under the folder, I created a method VI which adds another numerical value to the existing private data of our class and updates it. But my code is showing 3 errors which I can't understand. I have attached a jpeg image which is a screenshot of the error. Can anyone please explain to me what have I done wrong and how can I correct it. 

.NET Callback Event VI keeps the Callback VI reserved even GC.Collect() is used in Labview 2018

$
0
0

Hi all,
since years I use .net callbacks in Labview and till now I use the GC.Collect function to free the Callback VIs.

 

Now I use Labview 2018 and it seems that this doesn't work anymore ...

 

Does anyone else have this experience?

It also seems that in LV2018 the .net is changed more, because if use the Maun->View-> net assemblies in memory, I get a corrupted labview error ...

 

Thanks
Hans

Order of elements (pixel positions) in RGB arrays

$
0
0

Hi!

I have two questions:

1) I have a number of images, and I want to create a 3D plot for each of the RGB Values for each image. The plot should contain: x-coordinate (x position of pixel), y-coordinate (y position of pixel) and R-value for example as z- coordinate. I get the R, G and B values of the image as 1D arrays. Each array starts at 0,0 position and as I can see on my displayed image, it goes forward on the x-axis (1,0; 2,0; ...n;0,.....). I cannot find out what comes after position (n;0). It's not (1,0) and not (n,1).

2) Is there an easy way to create a 2D Array for R, for G and for B values, where the position of the R value (for ex) in the array represents the pixel position on the image? the Option Color image to array (vision) gives the pixel values with the "correct" position but not the r, g and b values.

Thanks in advance for helping me!

 


Dynamic VI for data acquisition monitoring

$
0
0

Hello there,

 

I'm currently working in a project that the data acquired from the sensors should have been monitored in a test panel. 

 

I got the front panel design and i also made this vi re enterant.

 

Now I need a solution to pass sensor data continuously to a dynamic vi? Is it possible to make it by using set.control.value node within a for loop, or is there any elegant and safer approach?

 

thank you

Parallel While Loop + Timer Problem

$
0
0

Hello, 
I am have difficulty trying to have my main code run alongside two while loops, each of which contain a timer.  

The code takes in information from 3 temperature sensors, 2 soil moisture sensors and a humidity sensor.  The information is then processed through the code and appropriate action is then outputted.  I am using a USB-6008 which outputs to 5 digital outputs that switch on / off a bank of relays to control various instrumentation. 

There are two timers that feed into one another, this is designed such that a on state can be obtained and then an off state.  This is such that a grow light can be put on and off for a set amount of time.  The timing works correctly, however i am hoping to have my main code run at the same time as the timers, this is such that continuous measurements can be taken of temperature, moisture.. ect while output action can be applied.    

I have tried taking the output DAQ outside of the while loop, and while this fixes the problem allowing all while loops to run together, it prevents an actual output to occur, thus not turning on / off relays. 

Any help would be much welcome, 
Cheers.

Deciding if a target is real-time or not

$
0
0

Hi all!

 

I would like to check on target references (from project items) if they are real time targets or not.
My try was to check the Application.Real-Time Support property but it doesn't work as I expected. Does anyone know what does this property mean?
Is there any way to get whether a target is real-time target, or not?

 

Thanks,
Barnabás

dll or API audio for windows

$
0
0

Hello,

I have a sound file (4 tracks to have quadriphonic sound), when I play this sound with VLC, I don't have any problem but when I try to play with LabVIEW I have only the sound on the first and second but not on the tree and the four speaker. Do you know if I can communicate with API Windows 7 (dll for example) to play my sound file with my hardware which is TASCAM (US-16x08) thanks for your answers. 

 

Best regards    

RS485 timeout error 6101.

$
0
0

Sup Guys

I'm using a Omega cn7800 and I want to use it in my lab view program

it is being connected to my computer via a RS485 to usb converter.

Sadly when I tried to use the Example VI it I got an error. I've searched on internet for a solution but sadly there were none

Viewing all 68944 articles
Browse latest View live


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