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

Using a Wii Balance Board in Labview

$
0
0

For a school project we are making a robot that can play the game of Beerpong. We had the idea to aim with a wii balance board. I tryed out some VI's from old threads but none of them seemed to work for me. The best one i found was : https://forums.ni.com/t5/LabVIEW/Use-Wii-Balance-Board-in-LabVIEW/td-p/710740. I ran this VI but got an error and from some sniffing around i think my balance board isn't correctly transmitting data to labview. I only just started using labview so i am not nearly an expert on this matter. I have connected my balance board via the regular windows bluetooth screen and it shows up as a connected device. The light on my balance board also doesn't stay on as i think it should. I have added some images of the source of the problem.

 

Is there anyone out their with some knowledge about this matter that is willing to help me? If you need any other information just ask for it. Thanks in advance Smiley Wink


vi for the Garmin LIDAR Lite rangefinder

$
0
0

Does anyone have a vi for the Garmin LIDAR Lite v3 ? I searched and did not find one and only saw one other question about this low cost and powerful sensor. I have it running well on an Arduino board but now need to collect and plot distance data from it and would prefer to use Labview and LINX to control the lidar sensor through the Arduino board. I thought this would have been done on a First Robotics project but I did not find any discussions in their forums.

 

Thanks,

 

Doug

 

Error 1077 Property Node of Multicolumn Listbox

$
0
0

Hello All,

     I've run into an issue where upon trying to grammatically change the selection mode (through a property node) of a multicolumn listbox. When I attempt to change the selection mode from "1" to "3" the program spits out error code 1077 at me. 

 

I'm guessing that this property node is probably just meant to be used as an indicator rather then a control. So, if that's the case I would be grateful to hear any suggestions.

 

Thank you 

Python session fails to open (Windows 7 64bits - LV2018 32bts - Miniconda Python 3.6 32bts)

$
0
0

Hello,

 

I've been trying to start a python session from Labview 2018 32bits. First on my path is a Miniconda3 distribution of python 3.6.0 32bits (I tried also 3.7, and 3.6.7).

However it fails with the following error message:

 

Error 1671 occurred at test_python.vi

Possible reason(s):

LabVIEW: (Hex 0x687) There was an error in executing the specified function.


Python returned the following error: Error creating host process

This is the code that caused the error:
visnippet.png

 

Unfortunatelly that error code (Hex 0x687) is the standard "there was an error in the python code that was executed". This seems to be an issue with a function call by open session in the python36.dll . However I have no idea how to debug that. How would I isolate whether my python DLL is corrupt?

 

Questions (I'm looking for anything that might help me fix this):

 - How could I test the python distribution?

 - What is Labview doing to create a session?

 - Has anyone managed to get any Python>=3.5 to work with Labview2018 32bits (bonus: on a Windows 7, 64bits machine)?

 

The things it does not seem to be:

 - The python executable of this distribution works from the command line (regardless of the location of my cmd). Which suggests it's not a path issue and that the python installation works on the system (well it does because it runs successfully with labview systemexec).

 - This doesn't seem to be an incompatible version bits-wise. Labview has a specific message for that.

Other things that work on the machine:

- Labview 2018 64bits with Python 3.7 64bits (after changes to paths).

Labview 2018 32bits with Python 2.7.

 

If you think you have any idea on a step to take to get more information about the problem or what it could be, I'd be extremely grateful.

 

I'm a reasonably experienced developer in C and C++ but am a Labview newbie and don't know all the ins and out of python. However based on the other questions on this forum no one seems to have "fixed" that specific error without just using a different distribution.

 

 Thanks!

Help with code! NI-9174, NI-9237, NI-9264, NI-9375

$
0
0

Hi All,

Please help! 

 

Goal:

To write a labview program that will control 4 oriental motors(4IK25UGV-UA) motors to run independently while reading torque data from 4 torque analyzers(BMX-50i). The torque wrench is a click type wrench. I need to be able to measure the peak value then count that as 1 iteration. To get the peak value I must compare the last reading with the next reading, if the value is increasing then the compared value will be used to compare against the next reading and so on until the value is decreasing in which case the last high value will be used as the peak value. Then when the readings drop below 50% of the target value it should repeat until the # of cycles has been reached. 

 

Status:

I am able to control the motors, but not independently. Unless I break my vi's up into 4 different vi's which I would rather not due. I can read from 1 analyzer at a time but when I try to read from 4. I get the resource has been allocated error. Please see example below and any help would be greatly appreciated.

 

Code:

 motor.PNGmotor controlsensor.PNGsensor reading

Is PXIe-8238 supported by Pharlap OS

$
0
0

I Installed a PXIe-8238 card in a PXIe-1082 chassis however it does not show up in MAX.

 

Is this card supported by Pharlap OS?

 

I downloaded PXIe9238EthDriver.exe however i don't see any new software installation options on RT target.

 

LabVIEW Sections and Keys in old versions are different -- Why is that?

$
0
0

LabVIEW 8.6 saves keys in a format like this:

[thisSection]

thisKey=26.6

thatKey=12,5,76

theOtherKey=c:\workspaces\specialFile.txt 

 

LabVIEW 2018 saves keys in a format like this:

[thisSection18]

thisKey18="26.6"

thatKey18="12,5,76"

theOtherKey18="c:\workspaces\specialFile.txt"

 

Notice the addition of quotation marks on the key values.

Why was the change made?

It's causing a mess, since the client's code calls a code library which depends on the sections and keys in the original format.

Is there a backward comparability setting?

I currently am using a workaround which is to

1. close the key file

2. rename the key file (1)

3. use string VIs to remove blank lines and quotation marks from the renamed file (1)

4. write text to the original file 

5. continue processing the key file

Check out the LabVIEW 2018 code below, please.

 

 

Re: How to read Serial Data from Arduino using labview VISA?

$
0
0

Hi guys = )

 

