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

Error/Bug introduced when building PPL dependant is in symbolic path like Vi.lib (LabVIEW 2018/2019)

$
0
0

Hi all,

Some things really sneak up and surprise you from time to time: if you build a Packed Project Library ( lets call it: PPL_A") that has a dependency on another Packed Project Library which resides in vi.lib (lets call that one "PPL_VILIB"), you are not able to open the Packed Project Library ("PPL_A"). You end up with a dialog box simply stating: "Project or Library File cannot be opened" (see pic).

Any other location other than the LabVIEW symbolic paths (<vilib>, <userlib>) works fine. 

You can also open "PPL_A" if you have the "PPL_VILIB" loaded into memory beforehand. It looks like the second PPL is failing to load into memory as it cannot resolve the path to one of its dependencies, but the behaviour is different than that of it simply being missing - LabVIEW doesn't even try to search for it. At this point its suspiciously looking like a ppl cannot resolve dependencies from a symbolic path or something.

This behaviour is the true for 2018 and 2019, however it seems to be fine for 2014.

To test, try to build a PPL that references another PPL placed in vi.lib. Attached is an example:

 

1) Build "lib1.lvlibp

2) place "lib1.lvlibp" in <vi.lib>

3) Build "llib2.lvlibp" (which depends on lib1.lvlibp)

4)Close the project and try to open the built lib2.lvlibp

 

As always, any thoughts on this greatly appreciated: this is a huge wrench in our plans, as you can imagine.

Thanks in advance,

Cris

 

 


Not saving the right waveform data

$
0
0

I am using LabVIEW with USB 6216 with 16 inputs, 16 bits and 400ks/s. I am having problem while saving the data from the force sensor. I can see the right waveform graph where the value rises from 0 to 5 when force is applied. I also confirmed the graph with oscilloscope.When saving the data those right values as seen in waveform aren't saved. The saved values are somewhere around "0.00xxx" for 2500 data points collected. I cannot see any values between 0 to 5 even though force was applied within the time frame of 10 sec. I guess its only reading data from last moment. I am not sure about it though. The problem is only seen with waveform index 1,2 ,3 and 4   but not with waveform index 5.

 

File is attached below

How to read in voltages from 2 different sensors on two different charts? (LabVIEW 2016)

$
0
0

We are trying to read in voltage data from two different sensors and would like to have the data read in on two different charts on the same VI. We are able to chart the sensor data from both sensors on separate VIs, but when we try to run them on the same VI we receive the following error message: "Error -50103 occurred at DAQmx Start Task.vi:7220005." How can we get a chart to read each sensor on the same VI?

 

 

Wireless control of myRIO-based robot

$
0
0

I am building a robot, based on myRIO, to be wirelessly controlled without internet support. The problem I'm having is what platform to use as the controller. I have read an article detailing how to turn the myRIO's Wi-Fi into a hotspot, so I am considering using a Wi-Fi capable device to connect to the myRIO. The options I'm considering using are Raspberry Pi, iPad, and a laptop computer. I am aware of some advantages and disadvantages to each option. 

This robot is expected to operate autonomously after being directed by the controller. My plan is to use LabVIEW to write an executable to the myRIO and interface with it through the controller to provide instructions and receive data.

I have a lot of ideas that I haven't worked out yet and I'm not really looking for solutions in this post so much as inspiration. My team and I are in the planning stage of the project. Have you worked on a similar problem? What work and didn't work for you?

Thanks for reading!

Data Transfer from cRIO to cloud-service

$
0
0

Hello,

 

I am currently working as a programmer in a lab. My job is to create an executable that displays temperature readings and records them on a tdms file. The final part of the project is to be able to export this file to google drive, or any other cloud-based service that will hold the data. I am having difficulty getting a start with the export process. I am currently programming for a cRIO-9035 running Linux using LabVIEW 2017. So far I have looked in WebDAV, FTP, and a few other protocols already available in LabVIEW. I don't know much about networks and how servers work. The end goal is to that once the executable is uploaded to the cRIO that the file is uploaded every couple of minutes to the cloud programmatically. What would be the best way to go about this task?

