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

Apple event to open a URL?

$
0
0

This is a bit of a newbie question - sorry!

 

I'm familiar with LabView, but new to Apple Events.  I want to use Apple Events in LabView to open a given webpage using (say) Safari.  So far, all I can do is to "Get ID" to get the ID of Safari; how do I pass Safari a URL (for instance, "www.google.com") so that it will open that webpage?

 

More generally, how do I find out which Apple Events are recognised by a given application?

(I'm running LabView 2010 under OS X 10.9.5).

 

Thanks!

Paul


Strange behavior with List Folder on Mac

$
0
0

I ran across some strange behavior with "List Folder.vi" on labview mac (yosemite, lv 2014 x64) and I was wondering if anyone could shed some light.

We're saving a file to a network drive but it doesn't show up when we call List folder. The vi returns all other files present on the drive, but omits recently created ones. We've confirmed the file does exists using finder and the command line (in labview).

Pico Tech High resolution Data Logger ADC24 - What does this sample code do?

$
0
0

I am programing a PicoTech HRDL ADC24 to log data in LabVIEW15. In the snapshot attached, the stacked sequence sets up the 16 channels (Have they never heard of a For loop??). The outer While loop then runs to take continuous measurements. My question concerns the code inside the red box: What are they doing here? The 'values' array is split into two before the index (noOfValuesPerCh*noOfChannels), which makes sense, as this selects the datapoints required from the initial array of size 1000. This 'important array' is then inserted into a differerent array coming from the shift register (i.e holds all the previous datapoints). The appended array then goes to the shift register. My question is: Why are they starting with an array of size 1000? Couldn't they just wire a zero to a build array function and wire that into the function? Then the array being put out would have all the desired datapoints, so n o need for cutting the array, no?
Cheers in advance
Doug

Set Dynamic Data Attributes interferes with Write to Measurement file Time column

$
0
0

I recently got LabView 2016, I have hit a issue that I can not resolve on my own.

 

In essence I have a Measurment Computing 16 channel single ended DaQ and I am using it to measure temperatures from 10K thermistors. The program works by taking a 5volt reference signal and Stienhart-Hart 4 coeficiant equation to calculate tempereature. The program samples these once a sec in a while loop and then get moved to a shift register so that i can calculate a moving average for the thermistor measurments.

 

I then have a seperate While loop where I have local varibles for the calculated moving averages that go to a merge signals then to a Write to Measurment VI(formatting to Microsoft Exel) once a minute. This all works great and is super accurate.

 

The problem occures when I go to name each channel with the Set Daynamic Data Attributes, I plug the Vi to the channels and select checkbox by signal name. I create a control for this so that the user may rename each channel based on its senor location. The name appears in the correct column but when doing this the Write to Measurment Vi does not record absolute time correctly, it will record the very first collection but after it defaults to Jan 01 1904? and when I remove the Set Daynamic Data Attributes it continues to work properly. Having the the channels named would be a great addition for my Front panel. Any suggestions?

Moving a cursor with Labview and pressure sensors

$
0
0

Hello! 

 

I am working on a project with labview. I would like to be able to move an on-screen cursor via feedback from pressure sensors on a chair. For example, if I lean forward in a chair, I want the cursor to move north on screen. If I lean backward, I want the cursor to move south. Would anyone be able to offer advice on how to start?

 

Thank you. 

Get Image Freezing

$
0
0

Hi everyone,

Using Labview 2016.

I'm trying to make a simple acquisition VI to run so I can use it as a SubVI later, but it always freezes and displays the Error -1074360293.

I believe that it may be quite easy to fix, but can't imagine what is wrong.

The printscreens are attatched below.

Please help me if you can.

Thanks

Oscar

Want to use Omnidriver Wrapper VI in NI Example of Ocean Optics 2000 4000

$
0
0

Hi

I want to use Omnidriver  Wrapper VI in NI conventional Example VI's of Ocean Optics 2000 4000. But USB driver to access default Example VI and Omnidriver Wrapper VI is different.It means when I run my example VI ,I get .......0 spectrometer found........  in "wrapper_openallspectrometer.vi".

As I have developed full working program for HR4000 and currently in use also.In that program, I want use boxcar width and scan to average function, which is not available conventional Ocean Optics VI's.Hence I have to move towards to access wrapper VI.

 

Pls provide me solution. Thanks in Advance.Waiting for solution.

Labview programmer about AC resistancs Bridge

$
0
0

Hello guys!!!

I have Standford Research System SIM921 AC resistance Bridge and SIM900 mainframe.

Now, I want to make a programmer to controll SIM921 through SIM900 (connect with PC by RS-232) using labview. Can anyone help me?

This is the first I have to control instrument through other intrusment! I don't have idea!!!!

 


Programatically change the environmental options

$
0
0

Hi

 

I was refreshing User Interface in my application. One of the elements on the front panel is an enum control. I'd like to change the items background color from white to darker one.

I know that I can change it in Options->Environment->Menu Background, but this sets the all the menus in LabVIEW to this color.

Is there a way to set it programmatically, so when I open this vi, the background color changes to dark, and when I close it, it changes back to white?

Will this still work in executable?

Building an EXE using the Report Generation Toolkit

$
0
0

Hi all,

 

I am using LabVIEW 2012 with OS Win 7 Pro SP1 64-bit

 

When building my project into an executable, I get a LabVIEW internal communication warning box.

 

LV warning box.png

This never happened with my previous version of LabVIEW 2011 with the same OS.

 

By trying to find what the problem was, I understand that it was coming from the VI’s library Report Generation Toolkit.

 

I am using the Report Generation Toolkit 12.0.0

With my previous version of LV 2011 I was using Report Generation Toolkit 11.0.0

 

If I delete from my application the VI attached: no more LabVIEW internal communication warning box.

 

Is there a way to avoid this message box ? Should I be concerned about these warnings?

 

The last thing I tried without any success is to add the following file to my LabVIEW project:   

 

  • labview\vi.lib\Utility\NIReport.llb\Standard Report\NI_Standard Report.lvclass my application uses standard reports.
  • From the Source Files page I select the class files and added to the project. I click the right arrow button next to the Always Included list to add the class files to the application.

Thank you.

 

Bravi

Reading from CO2 sensor connected to the PC

$
0
0

Hey everyone

 

I am facing a challenging problem. I have a CO2 sensor connected to the PC that I want to be able to read from and display it on a waveform graph. The main problem is to be able to read from the sensor in labview. I got a software program with the sensor but I want to be able to display it in labview together with the other sensor I have so that I wont need to have both labview and the software open at the same time. How do I accomplish that? I added a picture of the sensor aswell with some manuals. Thanks!

 

Greetings

DP

DAQmx array of tasks

$
0
0

Hi,

 

I'm building a monitorring application for a client. The monitorring application can monitor up to 10 "Drawers" to be defined by the customer. I thought it would be convinient if the client could define the Drawers as "tasks" on NI-MAX. This way the can decide how to wire the drawers to the 3 available NI-9205's and also define the scaling themselves.

The speed is not very important but with the vi I've built I can only do ~1sec updates when running 10 "Drawers", I need about ~10Hz. I did find the reason for the slowness, the DAQmx state machine but failed to fix this. I have tried to start the tasks outside the loop but this gives me the 50130 error because the "Drawers" share the NI-9205 modules; it does work if each Drawers has its own module.

 

I hope anyone can give me some tips/hints how to change my application maintaining the customer to change the wiring/scaling of its "Drawers".

 

Thanks!

 

Keyboard shortcut for probe

$
0
0

Is there a keyboard shortcut for switching to the probe tool? I would like to map the shortcut to a button on my mouse so that I do not have to go through the tools menu to select the probe tool.

 

Is there a pre-existing shortcut, and if not, can I add one?

 

Labview 2015 x64 and x32

Synchronizing readings from serial and pxie outputs.

$
0
0

Hi all,

I've got a test system that is a sensor that is connected to an xyz router. The main features are 

  • A serial port connected to a motion controller that outputs the encoder readings whenever a command is sent to the port. 
  • A pxie 5162 digitizer that outputs sensor readings.

I would need to accurately associate the encoder readings to the sensor readings to generate an x-y map of the sensor readings. Any suggestions on how to do this?

Reading a diode resistance by NI USB vs by Multimeter

$
0
0

Hello, 

I am reading a resistance of diode at certain voltage input from power supply 

and I found that 

 

at 0.2 V

the resistance value by NI USB-6212 : 200 ohm

the resistance value by multimeter: 2 kohm

at 0.5 V

the resistance value by NI USB-6212: 500 ohm

the resistance value by multimeter: 5 kohm.

 

Would you please let me know why the values are different by 10 times?

Thanks.

 

 


Forbidden UDP Port

$
0
0

Hello,

 Attached is a simple vi modified from Simple UDP - Sender.vi. The only change was made to the port numbers and address. The new vi is called Simple UDPmm-Sender.vi

Remote Port was: 61557      change to:5000

Local Port     was 61556       change to: 5000

Address:      was localhost    change to:192.168.1.1 (in this case)

 When sending 3 or 5 bytes (or characters) it (Simple UDPmm-Sender.vi) works fine just like the original (Simple UDP - Sender.vi) . But change the number of characters to 4 , then we get Malformed Packets as Wireshark reports (see snapshot). Use this with "Simple UDP - Receiver.vi"  in the examples.

This occurs in LV2014 and LV2016. We are using Windows 10.

 

Can someone throw some light on this and maybe provide a solution?

Thanks,

Mike  WN2A73

 

Reconfiguring DAQ VI to support multiple real-time updating analog output channels

$
0
0

In order to generate multiple analog waveforms through an NI-9263, I am using this VI to produce waveforms that can be edited at runtime. However, the waveforms take ~30 seconds to update regardless of the buffer size, frequency of signals, or the number of channels in use. I have found a new VI which allows me to instantaneously update my waveform output, but it only does this on one channel of my DAQ. Is there a way to modify the new VI such that I can output multiple channels of analog waveforms while keeping the ability to update these waveforms in real-time?

Disable/Case Structure Implementation Issue

$
0
0

In my block diagram I have 10 VISA input blocks. My goal is to allow the user to input a number of VISA inputs, and to disable the rest. I thought about using a case structure, but it does not allow me to remove or disable an unused VISA input. Is there a way to pass a condition to a disable structure (I know there is a conditional disable structure but I want to do this without creating a project) on the block diagram like could to a case structure? 

Bibliotheks-Pfad einer .dll im Knoten zum Aufruf externer Bibliotheken ermitteln

$
0
0

Hallo Leute,

dies ist mein erster Beitrag in diesem Forum und ich hoffe auf die Unterstützung der Community.

 

Sollte ich nicht ausreichend Informationen zur Lösung meines Problems bereitstellen, sagt mir das bitte. Smiley Happy

 

Zu meinem Problem:

In einem LabVIEW 2012-Projekt, welches über den LLB-Manager gestartet wird, wird eine .dll in einem "Knoten zum Aufruf externer Bibliotheken" verwendet. Das Projekt wurde nicht von mir erstellt, sodass ich evtl. nicht über sämtliche Informationen verfüge.

Das besagte Projekt ist auf einem Server gespeichert und wird über eine Verknüpfung auf dem Desktop des "Mess-Rechners" aufgerufen und kommt hier zum Einsatz.

Soweit kein Problem.

Wird besagtes Projekt jedoch von einem anderen Rechner aus gestartet, so wird eine Fehlermeldung angezeigt.

Die Fehlermeldung gibt an, dass die zuvor erwähnte .dll nicht gefunden wird.

Es liegt die Vermutung nahe, dass die .dll lokal gespeichert ist. Ich habe bereits eine Suche nach der .dll auf dem Server, sowie lokal auf dem "Mess-Rechner" durchgeführt, jedoch ohne Erfolg. Die .dll scheint garnicht zu existieren...verwendet wird die .dll jedoch.

Im "Knoten zum Aufruf externer Bibliotheken", welcher besagte .dll verwendet, ist lediglich der Bibliotheksname hinterlegt.

 

Gibt es eine Möglichkeit den Ort der .dll zu ermitteln?

peer to peer streaming

$
0
0

Dear M/s,

I am trying to develop peer to peer communication between PXIe-1075 loaded with 7966 fpga and 6229 daq card.

I have read examples but in every example they take two fpgas as a reference but here I have only one FPGA and one DAQ card.

Scenario is that I have to take digital data in from 6229 card and pass on to FPGA 7966 ,after processing it will be passed on to 5791 transceiver.

 

I have checked DAQ card it is working properly through MAX.

Now kindly guide that how can I create peer to peer stream of DAQ card ,though card itself is running on host.

 

 

Viewing all 67024 articles
Browse latest View live


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