Digital i/o with clock sensor line sharing

Hello

I'm trying to contact several sensors relative humidity using LV 8.6 and a USB-6009. The sensors are Sensirion SHT71. They communicate with 2 lines, a bidirectional data line and a line of the SCK. With the code sent on this forum

http://forums.NI.com/NI/board/message?board.ID=170&requireLogin=false&thread.ID=179022

I can easily communicate with 1 probe.

What I would do, is to extend this to read simultaneously from several sensors. I wish that the readings to be as close in time as possible. I'll use sensors as much as I have available data pins.

I wonder if anyone thinks that it would work to share a single clock between several sensors line and just use a single row of data for each.  In this way, a single port 8 lines could read 7 sensors simultaneously.

I tried to do it with 2 sensors using a change very klugy of the code that worked for a single probe... in this case, I simply added 2 read and write routines to a single port. It doesn't seem to work, but I guess I should probably go through and re - write this using several lines per channel.

I have a feeling that this could be an idea doomed, however, so I would really appreciate if someone can tell me if they think it will be or will not work until I spend the better part of a day to re - write the code. I posted the code only probe that works.

Thank you!

Mike

It solved! Turns out that the simple routine for single point of digital output must manage somehow tristate configuration. The polymorphic, we do not.  So, rather than to read the actual value at the PIN, the DAQmx read 1 sample of channel 1 bool 1 D has been simply by reading the last value passed.

The trick is to set the tristate true property before trying to read the pin code and then set it to false after completing a reading...

Thanks to MarkGrot and this thread to help me to understand.

http://forums.NI.com/NI/board/message?board.ID=250&message.ID=46293&query.ID=323548#M46293

Tags: NI Software

