Writing in sensor calibration data to my virtual channels in MAX using Labview.

System consists of a few pxi6713 cards, a 6527 digital input card and some scxi cards (1520, 1104c, 1125).
Every 3months or so we run a calibration on the testing stand which uses these cards, and the sensor ranges and physical ranges listed in MAX has to be manually entered each time.
I am looking for a way to do this automatically.  This may be a problem, but we are using NI-DAQ legacy (perhaps if absolutely necessary we could goto daqmx).
I have figured out howto read virtual channel information from max correctly, but I have no understanding of trying to write calibration information to the virtual channels.
Any help is greatly appreciated!
Thank you!
jacob

Hi mak90,
There are no ways to change the sensor range and physical ranges
programmatically in Traditional DAQ. Under DAQmx, you have Scaling VIs,
Calibration VIs, Task VIs that allow you to change various settings in
MAX programmatically.
Please let us know if you have any further questions.
Best regards,
Nathan Yang
Applications Engineer
National Instruments

Similar Messages

  • How to make a virtual channel in MAX using DAQmx ?

    I want to measure the CJC temperature on the TBX 1328 ( attached to SCXI 1121). I want to create a virtual channel in MAX using DAQmx. I have right clicked on DAQmx but there is no option for virtual channel. Ther is the option of 'Traditional virtual channel' which i dont want.
    I used the VI to make the virtual channel but i want to knowhow to doit inMAX.
    thanks

    Here are 2 ways that you can create a DAQmx channel that appears in MAX.
    1) In MAX, right click on "Data Neighborhood" and select "Create New...". Then click "NI-DAQmx Global Channel" (or "NI-DAQmx Task" -- a task contains the channel(s) and triggering/timing information) and click "Next". This launches the DAQ Assistant that will guide you in creating the channel or task.
    2) In LV, place a NI-DAQmx Global Channel control on your panel or constant on your diagram. Right click on the control/constant and select "New Channel(DAQ Assistant)..." (Note: You can do the same from the NI-DAQmx Task control/constant to create a NI-DAQmx Task.)
    Deborah

  • Why does labview forget the connections to the virtual channels in MAX?

    I create a bunch of virtual channels in MAX - some with double assignment to a single AI port.
    Context - a digital output controls a MUX to switch the inputs into the AI ports of my USB-6361(BNC) DAQmx; thereby allowing me to double up on the number of AI ports I can access (switching every 5ms).
    I can run the code without any troubles. I have now completed my hardware set up and and am now testing the integration with the code. This is where things become a little unstuck.
    Problem: some ports, over time, start displaying erroneous data that is not correct. It is not until I delete the virtual channel and re-create it in MAX, does everything settle and work. This 'bad' data is seen in the MAX test panels tab and virtual channels tab.
    What is going on - should I bite the bullet and program all port assignments (channels) within my code?
    Am i mistakenly killing a link between MAX and the DAQmx?

    natashw already told you that it's expected behaviour when you leave the analog input open. There are two aspects to this:
    1) The analog input amplifier is a high impedance operation amplifier. It's minimal stray capacitance is high enough that it gets charged through very small leakage currents in the amplifier input stage, but the high input impedance doesn't allow those capacitance to discharge quick enough to stay at a defined voltage. So your input is usually very slowly floating to one of the power supply rails depending what transistor side has a slightly higher leakage.
    2) You only have one analog to digital converter. To get multiple channels there is a multiplexer than connects the different input channels to this single ADC. When the multiplexer switches between from a connected signal to an unconnected signal those stray capacitance at the ADC amplifier input has been charged to a certain voltage from the connected channel. With only the internal impedance of the amplifier to discharge this capacitance after the multiplexer switched to an unconnected input, the ADC will simply see the voltage that the stray capacitance has been charged to.
    Having a low impedance amplifier input would solve that problem but create many more problems that would affect the measurement accuracy significantly.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I want to write data into eeprom(93LC86) in parallel port using labview?

    I want to write data into eeprom(93LC86) in parallel port using labview? Also I want to read data from EEprom.

    Hi Mr. Mz,
    after having a look to 93LC86-Datasheet I do not see a problem. The self-timing programming cycle of this Chip avoids timing problems; the rest is only logical stuff.
    If you need more general info, how to use the parallel port, I recommend: http://[email protected]/ or
    in case you need an example of SPI-Interface in LabVIEW with paraport - then write to: [email protected]
    You are welcome
    regards
    wha

  • Problems adding virtual channels in Max

    Has anybody had any problems adding new virtual channels to an existing DAQ OPC configuration? We have a working configuration using 99 tags and adding a further tag to bring the total to 100 causes an OPC server failure. Any help or clues would be appreciated.

    Hi mak90,
    There are no ways to change the sensor range and physical ranges
    programmatically in Traditional DAQ. Under DAQmx, you have Scaling VIs,
    Calibration VIs, Task VIs that allow you to change various settings in
    MAX programmatically.
    Please let us know if you have any further questions.
    Best regards,
    Nathan Yang
    Applications Engineer
    National Instruments

  • Duplicating a CTR Global Virtual Channel in MAX does not update the CO.Pulse.Term setting

    Hi, 
    Here is the issue description:
    MAX version: 4.6.2f1
    daqmx:  9.0.2
    Hardware: cDAQ-9178 , NI-9474 Digital output.
    For this module one has:
    crt 0 out  <--> PFI3 
    ctr 1 out  <--> PFI7
    crt 2 out  <--> PFI1
    ctr 3 out  <--> PFI5
    1. In MAX create a Global Virtual Channel as a CTR output on ctr0.
    2. use the Duplicate in the menu to create a second counter output. Change its name, and change it ctr output to ctr 1 OUT.
    3. In MAX, the Pulse Output Setup pane should reflect the change by showing the ouput terminal pointing to the proper PFIi
    4. Export the settings to an INI file, and look at the CO.Pulse.Term settings for both CTR channels: they will both appear with the SAME PFIi !
    5. Using LabVIEW Write a vi that generate pulses on these 2 channels , you will get Error -89137 saying a PFIi resource is already used. If you look at the Task property CO.Pulse.Terminal, it returns the same for both tas, which is the same error seen in the ini file.
    Can someone at NI check this? Thx.
    Laurent
    PS: I posted this message in the LabVIEW board as I did not find one for MAX
    Solved!
    Go to Solution.

    Hi Laurent,
    I verified this behavior with DAQmx 9.1 and a simulated device.  I will file this as a Corrective Action Request (CAR). Creating the channels manually works correctly and produces the correct .ini file.  Sorry for any inconvenience this may cause.
    Regards,
    h_baker
    National Instruments
    Applications Engineer
    Digital Multimeter Resources

  • How to read data which is written in little endian using labview

    dear all
    My program in c++ creats a binary file with data as
    struct varaiable
    int a;
    double b;
    doublec;
    float d[30];
    floate[50];
    char time_date[30];
    30 such data type is stored in one .b file.
    when i am reading the file back using labview the data is not the same as stored.
    i think that my c++ program stores data in little endian format while labview is retrieving it in  big endian format.
    i Checked and found that when i am storing a=2 then while retrieving back in lab i displays it as HEX of 02 00 00 00.
    Same is the problem with double and float.so can somebody tell me how i can change labview to read in little endian format.
    I am using labview7.1 
    Abhimaniu

    Yes you are correct. Labview and C uses different endian format. Do not worry you have the toolbox in labview. The most important is the typecast function. With this you can convert anything into everything. And as long as you keep the number of bytes and the internal order intact you will always be able to convert things back. I have made an example for you regarding this topic. It is in LV7.1. I have kept this version since the new butt ugly graph cursor introduced in LV8 is a gigantic bug, and should never have seen the light of day.  Well enough of my frustration. In the data manipulation palette you will find the type cast and tools for byte/integer swapping and byte/integer splitting and merging.  If have done a similar thing before. But I do not remember exactly how to convert a C double into a labview DBL. But take a look at the number 123.123. In this number all the internal bytes are different so by comparing the C version and the labview version byte by byte you will be able to convert it correct. I your case the C struct is 4+8+8+(8X30)+(8x50)+30=690 bytes long. So this is the number of bytes you read each time. I your case I think it will be more convenient to read it as an array of 345 I16(words) but this is up to you.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    sample.vi ‏59 KB

  • How can I retrieve the col data size and Null information from table using labview connectivity toolset

    Hi, there,
    I am wondering how to get the table information by labview database
    connectivity toolset. The table list vi comes with the toolset can get
    only col name, data type and data size. And I found the the data size
    always gives back -1, even though it is a string type. Do somebody has
    some idea about it?
    Thanks.
    JJ

    JJ,
    Go into the diagrams of the DBTools List Columns and DBTools Get Properties respectively. When you inspect this diagram, you will see the raw ActiveX properties and methods called to get the size information. The value of -1 means the requested recordset is already closed. This is the sort of thing that is controled by the driver (ODBC, OLE DB, Jet, etc) you are using. Notice that you can right click on the property and invoke nodes and get more information about these specific items directly from the ADO online help.
    Crystal

  • How do I import Traditiona​l NI-DAQ Virtual Channels and MAX 3.1

    I installed Labview 7.1 on a new machine and the tools option in MAX 3.1 does not have the option to import traditional NI-DAQ configurations.

    If you have support for Traditional NI-DAQ installed, you should have the option to open a configuration file from: Tools>>Traditional NI-DAQ Configuration>>Set Active Configuration. You can check the installation of Traditional NI-DAQ under the Software tree in MAX.
    Hope this helps.
    Regards,
    Erin

  • Virtual channel in max don' work whith pci6071

    hello I configure 32 channels in max then when i test the first channel it' s ok.And when i test the second channel in max it don't work the light is red and for other channel is the same, if sommeone have a solution thank you.

    Hi,
    Can you be more precise. Which board do you have? Which driver?
    Did you test your channels during the configuration? The led is red : is there an error message?
    Regards
    DD

  • Use virtual channel name as input to DAQmx Write? LV8 and DAQmx

    I've created a task for digital output that contains 8 named channels using the DAQmx Create Channel VI in Labview. Is it possible to use the channel name as an input to the DAQmx Write VI to reference the desired channel? I tried wiring a string with the channel name to the "task/channels in" input but I get a -200428 error that says the Value passed to the Task/Channels In control is invalid.
    The help "name to assign" input for the DAQmx Create Channel VI says
       If you use this input to provide your own names for the virtual channels, you must use the names when you refer to these channels
       in other NI-DAQmx VIs and Property Nodes
    OK, so how do you use the name assigned in other VIs?
    George

    George,
    I think that there may be some confusion here about the difference between local and global virtual channels.  First of all, please take a look at the following knowledge base:
    Physical Channels, Virtual Channels, and Tasks in NI-DAQmx
    As discussed in this KB, local global channels are created inside a task, and they only apply to that task.  In the help file for the DAQmx Write VI, the "task/channels in" description says "if you provide a list of virtual channels, NI-DAQmx creates a task automatically."  When you wire a string to this input, a new task is being created, and unless the channel name that you wire in is a global virtual channel (listed in MAX), you will get the error 200428 that you mentioned.  This is because that virtual channel that you are specifying is local to another task and is not associated with this new task. 
    One solution to this issue is to use the DAQmx Save Global Channel VI to save your local virtual channel as a global virtual channel before calling DAQmx Write.  Once this is done, you can then wire the same string constant to the "task/channels in" input of DAQmx Write or other DAQmx VI's. 
    The help text is still correct, but is only applicable in certain situations.  For example, if you create and name an analog input local virtual channel with DAQmx Create Channel, you could then use this channel name as the source input to a DAQmx Trigger VI configured for an analog edge start trigger.  You could also use that channel name as the input to the "ActiveChans" DAQmx Channel Property, which would enable you to modify the properties of that particular channel. 
    Hopefully this information is helpful to you.

  • DAQmX create virtual channel execution time

    Hi,
    I am using DAQmX Create Virtual Channel for 70 different Digital Output. It took 35 seconds to execute the DAQmX Create Viryual Channel VI.
    What are the steps to make the execution faster.
    Valliappan.M

    Have you tried creating a global virtual channel with MAX?
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Virtual channels with 6602 counters

    Can I define 6602 counter source and gate inputs as virtual channels with MAX 2.1?

    Hello;
    You can't do that with MAX at this time yet.
    Filipe

  • Why is the input mode greyed out when I try to create a virtual channel for my 1102?

    I have set up a virtual channel for my SCXI-1102, and the input mode is greyed out with it set to "differential". I have already skimmed this forum for answers, and I have checked to verify that the mode slot under the AI tab for my MIO-E series card is set to nonreferenced single-ended mode. I then created a virtual channel with the device slot under the hardware column set to Dev1_SC1_MD1CXI-1102. At this point, as already stated, the input mode goes grey while set to differential. What's going on?

    Hello,
    All outputs from the SCXI module are measured in differential mode. You can still mix differential and single ended measurements (if you use the remaining channels of your daq board).
    The easiest way to mix modes is with virtual channels. All SCXI analog input channels will be differential, while you can make other virtual channels differential or single ended. If you don't want to use virtual channels, you can use AI Hardware Config in LabVIEW to change the mode.
    Hope this helps. Regards,
    John N
    Applications Engineer
    National Instruments

  • Do I really need to create virtual channels in data neighborhood in order to access my pci 6034E?

    Hello all,
    This may sound a little weird, but I would like to know how to configure my 6034E without having to create virtual channels in data neighborhood. Reason being, the data is often lost when users update or search for new instruments in Measurement and Automation.
    I have tried using the AI CONFIG.VI, which gives me all the attributes I need...set channel name, device name, device channel, input mode, sensor/actuator type ect..  When I connect the AI READ.VI the value read back is incorrect. Matter of fact as an exapmle, the power supply could be off and I still read 10 Volts. But when I have created a virtual channel in data neighborhood, the data read back is correct.
    Is there another way to read back data but not have a virtual channel in the data neighborhood?
    Thanking you in advance,
    Demo

    Duplicate post

Maybe you are looking for