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

HTTP request POST.vi delay

$
0
0

Hi everyone,

 

I am using POST.vi from HTTP Client Palette across my demo without any problem (100ms between request response) except one REST API which creates 5s delay.

 

When I use modified POST example from HERE with the same REST API, I get response withing 100ms.

HTTP_POST_method.png

 

I can't gen into the POST.vi as it is password protected.

 

I have used Wireshark to debug it and set the HTTP request header into the way POST.vi does it int the example snippet with the result of 100ms delay.

Using curl on ubuntu results also in 100ms delay.

 

I use POST.vi as a buffer: so url specifies IP address of the device with the REST API and the buffer carries data in JSON format.

 

 

Don't you know what could create that delay in POST.vi?

 

 

Thank you for any idea.

 

 

 


SPI with USB-8451. Send MOSI with a delay before receive MISO.

$
0
0

Hi, I'm trying to connect to Pasco force platform PS-2142. Fig 1 shows the signals when the proprietary software from Pasco communicates with the force platform. I want to recreate the signal in order to receive the force value in labview. I tried using the GeneralSPIRead.vi example from Labview but I cannot find a way to make a delay once the MOSI signal is send (as shown in Fig1). Fig2 shows what I am receiving.
Could you please help? Thanks in advance!

Read Typedef cluster from known folder path.

$
0
0

Hi Everyone,

 For my application  i have converted all my typedef clusters into varient. In some places i have to convert this varient into cluster for some kind of processing. In this situation i have to place all typedef cluster in the block diagram. If i add one more typedef i have to change this code. Is there is any way to read the cluster dynamically from the hard disk.

 

Thanks in advance.

MLX90614 with MyRio-1900 and LabVIEW 2014

$
0
0

Hello,

 

For a school project I'm trying to get a MLX90164 IR-thermo sensor working with a MyRIO-1900 via Labview.. 

However I can not get it to work.. The sensor is connected via the SCL and SDA port on the MyRIO.

I managed to read the slave address with an Arduino-controller. Because we are making a complete system i need to read the temperature with LabVIEW.

I've searched the internet and found out that the sensor can be read via I2C, because i have not enough knowledge about these adresses and SMBus I am stuck.. My question is, if someone would like to help me out a bit, so I can read the sensor with LabVIEW via the MyRIO..

The slave adress is 0x5A and the datasheet of the sensor is included.

 

Any help would be very appreciated concerning the required VI...

 

This is the link to the sensor i bought:

http://www.hackerstore.nl/Artikel/629

 

This is the datasheet that comes with the sensor:

http://www.hackerstore.nl/PDFs/IRTempSensor.pdf

 

Kind regards,
Lars de Vries

Stenden Hogeschool Emmen

Create custom excel template for Microsoft office report express vi

$
0
0

Hi,

 

I am trying to create a custom template for the MS office express report vi. I took  a copy of the standard template provided with the labview examples and modified the named ranges. But when I access the menu the named ranges are not visible in the list box. Can anyone please inform me how to create a custom template for excel

 

thanks

odimuthu

output limited amount of data per cicle in FPGA module

$
0
0

Dear all,

I would like to output to my NI6585 Adapter Module for NI FlexRio of 32 channels 200MHz Digital I/O, one word of 32bits every clock cycle in my FPGA module. I have done it before with DAQ, but never in FPGA and I am not able to do it.

First, I am dividing my file into some portions to send that data to 16 DMA FIFOs (I know that is the limit of my card). I am linking one fifo writting to the entrance of the other to write and read secuentially in the FPGA FIFOs and get the data correctly ordered. The main thing is that I want to output one word of 32 bits to my Adapter every clock cycle of 100MHz to read each bit from each channel pin. 
I have thought to only destiny 15 FIFOs to the data and the last one to put it in order, like another fifo insede the FPGA, but how only outputting 32bits is possible with out a queue or so on?My data element is U8, but I should need the first 32 instead of the 8 ones... I really need a hand.


Thank you in advance. Here are two pictures of my VIs, if more information is need tell me, please.

Best regards,
Miguel.

Robotics dMasscheck problem

$
0
0

I'm modeling robot from wrl files (previously converted from igs by Solid Edge). Mass is correct. I have that problem when I start simulation (only if I declared Inertia Matrix - I previously calculated it in Solid Edge).

Resize Control with Checkbox at Center

$
0
0

I am trying to create a checkbox typedef where a system checkbox is at the center of a resizable rectangle. At the moment I have a Flat Box aligned with the checkbox, but when I resize the control, the checkbox remains in the same place. How do I get the checkbox to automatically align with the center when the control is resized? Thanks for the help!

 

Capture.PNG


Tuning NI-TimeSync startup behavior

$
0
0

I have a cluster of cRIO-9068 systems running LabVIEW Real-TIme 14.0.0 and NI-TimeSync Plugin for Software-Based 1588 14.5.0. The cRIO systems will normally synchronize to our local network time master to within tens of microseconds after a number of minutes elapse from system power-up. That's all good. Additionally, I've observed that if a cRIO system clock is grossly out of synch with the network master on power-up, the underlying PTP slave will abruptly slew the clock so as to quickly synchronize with the master. However, if upon power-up the cRIO clock is fairly close to that of the network master, then PTP will gradually steer the clock into synch with the master. The problem is that in this scenario it can take as long as 20 minutes to attain sufficient synchronization for us to perform our mission, an unacceptably long period of time.

 

