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

Cluster Button Stops row from Updating

$
0
0

I have a cluster set up a cluster that will delete the file it has the data for from the folder and update. The file is deleted from the folder but the cluster keeps the data it had before and does not update. I checked and the list does update but whatever row I push the delete button on that row does not update.


How do you save audio in as a .wav with myRIO?

$
0
0

I'm utilizing a high throughput FPGA personality for audio in and I'm able to pick up waveforms on a graph but I am unable to save the data into a .wav file. I am able to save a .wav file but it's empty (0 seconds). 

 

The goal of the design is to have a microphone pick up audio for 5 seconds and then save the audio into a .wav file on the myRIO.

 

The issue seen is that the audio isn't being saved properly. The current method is to use the build waveform component after the audio in and then pushing it into the write waveforms to file component. 

Help needed with enabling the digital module

$
0
0

Hi,

My current code: Once the captureIT.txt is found, the FPGA target in invoked and data acquistion is perfomed. I have used 20 Analog channels and 1 digital channel for data acquisition code.  

 

But I need to add in a part where if Drive.txt is found, I will have to enable only one more digital module to high and not the rest.

 

Knowing that there can only only one bitstream file, How do I make changes in my realtime vi so that I can perform both the cases by invoking the fpga target once? 

 

Any ideas on how do i proceed? 

 

Using the OPCUA Toolkit to duplicate NI OPC Servers

$
0
0

I'm currently trying to see if it is possible to duplicate the work done in NI OPC Servers using the OPCUA toolkit. Specifically, I have an Allen-Bradley Controllogix 5500 PLC that we currently connect to using the NI OPC Servers software. I want to move away from using this and try using the OPC UA API I have in LV2015 SP1 to make a client VI to connect and read tags from the PLC. I have not been successful thus far in my endeavors and would appreciate any help someone could provide. If anyone has an example of how they achieved a connection to a PLC using the OPCUA toolkit, that would help me a lot.

DAQmx Write (Counter Frequency) can cause LV2017 crash

$
0
0

Writing NaN to the duty cycle input of the DAQmx Write (Counter Frequency) VI will cause an abrupt crash of LabVIEW 17.0f2 (32-bit). So far it seems hardware independent. It will even happen with simulated cDAQ hardware. For example, create a cDAQ-9189 or 9178 chassis and add a 9401 or 9485 module. Run the attached VI with one of the counter channels selected. Click the Send NaN button and LabVIEW will crash. I realize NaN is not a valid input for duty cycle, but at worst it should generate an error rather than take down the entire application. Took me a while to figure this one out, but luckily the crash logs generated when running an EXE were pointing me to the VI that was causing the crash.

daqmx data out?

$
0
0

Hello labviewers,

 

I'm writing a program where the user enters a product code to perform some operation. This product code is given through a digital line to my vi where it takes the digital data and has to let a particular loop know what to do (via message queues) My question is the data coming in will probably be a binary, the data i need to get is probably a string (product 1, product 2 etc) how does labview know that the binary data coming in through that digital line corresponds to which of the product selection strings?

Do i have to specify that somewhere? I've attached an image of the vi I'm creating to accept the digital data and stick it in a queue to let one of the other loops know what to run.

I would attach the vi but there's a ton of dependencies.

Thanks and sorry for the long message,

B

Updating an array in MyRio LabVIEW

$
0
0

