How to control two different processes with one DAQ output board

Hi! I posted this in the Signal Generators forum, but I'm reposting here in case someone on this board has suggestions for a way to get around my problem programmatically (ie. within LabVIEW). Thank you for any help you can provide.
Patrick
I have a PXI-6722 8-channel, 13-bit analog output board, and with this I want to independently control both the temperature (thermometer excitation/heater control) and magnetic field in my experiment. Unfortunately, it appears that I cannot do both simultaneously, which is totally unacceptable for my application.
Currently I'm using separate VI's for field and temperature control. This is the start of the problem, because in DAQmx you can't have 2 output tasks on the same card at the same time. In order to remedy this situation, I used MAX to create a global task containing all 8 13-bit analog outputs. However, it now appears that each time I do a write operation on this task (from whichever VI) I must write to all of the task channels, rather than just the channels I want to change. This would be fine for the temperature controls as they are of the type "set an output voltage value and hold it until told differently," so I could re-write the currently held values for channels that are not being changed. Magnetic field control will not work in this way, because we need to do very smooth field sweeps which require an analog waveform to be sent and sampled at a high rate (so that the steps are as small as possible). So if, for example, a thermometer's excitation voltage or a heater's power need to be changed during a field sweep (as is often necessary to maintain a constant temperature, via PID), then the sweep will be disrupted, potentially causing a dangerous magnet quench.
Does anyone have any ideas on how I could make this work? It seems very wasteful to buy a second output board when I still have lots of free channels on the first.
Thanks,
Patrick

I'd probably create a third process that just updates all output values on the card whenever necessary.
One way is to send messages via queues from the temperature and magnetic field control routines to the third process. The third process doesn't do anything unless it gets a message from one of the two other processes. The message should contain the channel task ID to change along with the new value. Use the LabVIEW queue VI's, using a type definition to specify the message type either when you create the queue or use the variant VI's. Once it gets a message, it updates the changed channels, not modifying the others (use a shift register to store an array with the current set of output values).
Hope this helps.
Jason