DAQ MX plot data while waiting for a pretrigger

$
0
0

Hello,

I'm reading a force sensor. In my program I save the last 5 seconds of data once the trigger is activated. This works perfect. When I use a Waveform chart to plot the data, It shows me the data once I pressed the trigger. I would like to see the data in the waveform chart while waiting for the trigger signal.

Is that possible? It's something like plot the buffer while data is being stored.

Thanks in advance!

 

Error -8004: Reading buffer end index is invalid.

$
0
0

I'm somewhat new to LabVIEW and while I generally understand how it works, sometimes the new vocabulary creates roadblocks. I understand what the Reading buffer is, but I'm unsure what a "reading buffer end index is" and how it is invalid. I've had this error (-8004) pop up before, and it generally goes away for whatever reason, but I am curious as to what it actually means, since its something I see somewhat often and don't really understand. I've looked through my Keithley 2612B manual and the NI error list and haven't been able to find anything on it. Thanks!

Zip a folder with Labview

$
0
0

I am working on a project where I need to send an email to a set recipient when my input data changes. I have that part working, however i need to send about 20 images at a time. I think the best way regarding this project would be to send a folder containing those 20 images. The problem I am running into is that I can only email the folder if it is in .zip format. Is there any way to use labview to take a folder from my desktop and send it to a .zip folder? I have tried using the system exec vi to zip a folder with command prompt inputs, but to no avail.

Thanks in advance.


andor zyla and external shutter

$
0
0

Hi. I am sorry for bothering but I have encountered some issue and I am hoping someone could give a hint!

 

So, the problem:  I  have connected external shutter for the laser light to the system which I control trough labview interface. As well, I have installed the SDK for Andor camera. Now, I want to be able to execute actions as following:

1- open the shutter( for fluorescence imaging)

2- acquire an image

3-save as txt

4- close the shutter

What is happening now in executing my written code: I observe sample normally with high speed acquiring images. I make demand to stop live ( without closing and de-initializing library, so just made pause in live acquiring) and to open the shutter, then command to acquire one image and close the shutter.  The problems I have are:

 

1- the image that has been saved is not the image in the time between opening and closing the shutter ( so he saves another image before or after, I do not know). (I have already introduced delays and clocks, so I do not think its problem about the timing but who knows...)

2- time to save txt file is quite long ( 10 s or more)

 

I hope I was clear in explanation of the problem...

 

Thank you

VISA Control without NI-MAX - possible?

$
0
0

Hi Everyone,

 

I'm trying to install a program to control a VISA device on a computer that has very limited memory. With barely enough room for the software, installing MAX is impossible.