So my question is, can anyone suggest a reliable way of forcing the PTP slaves to always slew their clocks on power-up rather than steering them? Looking here I don't see any configuration parameters in ptp.conf that would allow me to accomplish this. Nor is there a PTP command equivalent to the ever-handy ntpd -gq.

 

TIA

Hugh

XPlane-9 interface with LabVIEW

$
0
0

Hi, I would like to know if anybody here know how to interface xplane 9 with labview .

 

I would like to display the ADF and VOR from the cockpit to display on the ADF. Anybody knows?

 

Thanks in advance Smiley Happy

appending timestamps and elapsed time interval to.csv file usind digital trigger

$
0
0

I am trying to log timestamps and time interval between these timestamps to .csv file. Digital input is used as a trigger.

I want to design logic such that, timestamps gets logged both the times when digital input goes off-on and on-off. Program should also calculate time interval between timestamps and add it to .csv file. Also, this file should be overwritten only after 12 hours. 

please guide me in right direction. I did not post my code because its just a garbage. 

EPICS 2015 Client I/O Server on 64bit LabVIEW

Import files and link them

$
0
0

Good morning everyone,

 

Beginner on LabVIEW, I need your help ! Smiley Happy

 

I'm actually working on a little mission about a screwdriver system.  This system got two move sensor, and is link to a screen which can display the torque thanks to 2 others sensors during the test. These measures are saved in a file on the cumputer of this system. 

 

I'm using LabVIEW in order to display the movement thanks to the 2 move sensor. I would like to save in a file these measures. (It's ok for this part, i used the block "write in a measure file"). But i would like to recover the file with the torque saved in the computer thanks to the system, and link this file with the move measures in only one file. 

 

Obviously i would like to see in the file the torque according to the move. that's the objective. But i really don't understand thanks to which way it can be possible. I already tried to open the files thanks to LabVIEW, but without success, and it's worst if i want to link 2 files. I searched in internet but i didn't found answers. So I come to you and i hope that you can help me Smiley Happy

 

I don't need to send you my code, i just got my 2 move sensors link with the block "write in a measure file". Smiley Happy 

 

Thanks you a lot in advance.

 

Regards.

 

ML

 

 

 

PS : Sorry for my english , i'm french and i don't speak a really good english, but i tried Smiley Very Happy I hope that it's enough for you to understand the situation Smiley Happy If you have any question i'll obviously try to answer as soon as possible Smiley Happy

Collect and store power readings between certain interval of time from Newport power meter 2936R using Labivew

$
0
0

Hello every one!!

 

I need to collect and store power meter readings from Newport power meter 2936R using Labivew 11. I installed the necessary instrument drivers. I need to collect 10 readings in one second and next 10 readings in next 10 seconds like that. I need to collect power meter readings for particular time interval and store those values. Can anyone please help me in this regard??

string to audio myrio

$
0
0

string to audio myrio.I want myrio to speck the string received from bluetooth module.is there any way to convert the string to audio signal and give it to audio output .


Error -201250

$
0
0

Hello,

 

I used a cDAQ9188 chassi connected to the computer with LAN Link.

 

For a reason that I don't understand, I usuly have the error -201250.

 

Why this error appear and what may  I do to fix the problem ?

 

For the moment I have change the Timeout value from 10 s to 20 s when I used DAQMX Read / Write function, but nothing change.

I have also check the Ethernet Cable...

 

Thanks for reply.

 

Regards

2014 30days evaluation CD

$
0
0

hi ,

         how can i get labview 2014 30days evaluation CD for trial.

Plot a waveform from a string

$
0
0

Hi everyone, i've to plot a waverform from a string (like this : +1.328546E-13A,-003.1000,+6.898991E-14A,-003.0000,+4.529815E-14A,-002.9000,...) and then save the data into a file.txt.

The second value(-003.1000,-003.0000,-002.9000....) has to be the X axis and the first one(+1.328546E-13A,+6.898991E-14A,...) the Y axis.

The string comes from a picoammeter and i'm using a serial connection.

I'm working with labview SE 2012.

Does anyone could help me?

ActiveX error 0x80070002

$
0
0

i build vi server on app(.exe), base active x Labview._Application class.

i call "GetViReference" method and call the vi(from llb).

its work good on develop computer, but on computer that only run-time installed(no labview develop environment) i receive from the "GetViReference" method error: "The system cannot find the file specified." code: -2147024894.

 

thanks

Producer/consumer stop problem

$
0
0

Hi everyone,

 

I need to control a positionner with a motion controller, and record the time of travel of the positionner between two points. I use a producer/consumer pattern, but the stop button doesn't end the program, the second loop is still running. I thought hitting the stop button would create an error and end the while loop.

Do you know where is the problem ?

 

Thank you for your help

Viewing all 69203 articles
Browse latest View live