WSN Output
Good morning,
Is it possible to resolve a complaint? I have a hardware designated WSN andWSN-9791-3202, is now all set up.
I can read voltage values, but can not control my digital outputs, I intend to getthrough a boolean voltage of 12V.
For this application it is necessary LabVIEW WSN Pioneer? Or just be able to runwith LabVIEW?
Thanks in availability.
regards,
Hugo Santos
Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
Hi Hugo,
thank you for using NI discussion forum.
All will depend on the needs of your application : with the NI LabVIEW Wireless Sensor Network (WSN) Module Pioneer it's easier to customize the node behavior, battery life is extended, and performance are better on analog and digital input.
You can find more information about this module here:
http://zone.ni.com/devzone/cda/tut/p/id/9006
I'll see you on your second forum (http://forums.ni.com/t5/Wireless-Sensor-Networks/How-to-control-the-output-voltage/td-p/1956057).
Regards,
Audrey_P
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...
Similar Messages
-
Microseconds delay to control digital outputs in WSN-3202
Hi,
I’m using the LabVIEW WSN Module to control the digital outputs of the WSN-3202 node. Is there a way to add a microseconds delay in my flat sequence structure? Because I’m using a pulse driven optical sensor which requires delays intervals in microseconds.
Thanks,
AhmedHi Ahmed,
The availability of a microsecond resolution for timing depends on the onboard clocks or setup that the system allows. These nodes are often used to control/acquire in a non-continuous way to save battery. Therefore, they are required to wake/sleep in cycles that take a couple of minutes generally. What are you exactly trying to do with the node? -
Good morning,
I have a doubt. You are aware that the sensor WSN-3202 has 4 analog inputs and4 digital outputs, a doubt arises in respect of this sensor outputs.
For example, for connecting a LED (6V) to one of the outputs of the sensor, I have to do?
Best regards,
Hugo Santos
Hugo Santos
Student at ISEC - Master Mechanical Equipment and SystemsGood morning,
for programming in LabView plates WSN, I need to have LabVIEW WirelessSensor Network Module Pioneer?
For example, I need to have input and output, can do the way is down?
regards,
Hugo
Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
Attachments:
input_output.jpg 15 KB -
respected
i want to get digital output from wsn 3202 to blink a led.but this program does not work for it which i attached below..plz help me to get digital out put...
Attachments:
Untitled.png 12 KBHi,
Are you setting the output to be sourcing or sinking? Are you setting the corresponding circuit outside?
Regards,
AGJ -
Using 4-20ma Sensor on NI WSN-3202
I have a vibration switch http://ifmefector.com/ifmus/web/dsfs!VKV021.html that I am trying to get to work in my wireless sensor network. NI only offers a voltage input node (NI WSN-3202), but the sensor is only available in 4-20ma output. The analog output is only 1 wire.
Is there a way to convert that signal to use voltage and have the WSN read it accordingly?
Thanks,
JoshPut a precision resistor in the loop and read the voltage across the resistor. For a 5VDC voltage input, use a 250 ohm resistor.
-
Write digital output on wireless node
hello
i have wsn kit with 9791 gateway, i need to program node 3202 to write a digital output, i want to know how can i do this in labview ?
do i have to write program ? what library in labview should i chose ? is it using FPGA module in labview ? i really spent alot of time searching for this answer and i am new in labview program
thank youHi,
In order to use the WSN-3202 with Gateway-9791, you have to install LabVIEW and NI-WSN driver.
You can find the software version support for your WSN at http://zone.ni.com/devzone/cda/tut/p/id/12734#toc0.
After you have install the software, you can configure your WSN using Measurement and Automation Explorer (MAX) and add WSN node to the gateway, it might not looks exactly the same in the picture below because I am not using 9791 as the gateway.
Next, you can open an empty project or your existing object and add your gateway into your project.
After you add the gateway and your node into the project, you can access the DIO at WSN-3202 through the share variable node. You can just drag the DIO from the project explorer into your vi.
Best Regards,
KH
Application Engineer -
Get User Messages on the Host PC from WSN Nodes
Hi,
I have read the "LabVIEW Wireless Sensor Network (WSN) Pioneer - Under the Hood" and try to transmit user messages from a WSN node to the host.
However, I am stuck at the WSN Get New Messages VI. I am unable to use a "Display Message to User" function or "Unbundle function" to retrieve the messages from WSN Get New Messages VI. Can anyone help me ? I have been stuck here for hours. Thank you very much !
Regards,
Xinke
Attachments:
Unable to read WSN Node User Messages.jpg 57 KBHi xinke,
looking at your code, I believe the issu eis that the output of the Get New Message node is an array of clusters and as such should be indexed as with a normal array before being split up with unbundle. i have attached a VI that shows this to my post.
I hope that this helps!
Liam A.
National Instruments
Applications Engineer
Attachments:
WNS.vi 10 KB -
I have developed the program for NI WSN 3214 but I am unable to deploy the code. When I run the code I get the following error.
[12:31:32] Status: Build Error.
Error message: Linker error occurred
Error Output:
error: cannot find file "libfirmware.a"
I have attached the error message screeshot.
Kindly help to solve this error.
Thanks in advance
Attachments:
WSN error.png 54 KBHi,
Did this happen before or it is the first time you use these WSN 3214 nodes? Other than the WSN 3214 (ID 2) that has a build error, did the others managed to compile? Have you tried just one only?
If the rest of the WSN 3214 node had the similar build error message, what is the NI WSN driver version are you using? Did you update the firmware of each WSN nodes?
Regards,
Lennard.C
Learning new things everyday... -
The manual states that the North American version has 50mW maximum power. Is this figure adjustable? Or is the node setup to choose the least power required to successfully transmit?
Thanks!
GarrettHey Garrett,
That value is not adjustabl. The output power for the North American version is 17 dBm, and the International Version is 10 dBm. Note that due to the lower transmit power, the International Version does not have as long range as the North American version.
Kevin
National Instruments
WSN/Wireless DAQ Product Support Engineer -
hello
i want to control the air condioni AC with a relay circuit to switch it on and off by WSN (wireless sensor network), i want to send a digital output to the node and then from the node to digital to analog conversion circuit then te analog output to the switch circuit which will be a relay based, so is this possible to do or not ?If you want to use digital output wirelessly I would reccomend using WLS instead of WSN nodes. WSN nodes are more for sampling data, than for controlling things.
Here is a link to WLS-9163: http://sine.ni.com/nips/cds/view/p/lang/en/nid/205688
Regards,
Matt
Applications Engineer
National Instruments -
How to pre-check for HDCP (Output Protection) capabilities of a device
[ Background ]
Your application may want to pre-check if a device is HDCP compliant ahead of time to determine if you want to stream HD bitrates to it.
One way to do this would be to package your content with a DRM policy that sets the Digital Output Protection constraint to REQUIRED. During playback of that content, if there is a DRMErrorEvent 3338 (Unknown Connector Type) or 3342 (Digital output does not have supported capabilities), then your application can abort playback and request a lower bitrate stream that does not contain DigitalOutputProtection=REQUIRED.
However, this workflow is not a seamless user experience, because playback must end and restart. It would be better to pre-check whether a device has HDCP capability before requesting the appropriate content to stream.
[ Solution - Embed & load an "HDCP checking video" into your app ]
I have created an FLV content that is small enough to embed into your application and loaded/played in order to determine if the device returns a DRMErrorEvent 3338/3342 (no HDCP detected) or a DRMStatusEvent (HDCP detected & engaged).
I have attached the same FLV as well as sample code on how to embed/load/play this content. I have also included an HLS sample, if you are an Adobe Primetime licensee. I haven't provided a code sample for HLS, but the concept is the same - embed and load the m3u8. The .ts file is not required.
cheers,
/Eric.Hi zeroxx,
It sounds like you are trying to do the same thing that is in one of the shipping examples. Take a look at the example named "Voltage - On Demand Output" Under Hardware Input and Output >> DAQmx >> Analog Output. To get to the example finder you can select Help >> Find Examples... If that specific one does not fit your need try looking at the other examples in Analog Output to see if any of them works for you.
Hope that helps
Brian A
R & D Product Support Engineer | WSN/Network DAQ/Academic
National Instruments -
When 3212 digital output to active a relay
plz help me about digital output of wsn 3212 .when temperature of thermocouple is abov then 25 degree i want to active a relay from digital output of node..plz tell me about this program...
sir suppose i want to measure temperature from thermocouple from wsn 3212node.nd compare it with 40.when temperature is above than 40 degree.it give an digital out put from wsn3212 to active an relay to run a fan..here is programming example is attached.assume here numeric value compare with incomming value from wsn 3212 thermocouple temperature.when temperature above than 40 then led on...
Attachments:
labview.png 192 KB
labview.png 192 KB -
Total is not getting displayed in the ALV output.
Hi,
Total is not getting displayed in the ALV output.
I m using :REUSE_ALV_BLOCK_LIST_APPEND & REUSE_ALV_BLOCK_LIST_DISPLAY
Are there any issues with it as the same settings are working fine with REUSE_ALV_LIST_DISPLAY
source code:
DATA: layout TYPE slis_layout_alv,
IT_eventS TYPE slis_t_event,
fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
rec_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
TYPES: BEGIN OF ty_tab,
belnr TYPE dberchz-belnr,
belzart TYPE dberchz-belzart,
net TYPE dberchz-nettobtr,
END OF ty_tab.
DATA: lt_tab TYPE STANDARD TABLE OF ty_tab.
SELECT belnr belzart nettobtr
FROM dberchz
INTO TABLE lt_tab[]
WHERE belnr eq '000000000001'.
if sy-subrc ne 0.
ENDIF.
* defining layout
layout-colwidth_optimize = 'X'.
layout-def_status = 'X'.
*defning event
*event
*defining field catalog
fcat-col_pos = 1.
fcat-fieldname = 'BELNR'.
fcat-tabname = 'LT_TAB'.
APPEND fcat.
fcat-col_pos = 2.
fcat-fieldname = 'BELZART'.
fcat-tabname = 'LT_TAB'.
APPEND fcat.
fcat-col_pos = 3.
fcat-fieldname = 'NET'.
fcat-tabname = 'LT_TAB'.
fcat-do_sum = 'X'.
APPEND fcat.
*calling alv
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = 'YZ_PLR'
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* IT_EXCLUDING =
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = layout
it_fieldcat = fcat[]
i_tabname = 'LT_TAB'
it_events = IT_EVENTS[]
* IT_SORT =
* I_TEXT = ' '
tables
t_outtab = lt_tab[]
* EXCEPTIONS
* PROGRAM_ERROR = 1
* MAXIMUM_OF_APPENDS_REACHED = 2
* OTHERS = 3
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
Thanks,
GauravHi
No I don't think, this is my code (based on your code) and it works fine:
TYPE-POOLS SLIS.
DATA: BEGIN OF LT_TAB OCCURS 0,
BELNR LIKE BSEG-BELNR,
GJAHR LIKE BSEG-GJAHR,
WRBTR LIKE BSEG-WRBTR,
WAERS LIKE BKPF-WAERS,
END OF LT_TAB.
DATA: LAYOUT TYPE SLIS_LAYOUT_ALV,
IT_EVENTS TYPE SLIS_T_EVENT,
FCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
REC_FCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
START-OF-SELECTION.
FCAT-COL_POS = 1.
FCAT-FIELDNAME = 'BELNR'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-REF_FIELDNAME = 'BELNR'.
FCAT-REF_TABNAME = 'BSEG'.
APPEND FCAT.
FCAT-COL_POS = 2.
FCAT-FIELDNAME = 'GJAHR'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-REF_FIELDNAME = 'GJAHR'.
FCAT-REF_TABNAME = 'BSEG'.
APPEND FCAT.
FCAT-COL_POS = 3.
FCAT-FIELDNAME = 'WRBTR'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-CFIELDNAME = 'WAERS'.
FCAT-REF_FIELDNAME = 'WRBTR'.
FCAT-REF_TABNAME = 'BSEG'.
FCAT-DO_SUM = 'X'.
APPEND FCAT.
FCAT-COL_POS = 4.
FCAT-FIELDNAME = 'WAERS'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-REF_FIELDNAME = 'WAERS'.
FCAT-REF_TABNAME = 'BKPF'.
FCAT-DO_SUM = SPACE.
APPEND FCAT.
SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE LT_TAB
WHERE BUKRS = 'MAAB'
AND BELNR = '0000000001'.
LT_TAB-WAERS = 'EUR'.
MODIFY LT_TAB FROM LT_TAB TRANSPORTING WAERS WHERE WAERS = SPACE.
*CALLING ALV
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
I_CALLBACK_PROGRAM = 'ZPROVAMAX5'.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FCAT[]
I_TABNAME = 'LT_TAB'
IT_EVENTS = IT_EVENTS[]
TABLES
T_OUTTAB = LT_TAB[].
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
I've also inserted a currency field
Max -
Help with if statement in cursor and for loop to get output
I have the following cursor and and want to use if else statement to get the output. The cursor is working fine. What i need help with is how to use and if else statement to only get the folderrsn that have not been updated in the last 30 days. If you look at the talbe below my select statement is showing folderrs 291631 was updated only 4 days ago and folderrsn 322160 was also updated 4 days ago.
I do not want these two to appear in my result set. So i need to use if else so that my result only shows all folderrsn that havenot been updated in the last 30 days.
Here is my cursor:
/*Cursor for Email procedure. It is working Shows userid and the string
You need to update these folders*/
DECLARE
a_user varchar2(200) := null;
v_assigneduser varchar2(20);
v_folderrsn varchar2(200);
v_emailaddress varchar2(60);
v_subject varchar2(200);
Cursor c IS
SELECT assigneduser, vu.emailaddress, f.folderrsn, trunc(f.indate) AS "IN DATE",
MAX (trunc(fpa.attemptdate)) AS "LAST UPDATE",
trunc(sysdate) - MAX (trunc(fpa.attemptdate)) AS "DAYS PAST"
--MAX (TRUNC (fpa.attemptdate)) - TRUNC (f.indate) AS "NUMBER OF DAYS"
FROM folder f, folderprocess fp, validuser vu, folderprocessattempt fpa
WHERE f.foldertype = 'HJ'
AND f.statuscode NOT IN (20, 40)
AND f.folderrsn = fp.folderrsn
AND fp.processrsn = fpa.processrsn
AND vu.userid = fp.assigneduser
AND vu.statuscode = 1
GROUP BY assigneduser, vu.emailaddress, f.folderrsn, f.indate
ORDER BY fp.assigneduser;
BEGIN
FOR c1 IN c LOOP
IF (c1.assigneduser = v_assigneduser) THEN
dbms_output.put_line(' ' || c1.folderrsn);
else
dbms_output.put(c1.assigneduser ||': ' || 'Overdue Folders:You need to update these folders: Folderrsn: '||c1.folderrsn);
END IF;
a_user := c1.assigneduser;
v_assigneduser := c1.assigneduser;
v_folderrsn := c1.folderrsn;
v_emailaddress := c1.emailaddress;
v_subject := 'Subject: Project for';
END LOOP;
END;
The reason I have included the folowing table is that I want you to see the output from the select statement. that way you can help me do the if statement in the above cursor so that the result will look like this:
emailaddress
Subject: 'Project for ' || V_email || 'not updated in the last 30 days'
v_folderrsn
v_folderrsn
etc
[email protected]......
Subject: 'Project for: ' Jim...'not updated in the last 30 days'
284087
292709
[email protected].....
Subject: 'Project for: ' Kim...'not updated in the last 30 days'
185083
190121
190132
190133
190159
190237
284109
286647
294631
322922
[email protected]....
Subject: 'Project for: Joe...'not updated in the last 30 days'
183332
183336
[email protected]......
Subject: 'Project for: Sam...'not updated in the last 30 days'
183876
183877
183879
183880
183881
183882
183883
183884
183886
183887
183888
This table is to shwo you the select statement output. I want to eliminnate the two days that that are less than 30 days since the last update in the last column.
Assigneduser....Email.........Folderrsn...........indate.............maxattemptdate...days past since last update
JIM......... jim@ aol.com.... 284087............. 9/28/2006.......10/5/2006...........690
JIM......... jim@ aol.com.... 292709............. 3/20/2007.......3/28/2007............516
KIM......... kim@ aol.com.... 185083............. 8/31/2004.......2/9/2006............. 928
KIM...........kim@ aol.com.... 190121............. 2/9/2006.........2/9/2006.............928
KIM...........kim@ aol.com.... 190132............. 2/9/2006.........2/9/2006.............928
KIM...........kim@ aol.com.... 190133............. 2/9/2006.........2/9/2006.............928
KIM...........kim@ aol.com.... 190159............. 2/13/2006.......2/14/2006............923
KIM...........kim@ aol.com.... 190237............. 2/23/2006.......2/23/2006............914
KIM...........kim@ aol.com.... 284109............. 9/28/2006.......9/28/2006............697
KIM...........kim@ aol.com.... 286647............. 11/7/2006.......12/5/2006............629
KIM...........kim@ aol.com.... 294631............. 4/2/2007.........3/4/2008.............174
KIM...........kim@ aol.com.... 322922............. 7/29/2008.......7/29/2008............27
JOE...........joe@ aol.com.... 183332............. 1/28/2004.......4/23/2004............1585
JOE...........joe@ aol.com.... 183336............. 1/28/2004.......3/9/2004.............1630
SAM...........sam@ aol.com....183876.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183877.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183879.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183880.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183881.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183882.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183883.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183884.............3/5/2004.........3/8/2004............ 1631
SAM...........sam@ aol.com....183886.............3/5/2004.........3/8/2004............ 1631
SAM...........sam@ aol.com....183887.............3/5/2004.........3/8/2004............ 1631
SAM...........sam@ aol.com....183888.............3/5/2004.........3/8/2004............ 1631
PAT...........pat@ aol.com.....291630.............2/23/2007.......7/8/2008............ 48
PAT...........pat@ aol.com.....313990.............2/27/2008.......7/28/2008............28
NED...........ned@ aol.com.....190681.............4/4/2006........8/10/2006............746
NED...........ned@ aol.com......95467.............6/14/2006.......11/6/2006............658
NED...........ned@ aol.com......286688.............11/8/2006.......10/3/2007............327
NED...........ned@ aol.com.....291631.............2/23/2007.......8/21/2008............4
NED...........ned@ aol.com.....292111.............3/7/2007.........2/26/2008............181
NED...........ned@ aol.com.....292410.............3/15/2007.......7/22/2008............34
NED...........ned@ aol.com.....299410.............6/27/2007.......2/27/2008............180
NED...........ned@ aol.com.....303790.............9/19/2007.......9/19/2007............341
NED...........ned@ aol.com.....304268.............9/24/2007.......3/3/2008............ 175
NED...........ned@ aol.com.....308228.............12/6/2007.......12/6/2007............263
NED...........ned@ aol.com.....316689.............3/19/2008.......3/19/2008............159
NED...........ned@ aol.com.....316789.............3/20/2008.......3/20/2008............158
NED...........ned@ aol.com.....317528.............3/25/2008.......3/25/2008............153
NED...........ned@ aol.com.....321476.............6/4/2008.........6/17/2008............69
NED...........ned@ aol.com.....322160.............7/3/2008.........8/21/2008............4
MOE...........moe@ aol.com.....184169.............4/5/2004.......12/5/2006............629
[email protected]/27/2004.......3/8/2004............1631
How do I incorporate a if else statement in the above cursor so the two days less than 30 days since last update are not returned. I do not want to send email if the project have been updated within the last 30 days.
Edited by: user4653174 on Aug 25, 2008 2:40 PManalytical functions: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions2a.htm#81409
CASE
http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/02_funds.htm#36899
http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/04_struc.htm#5997
Incorporating either of these into your query should assist you in returning the desired results. -
Comas(,) are not getting displayed in the output while using OO ABAP
Hi All,
I am using ABAP objects to display the ALV report in which there is a requirement to output Quantity fields. The Quantity fields are getting displayed without comas ','. Please help me in getting back the comas in the output.
Eg:
Below logic is used in my program.
Class name: cl_salv_form_layout_grid
Code:
obj_footer->create_text(
row = v_row_cnt
column = v_col_cnt
text = Quantity).
Expected output:
39,545.000
Current Output:
39545.000
Thanks in advance for your help.
Thanks & Regards,
Siva.Hi,
Please check if the images are in the server and in the /images alias path.
thanks,
Sharmila
Maybe you are looking for
-
I can't download apps to my iPad via Internet sharing (Lion) anymore
I always use my Macbook Pro with Snow Leopard to share my Internet connection with my iPad 2. However, since I upgraded to Lion, my iPad 2 can't seem to download apps thru Internet Sharing anymore. If I use our office WiFi, the App download works fin
-
Is this program good for first timers or college students?
Is this program good for first timers or college students?
-
i'm trying to append some string to a file but it gives me error while compiling. here's my code: import java.io.FileOutputStream; import java.io.File; import java.io.IOException; import java.util.Calendar; import java.util.Date; import java.awt.*; i
-
Components missing how to reinstall
tryed to open a file i save with ext jpg tried to open it and message said had to reinstall ap directory
-
After upgrading Exchange Server 2007 to SP3 with update rollup 13, OWA not working
Hi, We have just installed Service Pack 3 and update rollup 13 on our Exchange Server 2007, but unfortunately our OWA has gone inaccessible. PROBLEM- The following error comes up when we try to access OWA : Exception Exception type: Microsoft.Exchang