Express DAQ data output to two numerical indicators
Hi,
I'm a complete Labview newbie, so apologies if this is a really obvious question, but after reading through pages of documentation I still can't get anywhere.
I'm using a PCI 6220 data acquisition card, and want to measure 2 independant currents, outputting each value on a seperate numeric indicator.
I used the DAQ assistant, and set up the two signals without too much trouble in the box that appears when you double click the assistant. If I connect the data output on the box diagram to a graph indicator, I can see both signals fine, but I would much prefer a numeric indicator for each signal. I can connect one, and that works fine: displaying the first current measurement I defined, but I can't see any way to get the second current measurement displayed in the same manner.
All help welcome!
Thank you
I've attached a screenshot of the VI and the DAQ assistant configuration window thing - hopefully this helps explain what I mean(!)
I don't seem to be able to choose a channel for the numeric indicator?
Attachments:
VI_screenshot1.jpg 366 KB
daq_assist screenshot1.jpg 146 KB
Similar Messages
-
I have a string,converted to a number, and two other numbers built into an array. The string that is converted to a number is actually a hex number read from a serial device. I am using the express VI, Build Table, to display the data on the from panel. The problem is that I want to display the one result as hex and the other two as a fractional with two digits of precision. Is there a way to do that or is it better to do it from scratch and not use the express VI in this case? Any help would be appreciated.
Thanks,
TroyExpress VIs are great for doing some things but they lack some of the versatility of the regular functions. Because of your mix of data types that you wanted to represent, the Express VI was unsuited to the task and the modification I made to your program is actually simpler (just look at how much code is inside the build table Express VI some time.
As to your second question, you will need to have a shift register maintain the contents of the table so that each repetition of the loop will append new data to the table. In the smiple example that I had attached in an earlier post, there is a shift register doing exactly that. I initialize the shift register at the start of the program with an empty 2D array. Each time the Add button is pressed, it takes the new row and appends it to the existing 2D array that is connected to the table. At some point, you might also want to consider redoing your program to eliminate all of those sequence structures. They make programs harder to read and debug. I would add some error in/error out connections to your serial VI. This would help you enforce dataflow without using sequences. It would also help track down problems shen an error does occur. -
I have keithley 238 SMU, which when used in sweep mode returns the value in a array of cluster of 4 numeric indicators of which 2 are voltage and current and other two are step size and delay....I want to plot
I-V curves, how to do that?Hello aby
this could be a possible solution to separate 2 values from an array of 4 elements clusters an create 2 arrays suitable for graphing.
Hope it helps.
Alipio
"Qod natura non dat, Salmantica non praestat"
Attachments:
a_solution.vi 24 KB -
Mutiple readings from Express DAQ Assistant VI
Hello All!
First I'm a fresh noob to LabView and although I understand most of the basic concepts, I'm also new to programming in general. I'm working on a project to remotely monitor several different parameters of a system. Right now I'm working on a test program to monitor three parameters in my shop across the street. I'm using a NI USB-6008 as a DAQ device, DAQmx 8.0 and LabView 8.0. All of my input signals are 4-20 mA signals coming from my three sensing devices.
Here's my problem; I need to monitor all three signals on digital displays. I can accomplish this by using three different instances of the express DAQ assistant but then I get the dreaded "50103 error" unless I wire the stopped output of one assistant to the stop input of the next in a feedback loop and even then I get the 50103 error on the first iteration of the loop. From my research I understand that this isn't the correct way to program this. I should use one DAQ assistant with multiple channels assigned to each one of my parameters. I've did this but now how do I make each one read out on an individual digital display? I only have one output from my DAQ assistant.Hi George,
Use split signal in the signal manipulation functions menu to get your 3 individual singals on respective indicators
Regards
Dev
Attachments:
SPLIT.vi 85 KB -
How to show data output in SSRS
Below is my simply query. I need to use Matrix SSRS format. I will put "Region" in "row" column, Header will use "Customer_Requested_Date" field, and will use "Amount" in the data session.
The data output in the "Header" field will show January.....until December (current month is December). In the Amount field under "December" (current month), I need to compute the formula like "Customer_Request_Month"
< = Current Month". (I do not have the field name called Current Month, need to get a Date/Time function to display Current Month).
How I can come up the data output under December Header field to show the current Amount in that section?
November, 2014
December,2014
Region
Amount
CRD Month < = Current Month
Select
Customer_Request _Date,
Customer_request_Month,
Transaction_Type,
Region,
Amount
From Table
Thanks,
Josephine
Josey TangHi Josey,
According to your descritption, you want to show the current month in your tablix. Right?
In Reporting Services, we can use the Now() and datepart() function to get the current month. Please use the expression below:
=Datepart("m",Now())
In this scenario, since you want to show the amount of current month within the column group, you need to create another dataset which always show the data of current month. Then you can use lookup() function to get the amount value from the current dataset
based on the Region. Please follow the steps below:
Create a same dataset(DataSet2) using your query. Add a filter on this dataset. Make Fields!Customer_request_Month.Value
=
Datepart("m",Now())
Then add a column inside of column group, using the expression below:
=lookup(Fields!Region.Value,Fields!Region.Value,Fields!Amount.Value,"DataSet2")
The design and result look like below:
Reference:
Expression Examples (Report Builder and SSRS)
Lookup Function (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Im getting an error when running a procedure that includes this code.
I need to select from a dynamic column name and save the result in a variable, but seem to be having trouble with the values being fed to sp_executesql
DECLARE @retval AS DECIMAL(12,2)
DECLARE @MonthVal VARCHAR(20), @SpreadKeyVal INT
DECLARE @sqlcmd AS NVARCHAR(150)
DECLARE @paramdef NVARCHAR(150)
SET @MonthVal = 'Month' + CAST(@MonthNumber AS VARCHAR(2) );
SET @SpreadKeyVal = @SpreadKey; --CAST(@SpreadKey AS VARCHAR(10) );
SET @sqlcmd = N' SELECT @retvalout = @MonthVal FROM dbo.CourseSpread WHERE CourseSpreadId = @SpreadKeyVal';
SET @paramdef = N'@MonthVal VARCHAR(20), @SpreadKeyVal INT, @retvalout DECIMAL(12,2) OUTPUT'
--default
SET @retval = 0.0;
EXECUTE sys.sp_executesql @sqlcmd,@paramdef, @MonthVal = 'Month4',@SpreadKeyVal = 1, @retvalout = @retval OUTPUT;
SELECT @retval
DECLARE @return_value DECIMAL(12,2)
EXEC @return_value = [dbo].[GetSpreadValueByMonthNumber]
@SpreadKey = 1,
@MonthNumber = 4
SELECT 'Return Value' = @return_value
Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to numeric.Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal data. We need
to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for:
https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
>> I need to select from a dynamic column name and save the result in a variable, but seem to be having trouble with the values being fed to sp_executesql <<
This is so very, very wrong! A column is an attribute of an entity. The idea that you are so screwed up that you have no idea if you want
the shoe size, the phone number or something else at run time of this entity.
In Software Engineering we have a principle called cohesion that says a model should do one and only one task, have one and only one entry point, and one and only one exit point.
Hey, on a scale from 1 to 10, what color is your favorite letter of the alphabet? Yes, your mindset is that level of sillyity and absurdity.
Do you know that SQL is a declarative language? This family of languages does not use local variables!
Now think about “month_val” and what it means. A month is a temporal unit of measurement, so this is as silly as saying “liter_val” in your code. Why did you use “sp_” on a procedure? It has special meaning in T-SQL.
Think about how silly this is:
SET @month_val = 'Month' + CAST(@month_nbr AS VARCHAR(2));
We do not do display formatting in a query. This is a violation of at the tiered architecture principle. We have a presentation layer. But more than that, the INTERVAL temporal data type is a {year-month} and never just a month. This is fundamental.
We need to see the DDL so we can re-write this mess. Want to fix it or not?
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
Data Entry Tab for Numeric Indicator does not Exist
Hi
I'm trying to set the data range for numeric indicators on LabVIEW 10.0.1. For some reason when I go to properties of my numeric indicator, there is no Data Entry Tab as explained on the NI website: http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/changing_data_ranges_of_nu/. Also, in the data type tab, there is a section for range but everything is grayed out. Any help is appreciated. Thanks
Solved!
Go to Solution.
Attachments:
Question.png 159 KBHi
Thanks for the replies
I just realized that data entry on a numeric indicator doesn't really make sense. But my question is, how do I go about setting data range for a numeric indicator? Based on this tutorial : http://www.ni.com/pdf/manuals/320998a.pdf (Page 128/250) in the older versions there seems to be a data range tab or option when you write click the indicator. In my case, the range is greyed out and I tried to play with it with no avail.
Thanks very much -
Aggregating output of two BS in OSB Split join
Hi,
i am using split join to invoke two BS and after the each invoke activity in parallel branch i have placed assign activity and assigning output variable of in voke to reply activity output variable response.parameter . However in o/p i am getting response of only one BS. can any one help on how to aggregating output of two BS in OSB Split join . my output is coming like this
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<ns2:NewOperationResponse xmlns:ns2="http://www.example.org/SjWsdl/">output</ns2:NewOperationResponse> -------->this is o/p of one BS. But i want to display O/p of two BS
</soap-env:Body>
</soap-env:Envelope>
thanks in advance..
Edited by: 11207106008 on Jun 26, 2012 10:11 PM
Edited by: 11207106008 on Jun 26, 2012 10:12 PM
Edited by: 11207106008 on Jun 26, 2012 10:13 PMSuppose you saves the response of each BS in variables: $response1 and $response2
then you need to configure the replace action after the parallel branch like this:
Replace node content of . in variable <variable name of reply variable> with <Expression>
Where you can provide in <Expression> a simple XQuery expression to combine the two variable contents. (Choose a root node of your choice, I have used AggregatedResponse)
<AggregatedResponse>
{$response1, $response2}
</AggregatedResponse> -
Report Data in to two alternate Unit of Measures
Hi
We Implemented "How to Report Data in to two alternate Unit of Measure". I have a question
1 Could we maintain Two alternate Unit of Measures for one Base Unit of Measure?
For example if Base unit is EA ( Each) we need to maintain this as CAR( Carton) and PAL ( Pallet).
Thanks
NagaHi Naga,
Are you talking about Qty Unit conversion. We can surely maintain CAR,EA,PAL and all. The Numerator and Denoms are maintained in T006. And accordingly the conversion happens.
Apart from that you can have your own customized Qty conversion using Transaction 'RSUOM'.
Lemme me know if this helps.
-Bikas -
How do I synchronize data collection on two DT3001 boards?
I am very new to Labview, and I am trying to find an easy way to synchronize my data collection on two DT3001 boards. I have tried modifying the AI Continuous Scan example. This works because I am using all 16 channels on each of my boards. Unfortunately, I cannot find a way to make both boards collect data beginning at the same time. Is there an easy way to synchronize both boards to collect data at the same time? Thank you for your help!
Hello Kacie,
I'm not sure how your DT 3001 device and it's drivers LabVIEW functions work, but for synchronizing acquisition on two National Instruments DAQ cards, you need to share a start trigger and sample clock between the two cards by connecting the Real-Time System Integration (RTSI) buses of the cards using a RTSI cable. This provides dedicated lines for sharing the same sample clock and start trigger, and provides highly accurate hardware-timed synchronization. Any synchronized starting you program in software in LabVIEW will be software timed. You can use the sequence structure within LabVIEW to group together different portions of code so that all the configuration is performed for both cards first, and then they are started at the same time. I know this probably isn't too much help, but I would need to know more about how your DT 3001 device and the AI Continuous Scan example works. You might be able to find better help on this at Data Translation's website.
Travis G.
Applications Engineering
National Instruments
www.ni.com/support -
Reverse data output from Agilent 3458A
I'm taking 500 sub-samples of a 500mS ramp waveform from a function generator with the attached vi, and the data output is reversed in time. That is, the data as displayed on the waveform chart shows the TRAILING edge first - a time-mirror image of the actual waveform captured. I thought this had to do with LIFO/FIFO, so I forced FIFO, but it doesn't help. What must I do to get the proper time-sequence data from the DMM?
Can't seem to attach my vi , but it's identical to the Labview sample Agilent 3458 Acquire Multiple Measurement.vi, with the addition of a VISA Write MEM FIFO.Ok, the data just comes out as an array. Well if you know that the data is backwards, just use Reverse 1D Array (as I already stated) to flip it back.
I remember working with that DMM before. I never found a way to get the data to come out like a FIFO. That's just the way the instrument works. Reverse the array and be done with it.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How to sync the data between the two iSCSI target server
Hi experts:
I have double HP dl380g8 server, i plan to install the server 2012r2 iSCSI target as storage, i know the iSCSI storage can setup as high ability too, but after some research i doesn't find out how to sync the data between the two iSCSI target server, can
any body help me?
ThanksHi experts:
I have double HP dl380g8 server, i plan to install the server 2012r2 iSCSI target as storage, i know the iSCSI storage can setup as high ability too, but after some research i doesn't find out how to sync the data between the two iSCSI target server, can
any body help me?
Thanks
There are basically three ways to go:
1) Get compatible software. Microsoft iSCSI target cannot do what you want out-of-box but good news third-party software (there are even free versions with a set of limitations) can do what you want. See:
StarWind Virtual SAN [VSAN]
http://www.starwindsoftware.com/native-san-for-hyper-v-free-edition
DataCore SANxxx
http://datacore.com/products/SANsymphony-V.aspx
SteelEye DataKeeper
http://us.sios.com/what-we-do/windows/
All of them do basically the same: mirror set of LUs between Windows hosts to emulate a high performance and fault tolerant virtual SAN. All of them do this in active-active mode (all nodes handle I/O) and at least StarWind and DataCore have sophisticated
distributed cache implementations (RAM and flash).
2) Get incompatible software (MSFT iSCSI target) and run it in generic Windows cluster. That would require you to have CSV so physical shared storage (FC or SAS, iSCSI obviously has zero sense as you can feed THAT iSCSI target directly to your block storage
consumers). This is doable and is supported by MSFS but has numerous drawbacks. First of all it's SLOW as a) MSFT target does no caching and even does not use file system cache (at all, VHDX it uses as a containers are opened and I/O-ed in a "pass-thru" mode)
b) it's only active-passive (one node will handle I/O @ a time with other one just doing nothing in standby mode) and c) long I/O route (iSCSI initiator -> MSFT iSCSI target -> clustered block back end). For reference see:
Configuring iSCSI Storage for High Availability
http://technet.microsoft.com/en-us/library/gg232621(v=ws.10).aspx
MSFT iSCSI Target Cluster
http://techontip.wordpress.com/2011/05/03/microsoft-iscsi-target-cluster-building-walkthrough/
3) Re-think what you do. Except iSCSI target from MSFT you can use newer technologies like SoFS (obviously faster but requires a set of a dedicated servers) or just a shared VHDX if you have a fault tolerant SAS or FC back end and want to spawn a guest VM
cluster. See:
Scale-Out File Servers
http://technet.microsoft.com/en-us/library/hh831349.aspx
Deploy a Guest Cluster Using a Shared Virtual Hard Disk
http://technet.microsoft.com/en-us/library/dn265980.aspx
With Windows Server 2012 R2 release virtual FC and clustered MSFT target are both really deprecated features as shared VHDX is both faster and easier to setup and use if you have FC or SAS block back end and need to have guest VM cluster.
Hope this helped a bit :)
StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts. -
Where can i find labview signal express DAQ assistant at?
Hi, i need help
Q1) where can i locate Labview signal express DAQ assistant at?
Q2) Is Labview signal express functions same as Labview 8.6 ?LabVIEW Signal Express and LabVIEW are two different products.
If you are talking about the DAQ Assistant, then you need to have the latest DAQmx driver installed and you should be able to find in the Measurement I/O palette on the LabVIEW Block Diagram.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies -
Arithmetic overflow error converting expression to data type int
Hi
iam creating on sp for the database total size , used mb and free size . percentage free .
in this purpose i was creating on sps, with in the sp iam was writing one select statement . it statement is
SELECT [Drivename] ,[DataSizedUsedMB],[DriveFreeSizeMB],DriveTotalSizeMB,
CAST( (DriveFreeSizeMB/DriveTotalSizeMB)* 100 AS NUMERIC(5,2))
As
[PercentFree] ,[DateRecorded] FROM
SELECT SUBSTRING([physical_name],1,1) AS Drivename,
CAST(((SUM(COALESCE(size,0)))*8)/1024 AS NUMERIC(20,2)) AS DriveTotalSizeMB,
CAST(((SUM( COALESCE( FILEPROPERTY( [name],'SpaceUsed'),0)))*8)/1024 AS NUMERIC(20,2)) AS DataSizedUsedMB,
CAST(((SUM(COALESCE(size,0))-SUM(COALESCE(fileproperty([name],'spaceused'),0)))*8/1024)AS NUMERIC(20,2)) AS DriveFreeSizeMB
,SYSDATETIME() AS [DateRecorded]
FROM sys.master_files
GROUP BY SUBSTRING([physical_name],1,1)) AS Data
it was executive one server with out error but the same select statement is writing antoher server iam geeting belo error.
"@ErrorDesc: Line 24 - Line 13- Arithmetic overflow error converting expression to data type int."
how to slove this issue..
please help me...Change 8 to 8E0, to make it a float literal. The data type of
SUM(COALESCE(size,0)))*8)
is int, since all components are int, and it can easily overflow the size for an int. If you use 8E0, you get a float, and the entire expression will be float.
Erland Sommarskog, SQL Server MVP, [email protected] -
Error converting data type nvarchar to numeric 'witholding tax' (OWHT)
Hi Guys.
After I have upgraded my clients 2007 PL 30 database to 8.81 PL05, and running a repair to fix inconsistincies, I am receiveing some error when opening any sales documents.
It takes place when I open a sales document, or browse previous docs. When browsing previous docs, it onlly happens on some of them.
I also receive a different error when viewing sales orders: Error converting data type nvarchar to numeric (CRD2).
Any ideas how to fix it?
It does not limit me from processing and using the rest of the functionality. All calculations with queries in the docs are still working.
Thanks.Hi,
Please check Note No. : 1402855 and see if the same applied to the issue mentioned by you.
Kind Regards,
Jitin
SAP Business One Forum Team
Maybe you are looking for
-
Deliver completed indicator is not getting updated in the PO item Overview
Hi Gurus, We have the PO with quantity of 10 and it has been GR/IR, but the Delivery completed indicator is not getting updated (Checked). The deliver completed indicator is selected in the config of t-code OMCD. Also there is no tolerance limit is
-
Waiting for Task Completion from multiple users
iam using Weblogic8.1 Integration BPM to design a worklist application. I need to create a number of Tasks(number know only at runtime), assign to users and wait for the completion of each of these task. I've tried using the Task Control factory to a
-
New to the Mac Mini world, my mini is less than 10 days old and the screen seems to randomly blink or flicker to a black screen and back to normal in less than a second. It even does it during the boot up process. Just checked for updates and it sa
-
How do i get rid of "other" taking up storage space?
"Other takes up almost half of my iphone storage/usage. What is it and how can i get rid of it?
-
Hello, I have parsed a text file and want to use a java regex pattern to get the status like "warning" and "ok" ("ok" should follow the "warning" then need to parser it ), does anyone have idea? How to find ok that follows the warning status? thanks