I have a program that is updating a array with the robot's current status. I'm using a for loop to scan through all of the robots. Currently, there is two robots, but more will be added in the near future. (See Capture.JPG or the full VI below). (Note: I drew in the parts of the VI that got cut off. The conditional statement is false after the first while loop iteration because I'm using it to define the matrix. So, the red line shows the proper connection when the conditional statement is false.)

 

I'm trying to update the array in the control panel picture after each iteration of the for loop. When I run this VI, it receives the values needed to update the array when I probe for values inside of the for loop, but it only updates the array of the second robot (Robot number one). Any suggestion on how to get the array to constantly update the values? Thank you!Control_Panel.JPG

How can I make TTL signal on demand?

$
0
0

Hi I am NI USB-6356 User.

I'd like to make a microsecond 5V signal when I push a switch button.

I found that I could make the signal by using counter function, however, I could not control timing.

The signal should be applied exactly when I push a Boolean button.

Could you please help me with this issue?

Thanks in advance.

 


State machine for temperature control

$
0
0

Hi!

 

Recently ive just created a labview program to control temperature of a temperature chamber. But I cant seem to make this one case work.

 

So, I want my heater (thermocouple 0, CH0) to make sure that it doesnt rise above 40 degrees while at the same time make sure that the water (thermocouple 3, CH3) in the chamber does not rise above 30 degrees. There is this case whereby if my temperature of heater has not risen above 40 yet but my water has already reached 30, I would want the heater to off. However, it will just stay on the entire time until the heater has risen above 40 and then it will off. I noticed there is this error under "compare temperature" (state machine) but im not sure how to edit it. 
Please help!

myRIO not found

How to rotate image in a vision assistant.

$
0
0

Hi,

 

I try to rotate the image in the ni vision assistant. 
Only one of the two attached pictures is rotated. I want to rotate like any other image, but I do not know how to rotate the image.

Please let me know if you need to add something to rotate.

 

Your help is much appreciated. Thank You.

LabVIEW signal express 2012 compatibility with LabVIEW 2016

$
0
0

Hello,

I want to convert a VI from LabVIEW signal express 2012 to LabVIEW 2016 so, is that possible?

How to link sql server to labview 2014

$
0
0

develpoment  environment:

labview 2014 (64bit) 

 

1. I can't search the database connectivity toolkit 2014(64bit),there is only 32bit in NI website. it can't  be installed.

2. The JKI VI Package Manange only have database connectivity toolkit for big data (64bit).

3. I don't know how use dct for big data to link sql server. The officials tutorial is not used.

 This is my first time to use labview,Pls help me.

Thanks  

Modbus RTU - Problem with 2 stop bits

$
0
0

Hello,

iam trying to communicate to Carel controllers and IO modules via Modbus RTU.

The Carel controllers have given network parameters:
Baud Rate: 19200

Data Bits: 8

Stop Bits: 2

Parity: None

Flow Control: None

 

The IO modules have adjustable parameters. All other configurations are working with the Plasmionique library except for the above named. Like 1 stop bit and odd parity. Even parity even and 1 stop bit is working. So iam assuming that the problem is caused by the second stop bit.

The errorcode is -1073807253: VISA Read in MB Master.lvlib:MB_ADU_RTU.lvclass:RX ADU.vi:4960001->MB Master.lvlib:MB_Master_Serial.lvclass:Querry.vi:3550001->MB Master.lvlib:Read Holding Registers.vi:2420001->MB_Master Comm Tester.vi

 

I have tried to program an own vi. It works as the Plasmionique Comm Tester for all other parameters except for the above ones.

 

I also have to mention that the communication with the Carel controllers is working and i have spoken to one of the manufacturer of the IO modules. He said the modules should be fine.

 

The Carel controllers AND the modules are working with the free program qModMaster.

Does anyone have any idea about what is wrong here?

 

Thanks for your help.

 

Albert

Interrupt-like data receiving over TCP/IP

$
0
0

Hi!

I have a device with WiFi connectivity. Sending data from LabVIEW to it, is straightforward. But how can I receive data efficiently? Data is not sent from the device periodically so an event-based procedure could be used for this.

I already have read several topics in this forum. Some users suggest parallel "polling" of received data. And as far as I know it is not possible to create an event on data value change in an Event Structure.

I have attached a simple vi which sends data successfully. 

Thanks! 


thread block size

$
0
0

hello everybody

in LabVIEW GPU analysis toolkit, is it possible to set the block and grid size from this toolkit ?? or i should create an external function written in code outside of LabVIEW.

please help , i am new this field

Bronkhorst EL-FLOW prestige with Labview

$
0
0

Hello everyone!

 

I am trying to start up a MFC from Bronkhorst with Labview. I have download the Drivers from the Company and I have tried to run one of the examples there. When I run this code I get the following error:

 

Error -1073807339 occurred at VISA Read in Bronkhorst FLOW-BUS.lvlib:FLOW-BUS RW.vi->Bronkhorst FLOW-BUS.lvlib:Read Setpoint (Percentage).vi->Bronkhorst FLOW-BUS Instrument Control Application.vi

Possible reason(s):

VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.

 

Anyone knows how to fix this issue or where to start checking? I appreciate any help. If anyone Needs more Information, please let me know.

 

Some useful Information:

- The MFC is using a RS232 conection and a USB to Serial converter.

- I have checked that I'm calling the right Instrument in VISA.

- Controller Manual: https://www.bronkhorst.com/files/downloads/manuals_english/917084--manual_el-flow_prestige.pdf

- I have checked already Baudrates.

 

Call Library Function

$
0
0

Hello all,now I have a vi,it uses Call Library Function,show as attached picture,but I don't know how to use this function.Can anyone help me.

Very appreciated for your help!

2d array to xml

$
0
0

Trying to write simple 2d array of integers to xml file using "Flatten to XML" and "Write to XML".

Can't understand, why does it make 1d array out of 2d?

i.e. for example array like this:

111213
212223
313233

turns in xml file (opened by MS Excel) into something like this:

11
12
13
21
22
23
31
32
33

How to make it write each column to the right place?

Multiple Daq assistant in sequence

$
0
0

Hi,

 

I am a complete new user of labview.

I am trying to take a calibration reading from a load cell to calculate an offset, followed by a test with the offset removed. My attempt at creating the block diagram falls over at the second instance of daq assistant.  What am I doing wrong?

I have attached the block diagram, I know there are a few loose ends but once I have solved the acquisition issue I will export data to a report.

 

Thanks in advance

 

 

Viewing all 67328 articles
Browse latest View live


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