01-08-2015 03:16 PM
I'm very new and green to LV so pardon my ignorance with the software. I want to create a scale for each of my channels using the "DAQmx Create Scale.vi". I am working on the first channel of my 16 channel data logger program. For the first channel to log to its own Waveform graph. I have wired up the Create Scale VI according to the online documentation, however it is not working when I adjust the slope value on the front panel. I have included a snippet of my code. I am using the 9205 card with a cDAQ-9174. For testing purposes, I have the voltage in to ai1 from a DC power supply. When I adjust the power supply voltage, my graph just shows the actual voltage coming in and doesn't change with my adjustment of the slope value of the Create Scale vi.
Thank you,
Don
01-08-2015 03:32 PM
Do you change the value of the "Numeric" then run the VI and while running change the value of Numeric? If you do this then you should expect no change, you are only going to make the scale once, when the VI is first ran. If you are saying you change the value then run the VI and you still only see the raw value I'd be confused.
Also that image is not a snippet according to NI.
http://www.ni.com/white-paper/9330/en/
And if you are looking for free training checkout some of these links.
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-08-2015 03:36 PM - edited 01-08-2015 03:37 PM
@dm@Means wrote:
I'm very new and green to LV so pardon my ignorance with the software. I want to create a scale for each of my channels using the "DAQmx Create Scale.vi". I am working on the first channel of my 16 channel data logger program. For the first channel to log to its own Waveform graph. I have wired up the Create Scale VI according to the online documentation, however it is not working when I adjust the slope value on the front panel. I have included a snippet of my code. I am using the 9205 card with a cDAQ-9174. For testing purposes, I have the voltage in to ai1 from a DC power supply. When I adjust the power supply voltage, my graph just shows the actual voltage coming in and doesn't change with my adjustment of the slope value of the Create Scale vi.
Thank you,
Don
The scale out output should be connected to the custom scale name input of the DAQmx Create Channel.vi.
Note, you added a picture of your code, not a snippet
EDIT, As Hoovah said the way you did it the scale can't be modified on the run.
Ben64