Right now it looks like my options are either installing NI MAX on a USB (which I have attempted and can't seem to figure out how to do) or find another way to communicate with my VISA device. Is NI MAX just needed to setup the device with that computer? Or does it perpetually need to be installed to communicate with it.

 

Thanks a ton,

Rees

Binary string to binary number conversion

$
0
0

Hello guys, sorry to bother you and thanks for watching over here.

 

I am currently doing the conversion from string to a binary number(I have string like1001000110 which is binary, what I'd like to do is passing the exact same value of the binary number from the string)

What I am getting the value from the 'Fract/Exp string to number' function now is '1E+10', is there any way to pass the exact same value in the string rather than 1E+10?

shot.PNG

Error -200279:Instance:0:480001, DAQ Assistant doesn't change sampling rate when on continuous for pressure bridge transducers

$
0
0

Hi,

My program buffers after a few seconds. I lowered the sampling rate to 10 Hz, but when I read the excel measurement file I can tell that the time step is too fast, close to 1 ms for each value. How can I slow down my sampling rate?

 

I am new to lab view and I am trying to write voltages from 7 pressure transducers that output mV to excel for calibration. I am using (2) NI 9237 pressure bridges on a cDAQ NI 9174 chassis. I have the chassis connected to a 25 ft active USB extension.  I do not think the extension USB is the problem because it works fine for the NI 9923 block and NI 9213. Also, when I only read one of the NI 9237 blocks I have the same error. Any suggestions?

Acquire Input Data.vi does not reset Mouse Scrolling value in Windows 10

$
0
0

Hi,

We came across the following issue when we upgraded our systems from Windows 7 to Windows 10. We are still using LabVIEW 2011SP1 on Win10-64bit PCs. 

I isolated the issue in the attached VI Test Scroll Vertical Slider:

In Windows 7, the scrolling value resets to zero (0) after each scroll event, and the slider behaves as expected, i.e., it changes the value by 10 units for each scroll step.

In Windows 10, the scrolling value does not reset, and the slider keeps drifting indefinitely (or until it reaches the end of the scale). Even if I stop the VI and restart it, the Acquire Input Data.vi still remembers the previous value, and the slide control of the Test Scroll Vertical Slider.vi starts drifiting immediately after the restart.

 

Does somebody know a workaround for this issue? (Upgrading LabVIEW is not an option at this time.)

Thank you for your help.

floating point problem with ramp pattern

$
0
0

I have problems with floating point in LAbVIEW.

Increasing A (A is defined in a range for convenience) I obtain different results on X.

This is probably due to floating point of START and END on Ramp pattern inputs.


How can I modify the diagram in order to obtain always the same (Right) result on X?

 

 

How to use advanced TDMS file read .tdms

$
0
0

I have a .tdms file that is automatically stored using 'DAQmx configure logging (TDMS) vi'.When I read with normal TDMS, the data can be read correctly, but when I read with advanced TDMS asynchronously VI, it can't be read properly, the data is wrong.I've been debugging for a long time and I don't know what the problem is.Everybody ace, have who can help me look, very grateful!


How to Perform a Self-Test on my PXI chassis in Labview?

$
0
0

Hi 

 

How to perform a self-test of PXI chassis(e.g PXI-1085) ?

NI MAX provides self-test function of PXI chassis, but I have no idea how to perform it in Labview.

 

OS: Windows 7

Labview 16.0

 

Regards,

 

YC

Fehler in Labview Funktion "Muster suchen"

$
0
0

Habe gerade ein einfache String Operation ausführen wollen und stellte folgenden Fehler in z.B. LabVIEW 15 fest

 

Stringeingabetext= Servicetool.vi

 

In der Funktion "Muster suchen" den Eingang "String" mit dem Stringeingabetext verbunden

Funktion "Muster suchen" im Eingang "Regulärer Ausdruck" den Text ".vi" eingegeben

 

Erwartete Antwort von Funktion "Muster suchen" am Ausgang "vor Teilstring" = "Servicetool

Tatsächliche Antwort = "SE"

 

Kennt jemand diesen Fehler ????

 

Is there any mDNS API for LabVIEW?

$
0
0

Hello,

 

Now we have one device under test. We want to get it's ip address via mDNS so that we can talk to this device via TCP/IP controls, but i can't find any API in the Internet. So is there any mDNS API for LabVIEW?

 

Thanks

Jim 

Start two while loops in differents VI

$
0
0

Hello, 

 

I would like to start two while loops in differents VI at the same time. I have looked at notifiers, queues but I don't really know how to use them. Can you help me please ? 

 

Thank you ! 

Peltier Cooler

$
0
0

Hi everyone,

 

I'm currently making a PID controller to heat and cool a Peltier cooler. I have everything working right for heating but now that I'm trying to cool, all my graphs show a rise in temperature even though I can feel that the Peltier itself has cooled down. 

 

The first thing I want to do is pump a known amount of current into the system and see what temperature it gives. Again, this works perfectly for heating but for cooling, still just shows a rise in temperature. 

 

Since I can feel the Peltier cooling, it must be something in my code that I need to adjust. Any help would be very much appreciated!

Viewing all 69278 articles
Browse latest View live


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