I Hope you can help me...

 

I'm creating a monitor in Labview to view some information about some gas sensors and temperature sensor (MQ2, MQ125 and DHT22)..

 

The first thing i have done was creating the C code... It's working fine, i can see the results in the Serial monitor...

 

The problem starts when i run on Labview. The whole thing becomes a mess. The infos showed me are totally wrong ...

 

Can someone PLEASE help me?

 

I tried to run the code in parts (for example, if run only the MQ2 gas sensor .VI , or only the temperature .VI and it works fine).

 

The problem starts when i run all the codes informations in one single labview file.

 

I'm uploading the code in C and the .VI hoping someone can give me a hand to solve this issue.

 

Thanks !!!


Install fail based on OS detected

$
0
0

LV 2018 exe installer is failing based on Windows 7 SP 1 + being required for installation (an option inside the installer).

The actual OS of the PC which the customer is trying to install onto is Windows 10 Enterprise.

Issues?  Fixes?

 

Thank you.

How to solve memory full issue while reading tdms file

$
0
0

Hi,

Basically, I am trying to develop an application to write & read multiple waveforms continuously,

But due to continuous writing, tdms file size is increasing, thus leading to memory full issue& also increases the application memory usage.

Is there a better way to implement this application?

Thank you.

NI DAQ capable of +/-15V Output

$
0
0

Hi guys, is there any available DAQ or NI USB that's capable of outputting at least +/-15V and also can accept input as high as +/-15V? all I can search is up to +/-10V only

Disable HTTP port for web server gives Error 363500 uninstalling/Installing the server

$
0
0

Hi, I have the problem that I want to run my web server on only SSL ports, which is a standalone NI-web server installed on my computer without application, so I'm using the web configuration (e.g. http://localhost:3582/) to disable the HTTP port and enable SSL port which works as expected until I want to install/uninstall the web sever which gives the error,

LabVIEW: Failed to connect to the specified hostname.  Be sure the specified hostname is correct, the server is running and configured to accept remote requests.
Error 363500 occurred at LabVIEWHTTPClient.lvlibSmiley TongueOSTBuffer.vi:6120001
Complete call chain:
     LabVIEWHTTPClient.lvlibSmiley TongueOSTBuffer.vi:6120001
     Installer.lvclass:Authenticate Request.vi
     Installer.lvclass:uninstall.vi
     main.vi.

It seems it tries to connect to the HTTP port when uninstall/indstall. Is it some configurations I'm missing or anyone have any idea what I need to do to fix this?

Notifiers and Shared Clone Re-entrancy

$
0
0

Hello,

 

Came across this the other day. A quick search didn't yield any immediate results so I thought I'd share.

 

I'm unsure if this is expected behaviour but it still tripped me up.

 

If you have a pre-allocated clone which contains a wait on a notifier and a notification is sent before the VI is called, it is a race as to which clone will exit. The second clone will not execute until another notification is sent. This is despite 'ignore previous' being set to False.

 

You can see this below. The second Shared Clone never executes, unless the second diagram disable is enabled. (I have attached the source so you can try it yourself).

 

Snip Clones.PNG

 

I haven't tested this with Qs but I suspect the result will be similar.

 

This happened to me in a OO project where the clone was a dynamically dispatched VI so could not be a pre-alloc clone. The solution was to simply wrap the wait on notifier in another VI.

 

I'm interested to know your thoughts.

 

 

VI Construct HELP

$
0
0
Have this problem. Any help would be appreciated. thanks!
 
