LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI terminal type conversion

I'm trying to save the state of my front panel controls using the config files. But several of my controls are 'NI Terminal'. The config files won't read NI Terminal. is there any conversion I can do before and/or after writing the config file?
 
Phuech 
0 Kudos
Message 1 of 10
(4,004 Views)
Hi Phuech,

what is a "NI terminal"? Can you show/attach a vi?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(4,000 Views)
I have a controls to, for example, change the trigger source or the sample clock source. When I hover my mouse over the wire, context help says 'Data type of wire: Source (NI Terminal)'.
0 Kudos
Message 3 of 10
(3,963 Views)
Hi phuech,

that's ok. But where do you connect those controls?
I don't want to search for my 5 different full LV installations to search for this kind of wire... So please attach an example or name the vi where you connect those controls!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 10
(3,962 Views)
I think he's talking about the DAQmx I/O controls. When you create a control for the DAQmx Sample Clock source, this is how the wire is described. For any of the I/O controls (channel, VISA Resource Name, etc.), I think all you have to use is a Write String Key type.
Message 5 of 10
(3,944 Views)
Yes, sorry that is what I mean, thanks Dennis. Here is the VI I'm using to read the control states. A string doesn't seem to work, that's what I tried first...
0 Kudos
Message 6 of 10
(3,937 Views)
That's because the 'Edge' indicator in the cluster is not a string. It's an I32 numeric.
0 Kudos
Message 7 of 10
(3,928 Views)

How about if you use an unflatten from string function.

Drag a copy of the NI terminal out of the cluster and drop it on the front panel.  Go to the block diagram and change that control or indicator to a constant. 

Put an Unflatten from String function in.  Wire up the constant to the type connector.  Feed your string in and you get an NI terminal out the other side.  Bundle those up into your cluster to feed to.

 

Message Edited by Ravens Fan on 08-23-2007 11:17 AM

Message 8 of 10
(3,928 Views)
Thats brilliant! I'll try that as soon as i get back to work and I'll be sure to post the results as well. Thanks a lot guys, great help!
0 Kudos
Message 9 of 10
(3,909 Views)

The flatten/unflatten string method works a treat. Also, dennis you are quite right a simple string works equally well. Thankyou all for your help. Much appriciated!

 

Phuech

0 Kudos
Message 10 of 10
(3,889 Views)