Similar Questions

  • I'm trying to create a PDF file with several signature lines in that anyone can "Sign" by using their digital signature CAC (Common Access Card) active. The goal is to have a single document that people can open, sign on a designated line and save the doc

    I'm trying to create a PDF file with several signature lines in that anyone can "Sign" by using their digital signature CAC (Common Access Card) active. The goal is to have a single document that people can open, sign on a designated line and save the document (replacing the existing document) and close. Then another person can open the same document digitally sign another area of the form, save it, and close it. So on, and so on. Is there a way to do this? At the end of the day, I would end up with a PDF file with literally hundreds of signatures to enable different ACC everywhere...

    I don't understand what the problem is. In the post of the davidr96549424 on May 8, 2015 07:58 you presented a structure of a correct document. Is the issue of the creation of this structure in a PDF file? For this, you will need an Acrobat, not reader.

    XI in Acrobat, select Tools-> forms-Edit. Click 'No' on the form fields 'detect '. In the tasks Panel that opens, click on "add new field". Select "Digital Signature" and move it to the location in the document where you want to than the appearance of the signature to be. Repeat that for signature fields as you want. Users will sign by clicking on the prepared unsigned signature field which shows the dialog box "sign. Do not forget that as TSN has noted that a digital signature applies to the entire document. The entry in the document where it is is irrelevant. Each next signature covers all previous signatures.

    Your users can also sign a document from anywhere that they want without signature fields already prepared. For this select fill & sign-> work with certificates and the type of signing you want to sign up with. A dialog box that will tell you a rectangle for the appearance of signature rises and after you draw the rectangle of the dialog 'Sign' rises.

    PDF/Acrobat doesn't have a limit on a number of signatures in a PDF document. But! Don't forget that when you open a PDF file with Acrobat/Reader signatures valid all of them and takes time (several seconds - until 10 - for every signature), so if you have several signatures of dozens of their validation open can take a long time.

    I don't know how build you your workflow so that each person signs the same PDF and saves it. Economy runs on the same computer where the PDF is stored. You'll have to decide how to allow different people to have access to the same PDF. They, of course, you may sign this only one-at-a-time PDF.

  • My MBP boot with two horizontal lines at the start

    Hello

    I have a Macbook Pro (15 "mid 2015).

    2.5 GHz Intel Core i7

    OS X El Capitan

    (1) my MBP boot with two horizontal lines on a black screen after the apple logo.

    (2) sometimes the screen suddenly became all glitch on the dry mouse 5-7 (2 - 3 times a day) the cursor moves and CPU rises from 4% to 13%

    What I did, reset the SMC, check mac by TechTool 8 - is shows OK.

    Please help, what happens? Someone at - it experience of something similar?

    Thanks for any help,

    Ivan

    Try a reset of the NVRAM:

    https://support.Apple.com/en-us/HT204063

    Ciao.

  • A white circle with a diagonal line appears when I turn on my Mac book air

    A white circle with a diagonal line appears when I try to start.

    If that's what you see, follow the instructions from Apple:

    Ciao.

  • Re: Portege Z30: Fingerprint software does not, the connection with the sensor fails

    Hello to you all,.

    I have a great fun for you guys. If you're curious, it's here...

    I just bougt garage a portege Toshiba Portege Z30t-A-126 PT24CE-01400HFR
    Nice machine but SSD is too small, so I changed the original SSD 256 to a 512.

    Reinstalled Win7 completely without any pb.

    Just a pb in fact: the footprint software does not work.
    When I hliant, it fails and says "unable to connect with the sensor.

    In french "fingerprint recognition."
    Unable connect the sensor.

    But when I check the Device Manager computor it says that everything is in place and ongoing execution, validity (WBF) (PID = 0010) sensors works very well and the latest version of the driver is installed.
    (I downloaded the form driver toshiba Web site.) The name of the driver is fp - sw - 20140115084521.zip)

    Then? What's not?

    I spent hours searching the web and tried everything I could. Reinstalled a thousand times the drivers, software, tried other drivers... But there is no way that I can fix it.
    It's really annoying...

    Can someone help me please? Have you an idea? I'm stuck...

    Thanks in advance. :-)

    Hello

    This issue of the fingerprint has been described in another thread.
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=81261

    You should be able to solve the problem installing the chipset driver.
    Another user said, an installation of Proset Ethernet drivers/software was necessary to get the problem resolved. But to be honest that I put t think that missing Proset utility would cause the question

    However, check it out.

    Your comments would be appreciated

  • Satellite A105-S361: screen becomes dark gray with gray fine lines

    I have a new laptop Satellite A105-S361 and seem to have display problems. My screen turns dark gray (with fine gray lines) while I use my laptop. This normally happens after using my laptop for 5 minutes or up to 30 minutes. When I restart my computer, I get the Toshiba start screen, and then it works very well for another five minutes before aging again.
    I tried to connect to an external monitor and it works fine.

    I also installed a new BIOS, but I still have the same problem.

    Any suggestions?

    Hi, Ahmed.

    It sounds like a problem with your inverter FL. This is the device that provides lighting for your LCD screen. The fact that you can use an external monitor shows that there is not a problem with your graphics card.

    Fortunateky the FL inverter is not an expensive component and is quite easy to change then I suggest that you only contact your closest partner of Serviec allowed to check your laptop.

    Kind regards

  • CN460A: ADF print copy with a thin line from top to bottom?

    ADF print copy with a thin line from top to bottom of page.  fine prints from the PC to the printer...

    This was probably caused by a specification on the thin glass used for scanning form the ADF.  See here for more information on cleaning this area to solve printing line when using the ADF.

  • Cannot replace the PXI embedded clock with clock oscillator PXI-6682 on PXI back plane

    I installed a module of synchronization PXI-6682 to slot 2 of a PXI-1031chassis with a PXI-8110 controller running hypervisor and RT.  The 6682 is installed on the RT system hypervisor for GPS sync during the measurements, but I would like to ask the TCXO on the PXI-1031 chassis backplane (which replaces the PXI embedded clock).  When I try to run the "Clock.vi route" that I found in the finder of the example, all I get are error messages indicating that a parameter for this operation is not valid.  The Terminal source is "Oscillator" and terminal of destination is "PXI-Clk10_In"  How can I determine which parameter is not valid?  Any suggestions?  Thank you

    Hi vugt.

    You are right that the physical switch determines which one to use and you should not have to route signals.  If you are having problems with clocks after the synchronization module 6682 please let us know!

  • Aeromy computer has keywords with a double line under them, how can I get rid of them

    my computer has keywords with a double line under them, how can I get rid of them

    Hi Pete McDowell,.

    Glad to know that the problem is solved. Let us know if face you any problems with Windows in the future.

  • Call a visual basic executable file with arguments command line using LABView

    Hi all

    I try to call a visual basic executable file with a command line using LABView 2014 argument. What I'm trying to accomplish executes an executable file that communicates with a device via a COM port. So, I would open the .exe with a command line argument to communicate via com 3 using the SYSTEM Exec VI. It seems that the command prompt window flashes and closes and then nothing happens. Not a lot of discussions about this on the forum. Any help would be greatly appreciated. Thank you.

    With some programs, instead of passing in the string:

    Somefile.exe

    Instead, you can use:

    cmd /c "C:\Full Path\to the EXE\Somefile.exe"

    Can you tell us what exactly you are trying to run?

  • I have a black border to the left with a white line and viewing area office is shifted to the right?

    I tried everything I know to get the full screen. But still have a black area on the left with a white line in the middle and I can't read the whole screen? just as now the typing I get to the right goes beyond design. I need to move the screen to the left one having full screen again. Help

    I tried everything I know to get the full screen. But still have a black area on the left with a white line in the middle and I can't read the whole screen? just as now the typing I get to the right goes beyond design. I need to move the screen to the left one having full screen again. Help

    ==================================================
    Your monitor has any manual controls for the centering of the screen?
    There may be buttons or buttons just below the exposure correction.

    Depending on your video driver... you may have a control panel that
    allows you to adjust the display settings. For example... NVIDIA has this
    option... just go to... Control Panel and see if you have the Nvidia control
    The Group of experts.

  • When I click on Outlook Express I get a blank page with (work in line/connection in the lower right corner. Nothing happens.

    How to get my Outlook Express to work

    When I click on Outlook Express I get a blank page with (work in line/connection in the lower right corner. Nothing happens.

    Folders.dbx is probably damaged.
     
    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.
     
    The path to the message will be very similar to this:
     
    C:\Documents and Settings\Your User of utilisateur\Local Settings\Application Data\Identities\ {long string of letters & numbers} \Microsoft\Outlook Express
     
    With OE closed, find the Folders.dbx file and delete it.  Another will be created automatically when you open OE.
     
    Note these possible side effects:
     
    When you re - start OE, it will build a new index of all *.dbx files it can read and create a new Folders.dbx. However, understand that you will lose the mail directory structure and message rules will probably have to be edited.
  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

  • After that start monitor/screen becomes black with visible vertical lines

    After that start monitor/screen becomes black with visible vertical lines. Move the mouse shows an activity going on behind the disorder. My son says video card?

    Hi Melissa,

    ·         Since when are you facing this problem?

    ·         Have you checked the issue by connecting a different monitor?

    Step 1: It seems to be a hardware issue to me. Check if the cables are well connected.

    Step 2: Connect another monitor to the computer and see if the problem persists.

  • my printer is copying with a black line in the middle of the page

    My printer has just started the copy with a black line in the middle of the page.  Any ideas what the problem is and how to fix it?

    I have a Photosmart C7280 all-in-one printer.  Thank you!

    This document should help:

    Scan quality

Maybe you are looking for