Construct a VI that performs number base conversions and then writes the resulting conversion
to a text file. The front panel should have the following components:
a.
A numeric control into which the user will enter the decimal value to be converted.
Change the representation of this control to
Unsigned Integer
(U64) so that the user will
not enter any negative or non-integer numbers.
b.
A menu ring to select from
Binary
,
Octal
, or
Hexadecimal
conversion.
c.
A string indicator to display the result of the conversion.
d.
A file path control to enter the name of the text file to which the results are to be saved.
e.
A Boolean button which causes the VI to write the results of the most recent conversion
to the designated file when TRUE. You will need to change the mechanical action of this
button so that it does not remain depressed after the write request is read by the VI.
f.
A STOP button which ends the VI execution. The program should perform as many
conversions and file writes as the user requests, until the stop button is pressed.
Each time a new file write is requested, concatenate a sentence to the end of the text file
conveying the most recent result. For example, the sentence “Decimal 7 is 111 in binary” would
be added to the file that converted the number 7 to binary. Be sure that you VI opens the text
file once at the beginning of the VI and closes it once just before stopping. You should not open
and close the file with each loop iteration.
To convert a decimal number to a different base, use a WHILE Loop that performs successive
division by 2, 8, or 16 for binary, octal, and hexadecimal, respectively and outputs the
 
 

Agilent 8510C Analyzer Driver

$
0
0

I have found Agilent 8510C Analyzer Plug and Play Instrument Driver here:

http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=014FBB25CCD5270DE0440003BA7CCD71

but I am completely missing instructions how to use it with the analyser. The analyser is quite old and even does not mention Labview in its manual. Bu the driver exists. When I connect the analyser through GRIB and try to use examples from the instrument folder, it does not connect. I assume, there might be some issues with port number or something, but I don't know which instructions to follow. Can someone help me with that?

 


Tracking Memory Usage with .NET Processes

$
0
0

Hi All,

I would like to track my application's memory usage over time, so I am using the .NET process functions to do so, however I have noticed that the Process.VirtualMemorySize, Process.PrivateMemorySize, Process.PagedMemorySize, and Process.WorkingSet64 (and non 64) all will return the same value on every call. I have attached a little vi that demonstrates the issue, and a built version. I build up a large array to increase the memory usage, and can see the increase in memory usage in the task manager when I build the array, however it is not reflected in the .NET function calls. However, if I close the references and reopen them, then call them again, the values will update. Anyone know why this is? Is there another method I need to be calling to refresh the data?

Screen Dump doesn't always work

$
0
0

I have put code into my app for screen dump of the front panel.  Problem is, sometimes it works, sometimes it doesn't work.  The Path indicates correction on the front panel, but checking the destination finds nothing.  Here is my code.  Also, Y directory is on a remote server that i make sure is communicating before I attempt to save a screen.

Programatically move virtual folders and contents into a library

$
0
0

I have been attempting to automate a process that converts my LabVIEW project with auto populating folders into a packed library build without disturbing the original project. I have so far been able to accomplish the following automated steps:

1) Clone the project

2) Turn the auto-populating folders into virtual folders

3) Create an empty library in the cloned project

4) Create root level empty folders in the library

3) Set permission on the folders

 

Where I get stuck is in moving the virtual folders into the library. This is very easily done manually by dragging the folders into the library and seems to correctly resolve all of the VI dependencies without issue. I haven't been able to reproduce that behavior in an automated fashion. I have tried the following:

- Used AddItem invoke node on the library with a type 'Folder' and a path to the folder that was once auto-populating, but is now virtual. This only adds an empty folder of the same name and does not move any of the contents

- Tried AddItemFromMemory invoke node on the library, which doesn't generally work it seems because the items are not 'in memory' I have debugged enough to see that the names being passed to the invoke node are as expected and have made it work on other small test cases where the VIs were in the dependency list, but it doesn't appear to work on items that are on disk and included in the project generally

- The most success I have had was with a recursive VI that rebuilds the folder structure in the library. Each item that is moved is deleted from the virtual folder before calling AddItem to bring it back into the library (to prevent a load conflict which will throw an error). This generally works, but is VERY slow compared to the manual drag and drop and leaves unresolvable dependencies in some cases that seem to depend on the order in which I move the items. In particular, it leaves class references in the unknown state and can't automatically resolve them even though they are in the project library when all is said and done. These conflicts do not arise when I manually drag-and-drop.

 

Questions:

- Is there a way to automate the drag-and-drop of folders into the library that works so well manually?

- If so, how do I do it?

- If not, what can I do to achieve the same result?

 

Thanks!

 

LabVIEW Pro 2017 x64

Win 7

Voltage Output for Module 9205 pin D0

$
0
0

Hi, 

 

I am trying to use pin D0 as digital output pin for an external boolean switch on a cRIO, module 9205. When I measure D0 using a voltmeter I get readings ~mV... Is there something special I have to do within the FPGA target LabVIEW program to get pin D0 to read 10 volts? 

 

Any hep would be appreciated! 

 

Thanks, 

Lane 

Add image with message popup

$
0
0

Greetings Everyone,

 

Is there a way to display image in the Message Popup?  I have attached the code. Thanks in advance for any suggestions that you come up with.

 

  • I need help with adding images to message to display box.
  • How do I display each instruction in order from 1 to 8? In current code message pop up randomly.
  • Prompt User for Input unable to cancel

 

Regards,

Milan

Viewing all 69078 articles
Browse latest View live


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