Similar Messages

  • How to implement two different websites with one section that has the same content?

    I have two sister websites, each for a separate but related department in a hospital. On each of these websites, I have a main tab called library, which has about 30 pages within it for related healthcare issues. The library is the exact same content on each site, but the main navigation and header for the site is obviously different. I have been upkeeping this identical content on both sites (if something is changed, then I have to do it twice). This isn't efficient and I would like to find a way to combine them somehow. I don't have a ton of experience but I catch on pretty quickly and I basically need ideas for the best way to handle this. I have considered creating a third site, and the library tab on each of the other sites would take you to this new site. I have also wondered if there is a way to embed duplicate content into two separate pages (maybe with an iframe). That way I would update the original file and it would be updated on both sites.
    The sites also have different body sizes. One is 960 pixels wide and the other is 690 because it has a sidebar that makes it smaller. How would you all recommend I handle this? I use Dreamweaver CS6 and my pages are all HTML

    I looked into Server Side Includes and I think I would like to try it, but I can't seem to get it working. The problem is both of my sites are under a separate domain but hosted the same way I believe. For instance, I have two dreamweaver sites, but when I use my FTP, I have one large folder for the main site, then the sister site is in a folder within the main site folder. Although you can get to the main site using www.ukneurology.com, you can also get to the site using kyneurosurgery.com/neurology/index.html. I think this is what is messing me up because I can't seem to get it to work right.

  • How to sort two different hierarchies in one dimension

    Does anyone know of a way to sort two different hierarchies in one dimension and still make drilling work correctly? We have two hierarchies in our item dimension; one called category and the other origin. Simplified, it looks like this:
    CATEGORY
    Hardware (100)
    ..PCs (100.100)
    ....PC 1
    ....PC 2
    ....PC 3
    ..Monitors (100.200)
    ....Monitor 1
    ....Monitor 2
    ....Monitor 3
    Software (200)
    ..Big (200.100)
    ....ERP package
    ....CRM package
    ..Small (200.200)
    ....Solitaire
    ....Mine Sweeper
    ORIGIN
    Vendor A (10)
    ..Site A1 (10.10)
    ....ERP package
    ..Site A2 (10.20)
    ....PC 1
    ....Monitor 3
    Vendor B (20)
    ..Site B1 (20.10)
    ....PC 2
    ....PC 3
    ....Monitor 1
    ....Monitor 2
    ....Solitaire
    ....Mine Sweeper
    ..Site B2 (20.20)
    ....CRM package
    We have numeric codes at each level above item which I represents the sort order (the number in parentheses at each level), and the items themselves should be sorted according to item number. I have implemented this (level code/item number) as an attribute in AWM making this the default sort order. However, as item is the lowest level in each hierarchy, I have only been able to list the items under the correct level in one hierarchy. As soon as I drill using the other hierarchy, the levels above item are sorted correctly, but the items appear at very odd places...
    The AWM documentation states that if default order is not selected on any attribute, hierarchies are sorted in the order they are created. Is there a way to control this order?
    Any input will be greatly appreciated!

    Hi,
    thank you for your answer. Yes, now I also find the class CL_SALV_WD_MULTI_CELL_EDITOR which could be used to set different UIE in one cell. But it is quite limited, just the following UIE could be used
    - LinkToAction 
    - LinkToURL    
    - FileDownload 
    - Button       
    - ToggleButton 
    best regards,
    Wenwen

  • How to display two different parts of one image in two windows?

    hi everyone:) i need to display two different parts of one image in two windows. i have problem with displaying :/ because after creating windows there aren't any images :( i supose my initialization code of creating windows is incomplete, maybe i miss something or maybe there is some inconistency. graphics in java is not my strong position. complete code is below. can anybody help me?
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    import java.util.*;
    class ImgFrame extends JFrame
           private BufferedImage img;
           ImgFrame(BufferedImage B_Img, int x, int y, int w, int h)
                   super("d");
                   img=new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);
                   img=B_Img.getSubimage(x, y, w, h);
           }//end ImgFrame construction
           public void paint(Graphics g)
                   Graphics2D g2D = (Graphics2D)g;
                   g.drawImage(img, 8, 8, null);
           }//end paint method
           public Dimension getPrefferedSize()
                   if(img==null)
                           return(new Dimension(100,100));
                   else
                           return(new Dimension(img.getWidth(null),img.getHeight(null)));
           }//end of GetPrefferedSize method
    }//end ImgFrame class
    public class TestGraph2D_03 extends Component
           static BufferedImage IMG;
           public static void Load()
                   try
                           IMG=ImageIO.read(new File("c:/test.bmp"));
                   catch(IOException ioe)
                           System.out.println("an exception: "+ioe);
                   }//end try catch
           }//end TestGraph2D_03 construction
           public static void main(String[] args)
                   Load();
                   ImgFrame F1 = new ImgFrame(IMG, 0, 0, 8, 8);
                   ImgFrame F2 = new ImgFrame(IMG, 8, 8, 8, 8);
                   F1.addWindowListener(new WindowAdapter()
                           public void windowClosing(WindowEvent e)
                                   System.exit(0);
                   F1.pack();
                   F1.setVisible(true);
                   F2.addWindowListener(new WindowAdapter()
                           public void windowClosing(WindowEvent e)
                                   System.exit(0);
                   F2.pack();
                   F2.setVisible(true);
           }//end of main method in TestGraph2D_01 class
    }//end of TestGraph2D_03 class

    Never override the paint(...) method of a Swing component.
    If you have a sub image then add the image to a JLabel and add the label to the GUI. No need for custom painting.

  • How can I combine post to two different tables with one form?

    I am trying to create a "phantom" record in a table to be used later in a report. How can I create a form and properly $_POST to two different tables? Thanks for any suggestions!

    In POST processing, just do the insert to one table, followed by the insert to the second table. I don't understand where you are getting stuck.
    Sometimes when we do an insert, we need the auto-generated ID from the newly created record as a "foreign key" for the record created in the second insert. MySQL has a nifty solution for that. The specific code depends on whether you are using the mysql, mysqli or PDO database connection.

  • How to overload two different procedure with just one name in to package

    i have created two procedure avg1 and avg2.avg1 calculate average of total salary based on e_id and avg2 calculate average based on j_id.now i want to create a package with specification and body where i want to use just one name -avg- for two different procedure.

    You can overload the same name for procedure as long as their formal parameters differ in number, order, or datatype family.
    Read more about overloading in documentation

  • How to use two seperate iPods with one iTunes. Different Music Preferences

    My Wife and I both have 80 Gig iPods. We like different Music. How can we both use the same Windows XP computer and have different music lists?

    See: How to use multiple iPods with one computer
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Discussions page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums, in the User Tips Library and in the Apple Knowledge Base before you post a question.
    Regards.

  • How do i synce two different ipods with one computer??

    i recently purchased an ipod 5th generation for my other half which i have set up an account for and comes up when i plug in but the home page always comes up with my ipod stuff which is a 4th generation ipod. i have no problem with mine as it stores songs etc but when i plug the other one in it deletes whats on there and i have to manually tick all the songs again to sync back on to it. is this normal?? i am using a windows xp and have no issues with the computer and my ipod just the other one. i also have updated itunes to itunes 9 so the 5th generation ipod can download stuff. it seems to store songs and then when i go to download or update it takes them off and am back to square one!!!! please help!!

    Is the following document of any help with that?
    [How to use multiple iPods with one computer|http://support.apple.com/kb/HT1495]

  • How to synch two different devices with two different Apple ID's without merging them?

    I have an iPhone 5 and iPad linked to my Apple id. My son just got his first iPod touch with his own Apple id. We use the same PC to backup and synch our devices.
    The problem I have is since he got his iPod touch, all his downloads get installed on my devices, and we don't want that. Can someone help me by explaining to me how we can use the same iTunes and the same computer to backup and synch our devices, without having his apps install on my devices?
    Thanks in advance!
    Pablo

    How to use multiple iPhone, iPad, or iPod devices with one computer

  • How to set two different UIE in one cell in ALV table

    Hi all,
    I have a hierachy ALV table. For some reason I want to have two UI elements in one column. For example, the text and a menu next to the text. Is it possiable to do that?
    best regards,
    Wenwen

    Hi,
    thank you for your answer. Yes, now I also find the class CL_SALV_WD_MULTI_CELL_EDITOR which could be used to set different UIE in one cell. But it is quite limited, just the following UIE could be used
    - LinkToAction 
    - LinkToURL    
    - FileDownload 
    - Button       
    - ToggleButton 
    best regards,
    Wenwen

  • How to manage two different sites with two different domains

    i made two separate websites in iweb and i accidently loaded the second website to the old one and now every time I try to publish my site or try to visit with one click it brings me to a default page can you please help to understand what i did wrong

    Use the .Mac URL to visit each site.....
    http://web.mac.com/username/WebsiteName/PageName.html

  • How to map two different subnets to one SSID

      Hi Experts ,
    we have two offices in same city at different location however we are planning to bring both the office at same location.
    Now lets say site A has controller 5508 configured with 24 AP's with 10.10.10.x subnet for internal SSID and Site B which is shifting to Site A campus has different subnet ( 10.10.20.x )  for same SSID.
    Site B has no controller since they had connection with H-reap and they were using different subnet for internal SSID ( 10.10.20.x ) .....
    Now i need to add their AP's in Site A controller which will be extended wireless LAN however we would like to keep same subnet ( 10.10.20.x )  what Site B has for wireless clients which is really confusing me ....
    I have already client subnet for site A with 10.10.10.x /24 subnet  and nearly 200 users are already using this wireless client subnet....
    How do i add their ( Site B ) subnet / 10.10.20.x  with same SSID configured  which is globally only one SSID  ?
    limitations :
    I can not create new SSID for site B since same will be broadcasting even in Site A AP's
    Is this possible to map one more subnet of site B to existing SSID with already different subnet ( 10.10.10.x ) ?
    Your suggestions will be really helpful for me to go ahead and understand in better manner ...

    Well first off, you need to bring that subnet over to site a without breaking any routing. Once you do that then sites B subnet will have a different vlan than site A of course. Now with both subnets working in site A, you create a dynamic interface on the WLC for that new subnet. Create an AP group for both sites, you can name it by vlan or by any name you want. Now in the ap group for site A, you define what SSID's you want and map the vlan to that ap groups. Then add sites A AP's to that group. You do this also for site B's AP's and map the SSID to the new subnet you brought over and move the AP's to that group. The APs from site B would have to be setup in local mode not hreap.
    Makes sense
    Sent from Cisco Technical Support iPhone App

  • SSIS - Insert into two different databases, with one Connection Manager

    I need to use one Connection Manager for a flat file, and one Connection Manager to SQL, to do the following.
    Read from flat file to database X
    Select from database X and Insert to database Y
    Both databases are on the same instance/server.
    I see that the OLE DB Destination Editor has a SQL Command option, although I can't find instructions on how to use it for an insert.
    Or is there anyway to accomplish what I need??
    Thanks!
    -Al H

    If X and Y are on different servers, you can possibly use a single OLEDB connection if the servers are already linked, as in Linked Servers. Then you can use an Execute SQL Task for an INSERT...SELECT using four-part naming convention i.e. [Server].[Database].[Schema].[Object]
    If both X and Y are on the same server then you can use a single connection and use three-part naming convention i.e. [Database].[Schema].[Object] in your INSERT statement.
    Otherwise you can plan to have three connections -
    Flat File connection for the text file
    OLEDB connection for database X
    OLEDB connection for database Y
    1 and two to load the text file to X. Then 2 and 3 to move data from X to Y.
    - Aalamjeet Rangi | (Blog)

  • How to sync two iphone agendas with one mac ?

    Dear all,
    This is my first question here, and I looked it up, but so far I didn't find a satisfactory answer
    I own a MacBook Pro and iPhone, that I keep for private stuff.
    Recently my employer provided me with a new iPhone for work. Both therefore have different Apple ID's
    I would like to sync both calendars to my MacBooks calendar, and possibly private iPhone, so I don't have to keep my work iPhone with me all the time.
    How to proceed ?
    Thanks

    Absolutely, connect each phone, select what content you want on each phone, then hit the sync button. iTunes will keep everything straight, by device, upon subsequent syncs, including separate backups.

  • How to show two different plots with current system time and date on waveform chart

    I am using  one waveform chart to display the more than one value continiously. The data  are comming properly but i am not getting my system (pc) time and date on x axis. It is showing default date and time (i.e.01/01/1904 5:30:45). Please  give me suggestions to display the real time and date on x axis of waveform chart. 

    How does your data look like? Do you graph waveform data types, dynamic data, or plain arrays/clustes? In the case of plain arrays, you need to set x0 to the absolute start time of your data, e.g. with a property node.
    I you would attach your code (or an image) we could offer more specific advice. There are too many possibilities.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Error while creating a planning connection in FR

    Hi John, I was creating a database connection to Planning from FR studio and encountered the following error Error connecting to database connection TestPln: Error: Error getting CSS support information for driver [com.hyperion.ap.hsp.HspAdmDriver] M

  • Always seen as available

    I have the problem with Skype on Windows 7, 64*. To my friends am seen as available  even when I'm not connected to internet or when I'm signed out of Skype. It's really anoying to me and to others, because they never really know when I'm actually "o

  • K330 Recovery system - how does it work?

    Hi, I'm about to buy K330 with i5 processor, but before I do, I'd like to know something about Lenovo Recovery System. So did I got this right: When you work on computer, and want to save everything you've done, you press one button on top of the com

  • Safari open link in new tab problem

    Safari opens links in same tab when it should open each link in a new tab. In preferences, tabs, Open pages in tabs instead of windows: if I select, Always When I browse, click on a link, the link opens in the page I am viewing and also a new tab. If

  • I have forgotten my password to unlock my ipod is there anyway to by pass this

    How can I get my ipod unlocked?