LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the Name field in Write Channel vi.

I’m a little confused when trying to use the “Write Data [Channel]” express vi. Labview 7.1. Start with the “New for 7.1 shipping examples “Write Channel Groups and Read Channel Groups”

To read separate channels in lieu of channel groups I made a few changes to the “Write Channel Groups vi”.

Set the properties as follows:

Object type = Channel
Properties, select Name, Description and Unit.
Always create new channel group / channel, unchecked (default)
Measured data channel, Show terminals for data channel, checked (default)
Append / replace data values, Append selected, (default)

Deleted:
Two simulated inputs and the two “write channel groups vi”

Re-wire, run and read with the “Read Channel Groups vi”

It is this Name field that seems to be more of Channel Number field when Object type “Channel” is used.

What is the Name field for when using the “Write Channel Groups vi” in the Channel mode?

Modified Shipping example attached. Read data with the shipping example, New for 7.1 “Read Channel Groups”.

PS. You may want to add a constant to the 1st shift register (initialize) of the Read Channel Groups vi. Other wise each run will append the results.

Thanks
0 Kudos
Message 1 of 4
(2,763 Views)
Sorry I thought I knew how to attach vi's to this board but guess I don't see it now...
0 Kudos
Message 2 of 4
(2,759 Views)
zilla,

The Name input for the Channel mode is just as you describe it. In the Channel mode there is no concept of channel groups, only distinct channels stored together in a file. For this reason, the only option is to associate the Name input with the name of each individual Channel. The Channel input overrides the channel names in the Dynamic Data input signals. If you would like to use these signal names, instead of your own string inputs, you can disable the Name inputs.

Double-clicking on the Write Data [Channel] you will see a list of Available and Selected properties. Highlighting the Name property under Selected and clicking the single left arrow will remove it as an input. After cleaning up any broken wires the Write Data VI will use the channel name from the Simulate Signal Express VI in place of the Name input which was just removed.


Scott Y
NI
0 Kudos
Message 3 of 4
(2,745 Views)
Scott,

Thanks for confirming my findings on this. I was thinking I could use the “Name” and “Units” string inputs from the Write Data Channel vi in my DIAdem reports. It looks like I need to get my “Name” from my Dynamic Data input and then “Units” from the Write Data Channel vi. To get “Name” “Units” to display correctly (No channel numbers) on my DIAdem reports.
0 Kudos
Message 4 of 4
(2,734 Views)